Move yarn prepare script to prepack

No need to rebuild the package on every `yarn install`, but it should be built
before packing.
This commit is contained in:
Remco Haszing 2021-03-25 17:52:58 +01:00
parent 1c532f6815
commit f4130f38a3
No known key found for this signature in database
GPG key ID: 40D9F5FE9155FD3C

View file

@ -11,7 +11,8 @@
"bundle:umd": "node ./scripts/bundle-umd",
"bundle:esm": "node ./scripts/bundle-esm",
"build": "yarn compile && yarn bundle",
"prepare": "husky install && yarn build",
"prepare": "husky install",
"prepack": "yarn build",
"lint": "prettier \"{src,test}/**/*.{json,scss,html,ts}\" --write"
},
"main": "./lib/esm/monaco.contribution.js",