Skip to content

Commit 617465b

Browse files
committed
generate cjs also
1 parent 5317129 commit 617465b

File tree

7 files changed

+50
-20
lines changed

7 files changed

+50
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ coverage
1313
out/
1414
build
1515
dist
16+
dist-bin
1617

1718
# misc
1819
.DS_Store

packages/basehub/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# basehub
22

3+
## 9.0.4
4+
5+
### Patch Changes
6+
7+
- generate cjs also 😫
8+
39
## 9.0.3
410

511
### Patch Changes

packages/basehub/package.json

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,81 +2,97 @@
22
"name": "basehub",
33
"description": "A very fast Headless CMS.",
44
"author": "JB <[email protected]>",
5-
"version": "9.0.3",
5+
"version": "9.0.4",
66
"license": "MIT",
77
"repository": "basehub-ai/basehub",
88
"bugs": "https://github.com/basehub-ai/basehub/issues",
99
"homepage": "https://basehub.com",
1010
"bin": {
11-
"basehub": "./dist/bin.js"
11+
"basehub": "./dist-bin/bin.js"
1212
},
1313
"main": "./dist/index.js",
1414
"types": "./dist/index.d.ts",
1515
"type": "module",
1616
"files": [
1717
"dist",
18+
"dist-bin",
1819
"README.md"
1920
],
2021
"exports": {
2122
".": {
2223
"import": "./dist/index.js",
23-
"types": "./dist/index.d.ts"
24+
"types": "./dist/index.d.ts",
25+
"require": "./dist/index.cjs"
2426
},
2527
"./react-pump": {
2628
"import": "./dist/react/pump/index.js",
27-
"types": "./dist/react/pump/index.d.ts"
29+
"types": "./dist/react/pump/index.d.ts",
30+
"require": "./dist/react/pump/index.cjs"
2831
},
2932
"./next-toolbar": {
3033
"import": "./dist/next/toolbar/index.js",
31-
"types": "./dist/next/toolbar/index.d.ts"
34+
"types": "./dist/next/toolbar/index.d.ts",
35+
"require": "./dist/next/toolbar/index.cjs"
3236
},
3337
"./events": {
3438
"import": "./dist/events/index.js",
35-
"types": "./dist/events/index.d.ts"
39+
"types": "./dist/events/index.d.ts",
40+
"require": "./dist/events/index.cjs"
3641
},
3742
"./workflows": {
3843
"import": "./dist/workflows/index.js",
39-
"types": "./dist/workflows/index.d.ts"
44+
"types": "./dist/workflows/index.d.ts",
45+
"require": "./dist/workflows/index.cjs"
4046
},
4147
"./react-icon": {
4248
"import": "./dist/react/icon/index.js",
43-
"types": "./dist/react/icon/index.d.ts"
49+
"types": "./dist/react/icon/index.d.ts",
50+
"require": "./dist/react/icon/index.cjs"
4451
},
4552
"./react-form": {
4653
"import": "./dist/react/form/index.js",
47-
"types": "./dist/react/form/index.d.ts"
54+
"types": "./dist/react/form/index.d.ts",
55+
"require": "./dist/react/form/index.cjs"
4856
},
4957
"./react-svg": {
5058
"import": "./dist/react/icon/index.js",
51-
"types": "./dist/react/icon/index.d.ts"
59+
"types": "./dist/react/icon/index.d.ts",
60+
"require": "./dist/react/icon/index.cjs"
5261
},
5362
"./search": {
5463
"import": "./dist/search/index.js",
55-
"types": "./dist/search/index.d.ts"
64+
"types": "./dist/search/index.d.ts",
65+
"require": "./dist/search/index.cjs"
5666
},
5767
"./react-search": {
5868
"import": "./dist/react/search/index.js",
59-
"types": "./dist/react/search/index.d.ts"
69+
"types": "./dist/react/search/index.d.ts",
70+
"require": "./dist/react/search/index.cjs"
6071
},
6172
"./react-rich-text": {
6273
"import": "./dist/react/rich-text/index.js",
63-
"types": "./dist/react/rich-text/index.d.ts"
74+
"types": "./dist/react/rich-text/index.d.ts",
75+
"require": "./dist/react/rich-text/index.cjs"
6476
},
6577
"./next-image": {
6678
"import": "./dist/next/image/index.js",
67-
"types": "./dist/next/image/index.d.ts"
79+
"types": "./dist/next/image/index.d.ts",
80+
"require": "./dist/next/image/index.cjs"
6881
},
6982
"./react-code-block": {
7083
"import": "./dist/react/code-block/index.js",
71-
"types": "./dist/react/code-block/index.d.ts"
84+
"types": "./dist/react/code-block/index.d.ts",
85+
"require": "./dist/react/code-block/index.cjs"
7286
},
7387
"./react-code-block/client": {
7488
"import": "./dist/react/code-block/client/index.js",
75-
"types": "./dist/react/code-block/client/index.d.ts"
89+
"types": "./dist/react/code-block/client/index.d.ts",
90+
"require": "./dist/react/code-block/client/index.cjs"
7691
},
7792
"./api-transaction": {
7893
"import": "./dist/api-transaction.js",
79-
"types": "./dist/api-transaction.d.ts"
94+
"types": "./dist/api-transaction.d.ts",
95+
"require": "./dist/api-transaction.cjs"
8096
}
8197
},
8298
"sideEffects": false,

packages/basehub/tsup.bin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export default defineConfig((_options) => {
88
bin: "./src/bin/index.ts",
99
},
1010
format: ["esm"],
11-
outDir: "dist",
11+
outDir: "dist-bin",
1212
};
1313
});

packages/basehub/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig((_options: Options) => {
1111
dts: true,
1212
outDir: "dist",
1313
splitting: true,
14-
format: ["esm"],
14+
format: ["esm", "cjs"],
1515
external: ["react", "react-dom", "next"],
1616
noExternal: [
1717
"dotenv-mono",

playground/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# playground
22

3+
## 0.0.219
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
9+
310
## 0.0.218
411

512
### Patch Changes

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "playground",
33
"private": true,
4-
"version": "0.0.218",
4+
"version": "0.0.219",
55
"scripts": {
66
"dev": "next dev --port 3003",
77
"build": "next build",

0 commit comments

Comments
 (0)