From 76d8eb021ce66138da02589ef4f47799c9a75a7b Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 31 Jul 2018 21:51:10 +0300 Subject: [PATCH] build: make `postinstall` script compatible with Windows (#25232) PR Close #25232 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6ae7d73323..89ba1afb8a 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "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", "preinstall": "node tools/yarn/check-yarn.js", "postinstall": "yarn update-webdriver && node ./tools/postinstall-patches.js && yarn patch-types", - "patch-types": "work-around for issue https://github.com/angular/angular/issues/25051", - "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", + "//patch-types": "work-around for issue https://github.com/angular/angular/issues/25051", + "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')\"", "update-webdriver": "webdriver-manager update --gecko false $CHROMEDRIVER_VERSION_ARG", "check-env": "gulp check-env", "commitmsg": "node ./scripts/git/commit-msg.js"