Fix CI builds. We were relying on build caches.

This commit is contained in:
Brandon Thomas
2026-09-11 15:45:42 -04:00
parent 9a9b406fdf
commit ae7a49ca68
3 changed files with 16 additions and 3 deletions
@@ -73,6 +73,9 @@ jobs:
# Use npx to ensure we use the local nx version # Use npx to ensure we use the local nx version
echo "Building with npx nx..." echo "Building with npx nx..."
npx nx run artcraft:build npx nx run artcraft:build
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
echo "Checking build output..." echo "Checking build output..."
dir apps/artcraft/dist/ | Select-Object -First 10 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, come from `apps/artcraft/app/public`. The app also needs its retained libraries,
root package lock, TypeScript project references, and Nx/Vite configuration. root package lock, TypeScript project references, and Nx/Vite configuration.
The aliases in `tsconfig.base.json` resolve shared libraries to their source for The aliases in `tsconfig.base.json` resolve shared libraries to their source for
both development and production. The desktop build does not require library both development and production. The app's Vite configuration loads this file
`dist/` outputs or a separate library build. 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: 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: { server: {
fs: { fs: {
allow: [workspaceRoot], allow: [workspaceRoot],