diff --git a/packages/webpack5/package.json b/packages/webpack5/package.json index 258998ce8..b6b562104 100644 --- a/packages/webpack5/package.json +++ b/packages/webpack5/package.json @@ -13,7 +13,8 @@ "scripts": { "build": "tsc --project tsconfig.build.json", "test": "jest", - "prepack": "npm test && npm run build && cp -R src/stubs dist/stubs && chmod +x dist/bin/index.js" + "copy-stubs": "mkdirp dist/stubs && cp -R src/stubs/* dist/stubs", + "prepack": "npm test && npm run build && npm run copy-stubs && chmod +x dist/bin/index.js" }, "dependencies": { "@babel/core": "7.13.14",