Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #448 from yggg/fix/publish-disable-ivy-and-remove-…
Browse files Browse the repository at this point in the history
…postintall-script

fix(build): disable Ivy and remove postinstall script
  • Loading branch information
oferh authored Apr 9, 2020
2 parents e746379 + f19595e commit f7a33d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const shell = require('shelljs');
const chalk = require('chalk');
const path = require('path');

const PACKAGE = `ng2-completer`;
const NPM_DIR = `dist/lib`;
Expand Down Expand Up @@ -70,4 +71,7 @@ shell.rm(`-Rf`, `${NPM_DIR}/src/**/*.js.map`);

shell.cp(`-Rf`, [`package.json`, `LICENSE.md`, `README.md`], `${NPM_DIR}`);

const packageJsonPath = path.join(__dirname, NPM_DIR, 'package.json');
shell.sed('-i', /^.+postinstall.+$/, '', packageJsonPath);

shell.echo(chalk.green(`End building`));
5 changes: 3 additions & 2 deletions tsconfig-build.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"annotateForClosureCompiler": false,
"strictMetadataEmit": true,
"flatModuleOutFile": "ng2-completer.js",
"flatModuleId": "ng2-completer"
"flatModuleId": "ng2-completer",
"enableIvy": false
}
}
}

0 comments on commit f7a33d1

Please sign in to comment.