build: fix `yarn install` command (`--freeze-lockfile` --> `--frozen-lockfile`)
This commit is contained in:
parent
fc86352adf
commit
910735d732
|
@ -29,7 +29,7 @@ jobs:
|
|||
- restore_cache:
|
||||
key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||
|
||||
- run: yarn install --freeze-lockfile --non-interactive
|
||||
- run: yarn install --frozen-lockfile --non-interactive
|
||||
- run: ./node_modules/.bin/gulp lint
|
||||
|
||||
build:
|
||||
|
|
|
@ -156,7 +156,7 @@ RUN find $AIO_SCRIPTS_SH_DIR -maxdepth 1 -type f -printf "%P\n" \
|
|||
# Set up the Node.js scripts
|
||||
COPY scripts-js/ $AIO_SCRIPTS_JS_DIR/
|
||||
WORKDIR $AIO_SCRIPTS_JS_DIR/
|
||||
RUN yarn install --production --freeze-lockfile
|
||||
RUN yarn install --production --frozen-lockfile
|
||||
|
||||
|
||||
# Set up health check
|
||||
|
|
|
@ -9,7 +9,7 @@ readonly defaultImageNameAndTag="aio-builds:latest"
|
|||
# (Necessary, because only `scripts-js/dist/` is copied to the docker image.)
|
||||
(
|
||||
cd "$SCRIPTS_JS_DIR"
|
||||
yarn install --freeze-lockfile --non-interactive
|
||||
yarn install --frozen-lockfile --non-interactive
|
||||
yarn build
|
||||
)
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@ source "`dirname $0`/_env.sh"
|
|||
# Test `scripts-js/`
|
||||
(
|
||||
cd "$SCRIPTS_JS_DIR"
|
||||
yarn install --freeze-lockfile --non-interactive
|
||||
yarn install --frozen-lockfile --non-interactive
|
||||
yarn test
|
||||
)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
"test": "yarn check-env && ng test",
|
||||
"pree2e": "yarn check-env && yarn ~~update-webdriver",
|
||||
"e2e": "ng e2e --no-webdriver-update",
|
||||
"presetup": "yarn install --freeze-lockfile && yarn ~~check-env && yarn boilerplate:remove",
|
||||
"presetup": "yarn install --frozen-lockfile && yarn ~~check-env && yarn boilerplate:remove",
|
||||
"setup": "yarn aio-use-npm && yarn example-use-npm",
|
||||
"postsetup": "yarn boilerplate:add && yarn build-ie-polyfills && yarn generate-plunkers && yarn generate-zips && yarn docs",
|
||||
"presetup-local": "yarn presetup",
|
||||
|
|
|
@ -129,7 +129,7 @@ class NgPackagesInstaller {
|
|||
* Yarn will also delete the local marker file for us.
|
||||
*/
|
||||
restoreNpmDependencies() {
|
||||
this._installDeps('--freeze-lockfile', '--check-files');
|
||||
this._installDeps('--frozen-lockfile', '--check-files');
|
||||
}
|
||||
|
||||
// Protected helpers
|
||||
|
|
|
@ -203,7 +203,7 @@ describe('NgPackagesInstaller', () => {
|
|||
it('should run `yarn install` in the specified directory, with the correct options', () => {
|
||||
spyOn(installer, '_installDeps');
|
||||
installer.restoreNpmDependencies();
|
||||
expect(installer._installDeps).toHaveBeenCalledWith('--freeze-lockfile', '--check-files');
|
||||
expect(installer._installDeps).toHaveBeenCalledWith('--frozen-lockfile', '--check-files');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ travisFoldEnd "install-yarn"
|
|||
|
||||
# Install all npm dependencies according to yarn.lock
|
||||
travisFoldStart "yarn-install"
|
||||
node tools/npm/check-node-modules --purge || yarn install --freeze-lockfile --non-interactive
|
||||
node tools/npm/check-node-modules --purge || yarn install --frozen-lockfile --non-interactive
|
||||
travisFoldEnd "yarn-install"
|
||||
|
||||
|
||||
|
|
|
@ -6194,7 +6194,7 @@ rx-lite@^3.1.2:
|
|||
version "3.1.2"
|
||||
resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
|
||||
|
||||
rxjs@5.5.x:
|
||||
rxjs@^5.5.0:
|
||||
version "5.5.0"
|
||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.0.tgz#26d8f3866eb700e247e0728a147c3d628993d812"
|
||||
dependencies:
|
||||
|
|
Loading…
Reference in New Issue