Fix CI builds. We were relying on build caches. (#1949)

This commit is contained in:
Brandon Thomas authored and GitHub committed 2026-09-11 15:46:14 -04:00
1 parent 9a9b406fdf
commit 6cc5ce7a67
3 files changed
+16 -3

No files matched your search

@@ -73,6 +73,9 @@ jobs:
# Use npx to ensure we use the local nx version
echo "Building with npx nx..."
npx nx run artcraft:build
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
echo "Checking build output..."
dir apps/artcraft/dist/ | Select-Object -First 10
+3 -2
View File
@@ -33,8 +33,9 @@ The Vite build writes `apps/artcraft/dist`, which Tauri bundles. Public resource
come from `apps/artcraft/app/public`. The app also needs its retained libraries,
root package lock, TypeScript project references, and Nx/Vite configuration.
The aliases in `tsconfig.base.json` resolve shared libraries to their source for
both development and production. The desktop build does not require library
`dist/` outputs or a separate library build.
both development and production. The app's Vite configuration loads this file
explicitly so imports inside shared libraries use the same aliases. The desktop
build does not require library `dist/` outputs or a separate library build.
Import shared libraries by the names declared in their `package.json` files:
+10 -1
View File
@@ -57,7 +57,16 @@ export default defineConfig({
},
},
},
plugins: [sparkWasmDataUrlFix(), tsconfigPaths(), wasm(), topLevelAwait()],
plugins: [
sparkWasmDataUrlFix(),
tsconfigPaths({
// Resolve workspace packages to source for every importer, including shared
// libraries. Fresh release checkouts have no prebuilt library dist files.
projects: [path.resolve(workspaceRoot, "tsconfig.base.json")],
}),
wasm(),
topLevelAwait(),
],
server: {
fs: {
allow: [workspaceRoot],