Skip to content

Commit

Permalink
build: workaround yarn tgz bug
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored and Keen Yee Liau committed Sep 10, 2018
1 parent f5fe1b6 commit 4a5973c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmark/aio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [],
Expand Down
4 changes: 3 additions & 1 deletion lib/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a5973c

Please sign in to comment.