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
+3 -1
View File
@@ -42,7 +42,9 @@
"start": "cypress run --browser=chrome",
"start-benchmark": "CYPRESS_NO_COMMAND_LOG=1 yarn start",
"test": "pushd test && node ../dist/bin/grafana-e2e.js run",
"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-node-resolve": "15.0.1",