Skip to content

Commit 7bbbcb9

Browse files
committed
Migrate to ESM-only
1 parent 31a738f commit 7bbbcb9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Diff for: package.json

+4-11
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,15 @@
44
"description": "A collection of array-related async utilities.",
55
"type": "module",
66
"sideEffects": false,
7-
"main": "./dist/cjs/index.js",
8-
"module": "./dist/esm/index.js",
7+
"main": "./dist/index.js",
98
"source": "./src/index.ts",
10-
"types": "./dist/cjs/index.d.ts",
9+
"types": "./dist/index.d.ts",
1110
"exports": {
12-
".": {
13-
"import": "./dist/esm/index.js",
14-
"require": "./dist/cjs/index.js"
15-
},
11+
".": "./dist/index.js",
1612
"./*": "./*"
1713
},
1814
"scripts": {
19-
"build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package",
20-
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
21-
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false",
22-
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
15+
"build": "tsc --project tsconfig.build.json",
2316
"clean": "rimraf dist",
2417
"format": "biome format",
2518
"lint": "biome lint",

0 commit comments

Comments
 (0)