Skip to content

Commit 67023f8

Browse files
committed
kill cjs
1 parent 4361391 commit 67023f8

File tree

14 files changed

+321
-1251
lines changed

14 files changed

+321
-1251
lines changed

.changeset/dry-coats-reply.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@effect-app/pnpm-singleton": minor
3+
"effect-app": minor
4+
"@effect-app/infra": minor
5+
"@effect-app/cli": minor
6+
"@effect-app/vue": minor
7+
---
8+
9+
kill \_cjs

.gitignore

-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ tsconfig.tsbuildinfo
2222
.env.local
2323
.env
2424

25-
_cjs/
26-
_mjs/
27-
_esm/
28-
29-
3025
# CMake
3126
cmake-build-*/
3227

package.json

-6
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@
5454
"vue": "^3.5.13"
5555
},
5656
"devDependencies": {
57-
"@babel/cli": "^7.26.4",
58-
"@babel/core": "^7.26.0",
59-
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
60-
"@babel/plugin-syntax-import-attributes": "^7.26.0",
61-
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
6257
"@changesets/cli": "^2.27.10",
6358
"@dprint/typescript": "^0.93.3",
6459
"@effect-app/cli": "^1.11.4",
@@ -75,7 +70,6 @@
7570
"@typescript-eslint/eslint-plugin": "8.18.1",
7671
"@typescript-eslint/parser": "8.18.1",
7772
"@typescript-eslint/scope-manager": "8.18.1",
78-
"babel-plugin-replace-import-extension": "^1.1.4",
7973
"concurrently": "^9.1.0",
8074
"dprint": "^0.47.6",
8175
"effect": "^3.11.8",

packages/cli/.npmignore

-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ coverage/
1212
.tsbuildinfo
1313
.build/
1414
!dist/
15-
!_cjs/

packages/cli/package.json

+12-49
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
"node-watch": "^0.7.4"
1313
},
1414
"devDependencies": {
15-
"@babel/cli": "^7.26.4",
16-
"@babel/core": "^7.26.0",
17-
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
18-
"@babel/plugin-syntax-import-attributes": "^7.26.0",
19-
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
20-
"babel-plugin-replace-import-extension": "^1.1.4",
2115
"@types/node": "~22.10.2",
2216
"json5": "^2.2.3",
2317
"typescript": "^5.7.2",
@@ -32,63 +26,32 @@
3226
},
3327
"exports": {
3428
".": {
35-
"import": {
36-
"types": "./dist/index.d.ts",
37-
"default": "./dist/index.js"
38-
},
39-
"require": {
40-
"types": "./dist/index.d.ts",
41-
"default": "./_cjs/index.cjs"
42-
}
29+
"types": "./dist/index.d.ts",
30+
"default": "./dist/index.js"
4331
},
4432
"./link": {
45-
"import": {
46-
"types": "./dist/link.d.ts",
47-
"default": "./dist/link.js"
48-
},
49-
"require": {
50-
"types": "./dist/link.d.ts",
51-
"default": "./_cjs/link.cjs"
52-
}
33+
"types": "./dist/link.d.ts",
34+
"default": "./dist/link.js"
5335
},
5436
"./shared": {
55-
"import": {
56-
"types": "./dist/shared.d.ts",
57-
"default": "./dist/shared.js"
58-
},
59-
"require": {
60-
"types": "./dist/shared.d.ts",
61-
"default": "./_cjs/shared.cjs"
62-
}
37+
"types": "./dist/shared.d.ts",
38+
"default": "./dist/shared.js"
6339
},
6440
"./sync": {
65-
"import": {
66-
"types": "./dist/sync.d.ts",
67-
"default": "./dist/sync.js"
68-
},
69-
"require": {
70-
"types": "./dist/sync.d.ts",
71-
"default": "./_cjs/sync.cjs"
72-
}
41+
"types": "./dist/sync.d.ts",
42+
"default": "./dist/sync.js"
7343
},
7444
"./unlink": {
75-
"import": {
76-
"types": "./dist/unlink.d.ts",
77-
"default": "./dist/unlink.js"
78-
},
79-
"require": {
80-
"types": "./dist/unlink.d.ts",
81-
"default": "./_cjs/unlink.cjs"
82-
}
45+
"types": "./dist/unlink.d.ts",
46+
"default": "./dist/unlink.js"
8347
}
8448
},
8549
"scripts": {
8650
"watch": "pnpm build:tsc -w",
8751
"build:tsc": "pnpm clean-dist && tsc --build",
88-
"build": "pnpm build:tsc && pnpm build2:cjs",
89-
"build2:cjs": "rm -rf _cjs && babel dist --config-file ../../.babel.cjs.json --out-dir _cjs --out-file-extension .cjs --source-maps",
52+
"build": "pnpm build:tsc",
9053
"watch2": "pnpm clean-dist && NODE_OPTIONS=--max-old-space-size=6144 tsc -w",
91-
"clean": "rm -rf dist && rm -rf _cjs",
54+
"clean": "rm -rf dist",
9255
"clean-dist": "sh ../../scripts/clean-dist.sh",
9356
"circular": "pnpm circular:src && pnpm circular:dist",
9457
"circular:src": "madge --circular --ts-config ./tsconfig.json --extensions ts ./src",

packages/cli/src/index.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,8 @@ function packagejson(p: string, levels = 0) {
146146
...(fs.existsSync(p + "/src/index.ts")
147147
? {
148148
".": {
149-
"import": {
150-
"types": "./dist/index.d.ts",
151-
"default": "./dist/index.js"
152-
},
153-
"require": {
154-
"types": "./dist/index.d.ts",
155-
"default": "./_cjs/index.cjs"
156-
}
149+
"types": "./dist/index.d.ts",
150+
"default": "./dist/index.js"
157151
}
158152
}
159153
: undefined),

packages/effect-app/.npmignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ tslint.json
1111
coverage/
1212
.tsbuildinfo
1313
.build/
14-
!dist/
15-
!_cjs/
14+
!dist/

0 commit comments

Comments
 (0)