Skip to content

Commit 09c29d1

Browse files
committed
Ignore api dir and update bundle output path
Add 'api' to apps/studio/.gitignore and update apps/studio/scripts/bundle-api.mjs to write the bundled server to api/index.js (previously dist/api/index.js). Also update the console log to reflect the new output path. This keeps generated API bundle files out of source control and aligns the bundle script with the new output location.
1 parent df98010 commit 09c29d1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/studio/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pnpm-lock.yaml
55
# Build outputs
66
dist
77
build
8+
api
89
*.tsbuildinfo
910

1011
# Development

apps/studio/scripts/bundle-api.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ await build({
3737
platform: 'node',
3838
format: 'esm',
3939
target: 'es2020',
40-
outfile: 'dist/api/index.js',
40+
outfile: 'api/index.js',
4141
sourcemap: true,
4242
external: EXTERNAL,
4343
// Silence warnings about optional/unused require() calls in knex drivers
4444
logOverride: { 'require-resolve-not-external': 'silent' },
4545
});
4646

47-
console.log('[bundle-api] Bundled server/index.ts → dist/api/index.js');
47+
console.log('[bundle-api] Bundled server/index.ts → api/index.js');

0 commit comments

Comments
 (0)