Skip to content

Commit 0b83b16

Browse files
committed
Don't minify (by default)
1 parent 605d689 commit 0b83b16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"build:binding": "node-gyp build",
2323
"build:binding:debug": "node-gyp build --coverage --debug --verbose",
2424
"build:bundle": "node scripts/clean-dist.mjs && tsdown -c tsdown.config.ts",
25-
"build:debug": "cross-env SKIP_MINIFY=1 pnpm build:bundle",
25+
"build:bundle:minify": "cross-env MINIFY=1 pnpm build:bundle",
2626
"check": "pnpm type-check && pnpm lint",
2727
"clean": "node-gyp clean",
2828
"coverage": "tsx scripts/coverage/main.ts",

tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const config: UserConfig = defineConfig({
1111
],
1212
entry: './src/index.ts',
1313
format: ['es', 'cjs'],
14-
minify: !process.env.SKIP_MINIFY,
14+
minify: Boolean(process.env.MINIFY),
1515
platform: 'node',
1616
plugins: [
1717
replace({

0 commit comments

Comments
 (0)