Skip to content

Commit

Permalink
v
Browse files Browse the repository at this point in the history
  • Loading branch information
julianbenegas committed Jan 3, 2025
1 parent 57ee55c commit 0e96912
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/green-foxes-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"basehub": patch
---

fix workflows bundle
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/basehub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# basehub

## 8.0.0-canary.43

### Patch Changes

- fix workflows bundle

## 8.0.0-canary.42

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/basehub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "basehub",
"description": "A very fast Headless CMS.",
"author": "JB <[email protected]>",
"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",
Expand Down
20 changes: 20 additions & 0 deletions packages/basehub/src/bin/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
7 changes: 7 additions & 0 deletions playground/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# playground

## 0.0.164-canary.43

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.164-canary.42

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 0e96912

Please sign in to comment.