File tree 5 files changed +24
-4
lines changed
5 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 19
19
"test" : " yarn check-env && ng test" ,
20
20
"pree2e" : " yarn check-env && yarn ~~update-webdriver" ,
21
21
"e2e" : " ng e2e --no-webdriver-update" ,
22
+ "preinstall" : " node ../tools/yarn/check-yarn.js" ,
22
23
"presetup" : " yarn install --frozen-lockfile && yarn ~~check-env && yarn boilerplate:remove" ,
23
24
"setup" : " yarn aio-use-npm && yarn example-use-npm" ,
24
25
"postsetup" : " yarn boilerplate:add && yarn build-ie-polyfills && yarn generate-plunkers && yarn generate-zips && yarn docs" ,
60
61
},
61
62
"engines" : {
62
63
"node" : " >=8.9.1 <9.0.0" ,
63
- "yarn" : " >=1.0 .2 <2.0.0"
64
+ "yarn" : " >=1.3 .2 <2.0.0"
64
65
},
65
66
"private" : true ,
66
67
"dependencies" : {
Original file line number Diff line number Diff line change 7
7
"http-server" : " http-server" ,
8
8
"protractor" : " protractor" ,
9
9
"webdriver:update" : " webdriver-manager update --standalone false --gecko false $CHROMEDRIVER_VERSION_ARG" ,
10
+ "preinstall" : " node ../../../../tools/yarn/check-yarn.js" ,
10
11
"postinstall" : " yarn webdriver:update"
11
12
},
13
+ "engines" : {
14
+ "node" : " >=8.9.1 <9.0.0" ,
15
+ "yarn" : " >=1.3.2 <2.0.0"
16
+ },
12
17
"keywords" : [],
13
18
"author" : " " ,
14
19
"license" : " MIT" ,
Original file line number Diff line number Diff line change 9
9
"license" : " MIT" ,
10
10
"engines" : {
11
11
"node" : " >=8.9.1 <9.0.0" ,
12
- "yarn" : " >=1.0 .2 <2.0.0"
12
+ "yarn" : " >=1.3 .2 <2.0.0"
13
13
},
14
14
"repository" : {
15
15
"type" : " git" ,
20
20
"skylint" : " find . -type f -name \" *.bzl\" ! -path \" */node_modules/*\" ! -path \" ./dist/*\" | xargs $(bazel info bazel-bin)/external/io_bazel/src/tools/skylark/java/com/google/devtools/skylark/skylint/Skylint" ,
21
21
"prebuildifier" : " bazel build --noshow_progress @com_github_bazelbuild_buildtools//buildifier" ,
22
22
"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" ,
23
- "preinstall" : " node -e \" if(process.env.npm_execpath.indexOf(' yarn') === -1) throw new Error('Please use Yarn instead of NPM to install dependencies. See: https://yarnpkg.com/lang/en/docs/install/') \" " ,
23
+ "preinstall" : " node tools/ yarn/check-yarn.js " ,
24
24
"postinstall" : " yarn update-webdriver" ,
25
25
"update-webdriver" : " webdriver-manager update --gecko false $CHROMEDRIVER_VERSION_ARG" ,
26
26
"check-env" : " gulp check-env"
Original file line number Diff line number Diff line change 35
35
# ######################
36
36
37
37
setEnvVar NODE_VERSION 8.9.1
38
- setEnvVar YARN_VERSION 1.0 .2
38
+ setEnvVar YARN_VERSION 1.3 .2
39
39
# Pin to a Chromium version that does not cause the aio e2e tests to flake. (See https://github.com/angular/angular/pull/20403.)
40
40
# Revision 494239 (which was part of Chrome 62.0.3186.0) is the last version that does not cause flakes. (Latest revision checked: 508578)
41
41
setEnvVar CHROMIUM_VERSION 494239 # Chrome 62 linux stable, see https://www.chromium.org/developers/calendar
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @license
3
+ * Copyright Google Inc. All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+
9
+ 'use strict' ;
10
+
11
+ if ( process . env . npm_execpath . indexOf ( 'yarn' ) === - 1 ) {
12
+ throw new Error (
13
+ 'Please use Yarn instead of NPM to install dependencies. See: https://yarnpkg.com/lang/en/docs/install/' ) ;
14
+ }
You can’t perform that action at this time.
0 commit comments