diff --git a/package.json b/package.json index b0b3311c1a..184ca78368 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "scripts": { "build": "tsc -p tsconfig.json", "clean": "rm -rf ./.nyc_output ./node_modules/.cache ./coverage ./lib", - "prepack": "yarn build", + "prepack": "yarn install && yarn build", "mocha": "nyc mocha --config=test/.mocharc.js", "mocha-only": "mocha --config=test/.mocharc.js", "test": "yarn build && yarn test-typescript && yarn mocha",