Skip to content

Commit 3a36c14

Browse files
committed
build: esbuild instead of tsc
*Before* npm notice package size: 756.7 kB npm notice unpacked size: 7.9 MB npm notice total files: 618 *After* npm notice package size: 92.7 kB npm notice unpacked size: 1.1 MB npm notice total files: 70
1 parent 5372867 commit 3a36c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cosmic-proto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"!CHANGELOG.md"
149149
],
150150
"scripts": {
151-
"build": "tsc --project tsconfig.build.json && scripts/minify.cjs",
151+
"build": "esbuild --platform=neutral --format=esm --outdir=dist src/index.ts src/codegen/*/*/*.ts",
152152
"clean": "rimraf dist",
153153
"codegen": "./update-protos.sh && scripts/codegen.cjs",
154154
"prepare": "npm run build",

0 commit comments

Comments
 (0)