Skip to content

Commit 4743f54

Browse files
committed
chore: enable CJS for now
1 parent e231080 commit 4743f54

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

libs/roo-rocket/build.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ import { defineBuildConfig } from 'unbuild'
22
import sharedConfig from './shared.config'
33

44
export default defineBuildConfig({
5-
entries: [
6-
// Main engine
7-
'src/index',
8-
9-
// CLI app
10-
'src/cli-entry',
11-
],
125
declaration: 'node16',
136
clean: true,
147
rollup: {

libs/roo-rocket/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,14 @@
1515
"sideEffects": false,
1616
"exports": {
1717
".": {
18-
"types": "./dist/index.d.mts",
19-
"import": "./dist/index.mjs"
18+
"import": {
19+
"types": "./dist/index.d.mts",
20+
"default": "./dist/index.mjs"
21+
},
22+
"require": {
23+
"types": "./dist/index.d.cts",
24+
"default": "./dist/index.cjs"
25+
}
2026
}
2127
},
2228
"source": "./src/index.ts",

0 commit comments

Comments
 (0)