ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
23 lines (18 loc) • 502 B
JavaScript
const path = require('path');
const ngPackage = require('ng-packagr');
const name = process.argv[2];
const target = path.resolve(__dirname, `../../packages/${name}`);
console.time(`${name}:time`);
ngPackage
.ngPackagr()
.forProject(path.resolve(target, `ng-package.json`))
.withTsConfig(path.resolve(target, 'tsconfig.lib.json'))
.build()
.then(() => {
console.timeEnd(`${name}:time`);
})
.catch(error => {
console.error(error);
process.exit(1);
});