Last active
February 23, 2019 23:30
-
-
Save jscheid/29dee9816e89a27c71b54fd40719a70f to your computer and use it in GitHub Desktop.
Upgrade webpack-subresource-integrity with angular-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yarn --version | |
1.13.0 | |
$ ng --version | |
_ _ ____ _ ___ | |
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| | |
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| | |
|___/ | |
Angular CLI: 7.3.3 | |
Node: 10.15.1 | |
OS: darwin x64 | |
Angular: 7.2.6 | |
... animations, common, compiler, compiler-cli, core, forms | |
... language-service, platform-browser, platform-browser-dynamic | |
... router | |
Package Version | |
----------------------------------------------------------- | |
@angular-devkit/architect 0.13.3 | |
@angular-devkit/build-angular 0.13.3 | |
@angular-devkit/build-optimizer 0.13.3 | |
@angular-devkit/build-webpack 0.13.3 | |
@angular-devkit/core 7.3.3 | |
@angular-devkit/schematics 7.3.3 | |
@angular/cli 7.3.3 | |
@ngtools/webpack 7.3.3 | |
@schematics/angular 7.3.3 | |
@schematics/update 0.13.3 | |
rxjs 6.3.3 | |
typescript 3.2.4 | |
webpack 4.29.0 | |
$ ng new wsi-ansible-cli-upgrade | |
? Would you like to add Angular routing? No | |
? Which stylesheet format would you like to use? CSS (.css ) | |
CREATE wsi-ansible-cli-upgrade/README.md (1037 bytes) | |
CREATE wsi-ansible-cli-upgrade/.editorconfig (246 bytes) | |
CREATE wsi-ansible-cli-upgrade/.gitignore (629 bytes) | |
CREATE wsi-ansible-cli-upgrade/angular.json (3960 bytes) | |
CREATE wsi-ansible-cli-upgrade/package.json (1322 bytes) | |
CREATE wsi-ansible-cli-upgrade/tsconfig.json (435 bytes) | |
CREATE wsi-ansible-cli-upgrade/tslint.json (1621 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/favicon.ico (5430 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/index.html (307 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/main.ts (372 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/polyfills.ts (2841 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/styles.css (80 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/test.ts (642 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/browserslist (388 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/karma.conf.js (1036 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/tsconfig.app.json (166 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/tsconfig.spec.json (256 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/tslint.json (314 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/assets/.gitkeep (0 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/environments/environment.prod.ts (51 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/environments/environment.ts (662 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/app/app.module.ts (314 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/app/app.component.css (0 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/app/app.component.html (1120 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/app/app.component.spec.ts (1029 bytes) | |
CREATE wsi-ansible-cli-upgrade/src/app/app.component.ts (228 bytes) | |
CREATE wsi-ansible-cli-upgrade/e2e/protractor.conf.js (752 bytes) | |
CREATE wsi-ansible-cli-upgrade/e2e/tsconfig.e2e.json (213 bytes) | |
CREATE wsi-ansible-cli-upgrade/e2e/src/app.e2e-spec.ts (652 bytes) | |
CREATE wsi-ansible-cli-upgrade/e2e/src/app.po.ts (251 bytes) | |
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor. | |
> fsevents@1.2.7 install /private/tmp/wsi-ansible-cli-upgrade/node_modules/fsevents | |
> node install | |
node-pre-gyp WARN Using request for node-pre-gyp https download | |
[fsevents] Success: "/private/tmp/wsi-ansible-cli-upgrade/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote | |
> node-sass@4.11.0 install /private/tmp/wsi-ansible-cli-upgrade/node_modules/node-sass | |
> node scripts/install.js | |
Cached binary found at /Users/foo/.npm/node-sass/4.11.0/darwin-x64-64_binding.node | |
> node-sass@4.11.0 postinstall /private/tmp/wsi-ansible-cli-upgrade/node_modules/node-sass | |
> node scripts/build.js | |
Binary found at /private/tmp/wsi-ansible-cli-upgrade/node_modules/node-sass/vendor/darwin-x64-64/binding.node | |
Testing binary | |
Binary is fine | |
added 1143 packages from 1033 contributors and audited 42430 packages in 23.925s | |
found 1 low severity vulnerability | |
run `npm audit fix` to fix them, or `npm audit` for details | |
Successfully initialized git. | |
$ cd wsi-ansible-cli-upgrade/ | |
$ find node_modules -name webpack-subresource-integrity -exec jq .version {}/package.json \; | |
"1.1.0-rc.6" | |
$ yarn import | |
yarn import v1.13.0 | |
info found npm package-lock.json, converting to yarn.lock | |
warning karma > log4js > circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor. | |
success Saved lockfile. | |
✨ Done in 19.45s. | |
$ rm package-lock.json | |
$ jq '. + {resolutions: { "webpack-subresource-integrity": "~1.3.2" }}' package.json | sponge package.json | |
$ yarn | |
yarn install v1.13.0 | |
[1/4] 🔍 Resolving packages... | |
[2/4] 🚚 Fetching packages... | |
[3/4] 🔗 Linking dependencies... | |
warning " > webpack-subresource-integrity@1.3.2" has unmet peer dependency "webpack@^1.12.11 || ~2 || ~3 || ~4". | |
[4/4] 🔨 Building fresh packages... | |
success Saved lockfile. | |
✨ Done in 20.46s. | |
$ find node_modules -name webpack-subresource-integrity -exec jq .version {}/package.json \; | |
"1.3.2" | |
$ grep webpack-subresource-integrity yarn.lock | |
webpack-subresource-integrity "1.1.0-rc.6" | |
webpack-subresource-integrity@1.1.0-rc.6, webpack-subresource-integrity@~1.3.2: | |
resolved "https://registry.yarnpkg.com/webpack-subresource-integrity/-/webpack-subresource-integrity-1.3.2.tgz#38fdcbdd9b90b224500626efa1e6d17fc650800f" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment