add root scripts and update contribution guide (#750)

This commit is contained in:
Justin Halsall
2026-04-01 12:00:00 +08:00
committed by GitHub
parent ba2c8d740c
commit ef28761aca
4 changed files with 15 additions and 4 deletions

View File

@@ -6,8 +6,10 @@
"prepare": "npm run prepack",
"prepack": "npm run bundle && npm run typings",
"test": "jest",
"test:watch": "jest --watch",
"bundle": "rollup --config",
"bundle:es-only": "cross-env ES_ONLY=true rollup --config",
"dev": "yarn bundle:es-only --watch",
"typings": "tsc -d --declarationDir typings",
"prepublish": "npm run typings && npm run bundle"
},