Skip to content

Commit 41ed828

Browse files
authored
chore: improve build script for better output and performance (#11)
1 parent db58bce commit 41ed828

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"main": "lib/index.js",
1414
"files": ["lib"],
1515
"scripts": {
16-
"build": "esbuild --bundle src/index.ts --outdir=lib --platform=node --external:@myriaddreamin/typst-ts-web-compiler",
16+
"build": "esbuild --bundle src/index.ts --outfile=lib/index.js --platform=node --external:@myriaddreamin/typst-ts-web-compiler --minify",
1717
"clean": "rm -frv lib",
1818
"format:write": "biome format --write .",
1919
"format": "biome format .",
@@ -26,12 +26,11 @@
2626
"update-fixtures": "bun ./test/update-fixtures.ts && biome check --write ./test/fixtures"
2727
},
2828
"dependencies": {
29-
"@myriaddreamin/typst-ts-web-compiler": "^0.5.1",
30-
"@myriaddreamin/typst.ts": "^0.5.1",
31-
"yaml": "^2.5.1"
29+
"@myriaddreamin/typst-ts-web-compiler": "^0.5.1"
3230
},
3331
"devDependencies": {
3432
"@biomejs/biome": "^1.9.2",
33+
"@myriaddreamin/typst.ts": "^0.5.1",
3534
"@textlint/ast-node-types": "^14.0.4",
3635
"@textlint/ast-tester": "^14.0.4",
3736
"@textlint/types": "^14.0.4",
@@ -41,6 +40,7 @@
4140
"textlint-scripts": "^14.0.4",
4241
"textlint-tester": "^14.0.4",
4342
"typescript": "^5.4.3",
44-
"vitest": "^1.4.0"
43+
"vitest": "^1.4.0",
44+
"yaml": "^2.5.1"
4545
}
4646
}

0 commit comments

Comments
 (0)