diff --git a/.changeset/green-foxes-relax.md b/.changeset/green-foxes-relax.md new file mode 100644 index 0000000..dbcfc79 --- /dev/null +++ b/.changeset/green-foxes-relax.md @@ -0,0 +1,5 @@ +--- +"basehub": patch +--- + +fix workflows bundle diff --git a/.changeset/pre.json b/.changeset/pre.json index 3095e8c..95ec0ec 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -21,6 +21,7 @@ "gold-bulldogs-enjoy", "good-worms-jam", "great-flies-wonder", + "green-foxes-relax", "hip-terms-tie", "itchy-seals-rest", "khaki-ghosts-call", diff --git a/packages/basehub/CHANGELOG.md b/packages/basehub/CHANGELOG.md index 2777ebd..1ba034b 100644 --- a/packages/basehub/CHANGELOG.md +++ b/packages/basehub/CHANGELOG.md @@ -1,5 +1,11 @@ # basehub +## 8.0.0-canary.43 + +### Patch Changes + +- fix workflows bundle + ## 8.0.0-canary.42 ### Patch Changes diff --git a/packages/basehub/package.json b/packages/basehub/package.json index 0216031..53640df 100644 --- a/packages/basehub/package.json +++ b/packages/basehub/package.json @@ -2,7 +2,7 @@ "name": "basehub", "description": "A very fast Headless CMS.", "author": "JB ", - "version": "8.0.0-canary.42", + "version": "8.0.0-canary.43", "license": "MIT", "repository": "basehub-ai/basehub", "bugs": "https://github.com/basehub-ai/basehub/issues", diff --git a/packages/basehub/src/bin/main.ts b/packages/basehub/src/bin/main.ts index e83a42e..212759b 100644 --- a/packages/basehub/src/bin/main.ts +++ b/packages/basehub/src/bin/main.ts @@ -400,6 +400,26 @@ import type { Language } from './react-code-block'; ); } + await esbuild.build({ + entryPoints: [ + path.join(basehubModulePath, "src", "workflows", "index.ts"), + ], + bundle: true, + outdir: workflowsOutDir, + minify: false, + treeShaking: true, + splitting: true, + format: "esm", + target: ["es2020", "node18"], + external: peerDependencies, + }); + + if (args["--debug"]) { + console.log( + `[basehub] compiled workflows with esbuild in: ${workflowsOutDir}` + ); + } + /** * DTS stuff. */ diff --git a/playground/CHANGELOG.md b/playground/CHANGELOG.md index 2d3d587..1c4cd0e 100644 --- a/playground/CHANGELOG.md +++ b/playground/CHANGELOG.md @@ -1,5 +1,12 @@ # playground +## 0.0.164-canary.43 + +### Patch Changes + +- Updated dependencies + - basehub@8.0.0-canary.43 + ## 0.0.164-canary.42 ### Patch Changes diff --git a/playground/package.json b/playground/package.json index 04f8a9d..6b794da 100644 --- a/playground/package.json +++ b/playground/package.json @@ -1,7 +1,7 @@ { "name": "playground", "private": true, - "version": "0.0.164-canary.42", + "version": "0.0.164-canary.43", "scripts": { "dev": "basehub dev & next dev --port 3003", "build": "basehub && next build",