mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
build: workaround yarn tgz bug
This commit is contained in:
parent
f5fe1b60d4
commit
4a5973c37a
@ -7,8 +7,9 @@
|
|||||||
"initialize": "yarn clone && yarn setup && yarn update",
|
"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",
|
"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",
|
"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.",
|
"//": "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"
|
"benchmark": "cd angular/aio && benchmark --verbose -- yarn ~~build --configuration=stable"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
@ -212,7 +212,9 @@ export const packages: PackageMap =
|
|||||||
relative: path.relative(path.dirname(__dirname), pkgRoot),
|
relative: path.relative(path.dirname(__dirname), pkgRoot),
|
||||||
main: path.resolve(pkgRoot, 'src/index.ts'),
|
main: path.resolve(pkgRoot, 'src/index.ts'),
|
||||||
private: packageJson.private,
|
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,
|
bin,
|
||||||
name,
|
name,
|
||||||
packageJson,
|
packageJson,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user