Browse Source

remove: redundant ngcc compilation scripts

pull/23384/head
sumeyye 7 months ago
parent
commit
04801a5293
  1. 2
      npm/ng-packs/package.json
  2. 3
      npm/ng-packs/scripts/build.ts

2
npm/ng-packs/package.json

@ -29,8 +29,6 @@
"workspace-generator": "nx workspace-generator",
"dep-graph": "nx dep-graph",
"help": "nx help",
"compile:ivy": "yarn ngcc --properties es2020 browser module main --first-only --create-ivy-entry-points --tsconfig './tsconfig.prod.json' --source node_modules",
"postinstall2": "node ./decorate-angular-cli.js && yarn compile:ivy",
"build:schematics": "cd scripts && yarn && yarn build:schematics && cd ..",
"dev:schematics": "tsc -p packages/schematics/tsconfig.json -w",
"mock:schematics": "cd scripts/mock-schematic && yarn && yarn start",

3
npm/ng-packs/scripts/build.ts

@ -4,7 +4,6 @@ import fse from 'fs-extra';
(async () => {
program.option('-i, --noInstall', 'skip updating package.json and installation', false);
program.option('-c, --skipNgcc', 'skip ngcc', false);
program.parse(process.argv);
@ -66,8 +65,6 @@ import fse from 'fs-extra';
],
{ stdout: 'inherit', cwd: '../' },
);
if (!program.skipNgcc) await execa('yarn', ['compile:ivy'], { stdout: 'inherit', cwd: '../' });
} catch (error) {
console.error(error.stderr);
process.exit(1);

Loading…
Cancel
Save