Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cli-bundle-dockerfile-utils-src.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@e2b/cli': patch
---

Bundle `@e2b/dockerfile-utils` from source so the CLI build no longer races with concurrent workspace package rebuilds during release
3 changes: 2 additions & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"paths": {
"src": ["./src/index.ts"],
"src/*": ["./src/*"],
"e2b": ["../js-sdk/src"]
"e2b": ["../js-sdk/src"],
"@e2b/dockerfile-utils": ["../dockerfile-utils-js/src"]
}
},
"exclude": ["dist", "node_modules"]
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createRequire } from 'node:module'
import { fileURLToPath } from 'node:url'

import { defineConfig } from 'tsdown'

Expand All @@ -21,6 +22,13 @@ export default defineConfig({
dts: false,
sourcemap: true,
clean: true,
// Bundle from source rather than dist: during a release `changeset publish`
// rebuilds workspace packages concurrently, and their `clean` wipes dist.
alias: {
'@e2b/dockerfile-utils': fileURLToPath(
new URL('../dockerfile-utils-js/src/index.ts', import.meta.url)
),
},
Comment thread
mishushakov marked this conversation as resolved.
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
deps: {
// Bundle all runtime dependencies (except those that must stay external)
alwaysBundle: Object.keys(packageJSON.dependencies).filter(
Expand Down
4 changes: 4 additions & 0 deletions packages/cli/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default defineConfig({
// already resolve to. Without it `e2b` resolves to the workspace package's
// `main`, which only exists once the SDK has been built.
e2b: path.resolve(__dirname, '../js-sdk/src'),
'@e2b/dockerfile-utils': path.resolve(
__dirname,
'../dockerfile-utils-js/src/index.ts'
),
},
},
})
Loading