Build: Adds a fallback script to fix package.json main and types fields before packaging (#59628)

This commit is contained in:
Esteban Beltran
2022-12-01 11:34:52 +01:00
committed by GitHub
parent 798a8ceb9c
commit 0a9b238d39
7 changed files with 39 additions and 6 deletions

View File

@@ -34,7 +34,9 @@
"build": "tsc -p ./tsconfig.build.json && rollup -c rollup.config.ts",
"bundle": "rollup -c rollup.config.ts",
"clean": "rimraf ./dist ./compiled ./package.tgz",
"typecheck": "tsc --emitDeclarationOnly false --noEmit"
"typecheck": "tsc --emitDeclarationOnly false --noEmit",
"prepack": "cp package.json package.json.bak && node ../../scripts/prepare-packagejson.js",
"postpack": "mv package.json.bak package.json"
},
"devDependencies": {
"@rollup/plugin-commonjs": "23.0.2",