Skip to content

Commit 7592757

Browse files
committed
chore: clean dist folder to reduce the size
1 parent 1649200 commit 7592757

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@
4242
"build.test": "npm run build && npm run test",
4343
"test": "echo 'test without rebuilding' && atom --test spec",
4444
"clean": "shx rm -rf dist",
45+
"clean.prod": "shx rm -rf ./dist/**/*.d.ts ./dist/tsconfig.tsbuildinfo",
4546
"dev": "npm run clean && tsc -p lib/tsconfig.json --watch",
46-
"build": "npm run clean && tsc -p lib/tsconfig.json || echo done",
47+
"tsc": "tsc -p lib/tsconfig.json || echo done",
48+
"build": "npm run clean && npm run tsc && npm run clean.prod",
4749
"build:services-docs": "markdox lib/services/index.js -o lib/services/README.md",
4850
"build:plugin-docs": "markdox lib/plugin-api/hydrogen-provider.js lib/plugin-api/hydrogen-kernel.js -o docs/PluginAPI.md",
4951
"build:docs": "npm run build:plugin-docs && npm run build:services-docs",

0 commit comments

Comments
 (0)