@naarang/ccc 3.3.0-beta.14 → 3.3.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +173 -1973
- package/dist/scripts/build-dist.ts +7 -1
- package/package.json +1 -1
- package/scripts/build-dist.ts +7 -1
|
@@ -20,7 +20,13 @@ if (existsSync(distDir)) {
|
|
|
20
20
|
|
|
21
21
|
// Build with version define
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
// Mark Pi as external for the npm build. Pi 0.74+ has CJS-shaped
|
|
24
|
+
// transitive deps that break bun's bundler/bytecode pass. When
|
|
25
|
+
// installed via npm, Node's resolver finds Pi in node_modules
|
|
26
|
+
// alongside our dist/, so bundling it just adds risk for zero
|
|
27
|
+
// gain. (The compiled-binary build path can't do this — see
|
|
28
|
+
// build-binaries.ts for the trade-off there.)
|
|
29
|
+
await $`bun build src/index.ts --outdir dist --target bun --minify --external bun-pty --external expo-server-sdk --external @ngrok/ngrok --external @earendil-works/pi-coding-agent --external @earendil-works/pi-ai --define BUILD_VERSION='"${VERSION}"'`;
|
|
24
30
|
console.log('✓ Built dist/index.js');
|
|
25
31
|
} catch (error) {
|
|
26
32
|
console.error('✗ Build failed:', error);
|
package/package.json
CHANGED
package/scripts/build-dist.ts
CHANGED
|
@@ -20,7 +20,13 @@ if (existsSync(distDir)) {
|
|
|
20
20
|
|
|
21
21
|
// Build with version define
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
// Mark Pi as external for the npm build. Pi 0.74+ has CJS-shaped
|
|
24
|
+
// transitive deps that break bun's bundler/bytecode pass. When
|
|
25
|
+
// installed via npm, Node's resolver finds Pi in node_modules
|
|
26
|
+
// alongside our dist/, so bundling it just adds risk for zero
|
|
27
|
+
// gain. (The compiled-binary build path can't do this — see
|
|
28
|
+
// build-binaries.ts for the trade-off there.)
|
|
29
|
+
await $`bun build src/index.ts --outdir dist --target bun --minify --external bun-pty --external expo-server-sdk --external @ngrok/ngrok --external @earendil-works/pi-coding-agent --external @earendil-works/pi-ai --define BUILD_VERSION='"${VERSION}"'`;
|
|
24
30
|
console.log('✓ Built dist/index.js');
|
|
25
31
|
} catch (error) {
|
|
26
32
|
console.error('✗ Build failed:', error);
|