Skip to content

Commit 76d8eb0

Browse files
gkalpakIgorMinar
authored andcommitted
build: make postinstall script compatible with Windows (angular#25232)
PR Close angular#25232
1 parent 3f6fc00 commit 76d8eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"buildifier": "find . -type f \\( -name BUILD -or -name BUILD.bazel \\) ! -path \"*/node_modules/*\" | xargs $(bazel info bazel-bin)/external/com_github_bazelbuild_buildtools/buildifier/*/buildifier",
2323
"preinstall": "node tools/yarn/check-yarn.js",
2424
"postinstall": "yarn update-webdriver && node ./tools/postinstall-patches.js && yarn patch-types",
25-
"patch-types": "work-around for issue https://github.com/angular/angular/issues/25051",
26-
"patch-types": "mkdir -p node_modules/@types/zone.js && cp -f node_modules/zone.js/dist/zone.js.d.ts node_modules/@types/zone.js/index.d.ts",
25+
"//patch-types": "work-around for issue https://github.com/angular/angular/issues/25051",
26+
"patch-types": "node -e \"var sh = require('shelljs'); sh.set('-e'); sh.mkdir('-p', 'node_modules/@types/zone.js'); sh.cp('-f', 'node_modules/zone.js/dist/zone.js.d.ts', 'node_modules/@types/zone.js/index.d.ts')\"",
2727
"update-webdriver": "webdriver-manager update --gecko false $CHROMEDRIVER_VERSION_ARG",
2828
"check-env": "gulp check-env",
2929
"commitmsg": "node ./scripts/git/commit-msg.js"

0 commit comments

Comments
 (0)