Skip to content

Commit 8825940

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: 244.6 kB npm notice unpacked size: 3.0 MB npm notice total files: 207
1 parent 5372867 commit 8825940

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/*.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)