build: workaround yarn tgz bug

This commit is contained in:
Filipe Silva 2018-08-31 14:11:04 +01:00 committed by Keen Yee Liau
parent f5fe1b60d4
commit 4a5973c37a
2 changed files with 5 additions and 2 deletions

View File

@ -7,8 +7,9 @@
"initialize": "yarn clone && yarn setup && yarn update",
"clone": "(git clone https://github.com/angular/angular --depth 1 || true) && cd angular && git fetch origin dd2a650c3455f3bc0a88f8181758a84aacb25fea && git checkout -f FETCH_HEAD",
"setup": "cd angular && yarn && cd aio && yarn && yarn setup",
"update": "cd angular/aio && yarn add ../../../../dist/_angular-devkit_build-angular.tgz --dev",
"//": "Shouldn't need to install the package twice, but the first install seems to leave two @ngtools/webpack installs around.",
"update": "cd angular/aio && yarn add ../../../../dist/@angular-devkit_build-angular.tgz --dev && yarn add ../../../../dist/_angular-devkit_build-angular.tgz --dev",
"postupdate": "cd angular/aio && yarn add ../../../../dist/_angular-devkit_build-angular.tgz --dev",
"benchmark": "cd angular/aio && benchmark --verbose -- yarn ~~build --configuration=stable"
},
"keywords": [],

View File

@ -212,7 +212,9 @@ export const packages: PackageMap =
relative: path.relative(path.dirname(__dirname), pkgRoot),
main: path.resolve(pkgRoot, 'src/index.ts'),
private: packageJson.private,
tar: path.join(distRoot, name.replace('/', '_') + '.tgz'),
// yarn doesn't take kindly to @ in tgz filenames
// https://github.com/yarnpkg/yarn/issues/6339
tar: path.join(distRoot, name.replace(/\/|@/g, '_') + '.tgz'),
bin,
name,
packageJson,