Browse Source

fix(ci): fix prod build error

pull/4216/head
mehmet-erim 6 years ago
parent
commit
f3fa7be781
  1. 18
      npm/ng-packs/scripts/prod-build.ts

18
npm/ng-packs/scripts/prod-build.ts

@ -2,10 +2,10 @@ import execa from 'execa';
import fse from 'fs-extra';
(async () => {
await execa('yarn', ['ng', 'build', '--prod'], {
stdout: 'inherit',
cwd: '..',
});
// await execa('yarn', ['ng', 'build', '--prod'], {
// stdout: 'inherit',
// cwd: '..',
// });
await execa('yarn', ['install', '--ignore-scripts'], {
stdout: 'inherit',
@ -13,11 +13,19 @@ import fse from 'fs-extra';
});
await fse.remove('../../../templates/app/angular/node_modules/@abp');
await fse.copy('../node_modules/@abp', '../../../templates/app/angular/node_modules/@abp', {
overwrite: true,
});
// TODO: Will be removed in v3.1, it is added to fix the prod build error
await fse.copy(
'../node_modules/@swimlane',
'../../../templates/app/angular/node_modules/@swimlane',
{
overwrite: true,
},
);
await execa('yarn', ['ng', 'build', '--prod'], {
stdout: 'inherit',
cwd: '../../../templates/app/angular',

Loading…
Cancel
Save