Skip to content

Commit 72486a3

Browse files
committed
fix build
1 parent 29d139c commit 72486a3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"lint": "npm run check",
6868
"build": "grunt --gruntfile legacy/Gruntfile.js build",
6969
"build-ts": "tsc",
70-
"build:tsup": "tsup && tsup",
70+
"build:tsup": "tsup",
7171
"build:tsup:watch": "tsup --watch",
7272
"build:tsup:minified": "tsup --minify",
7373
"test-browser": "node tests/test.js",
@@ -77,14 +77,15 @@
7777
"test-node": "mocha tests/node-tests.js tests/test-cases.js",
7878
"test-node:v6": "PAPA_ENTRY_POINT=../dist/cjs-entry.js mocha --reporter spec tests/node-tests.js tests/test-cases.js --exit",
7979
"test": "npm run lint && npm run test-node && npm run test-mocha-headless-chrome",
80-
"test:v6": "rm -Rf dist && bun run build:tsup && bun run test-node:v6 && bun run test-mocha-headless-chrome:v6",
80+
"test:v6": "bun run build:tsup && bun run test-node:v6",
8181
"ci": "bun run src/ci/index.ts",
8282
"ci:foundation": "bun run src/ci/index.ts foundation",
8383
"ci:benchmark": "bun run src/ci/index.ts benchmark",
8484
"ci:snapshots:generate": "bun run src/ci/index.ts generate-snapshots",
8585
"ci:snapshots:validate": "bun run src/ci/index.ts validate-snapshots",
8686
"ci:api-test": "bun run src/ci/index.ts api-test",
8787
"ci:all": "bun run src/ci/index.ts all",
88+
"clean": "rm -Rf dist && rm -Rf node_modules",
8889
"refactor:test": "npm run ci:foundation",
8990
"check": "biome check --diagnostic-level=error src",
9091
"check:fix": "biome check --diagnostic-level=error --write src "

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineConfig((options) => ({
2424
}
2525
},
2626
outExtension({ format, options }) {
27-
const ext = format === "iife" ? ".iife" : "";
27+
const ext = format === "iife" ? ".iife" : format === "cjs" ? ".js" : ".mjs";
2828
const min = options.minify ? ".min" : "";
2929
return {
3030
js: `${ext}${min}.js`,

0 commit comments

Comments
 (0)