You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/npm/packs/utils/prepublish.js

14 lines
343 B

const fse = require('fs-extra');
const execa = require('execa');
fse.copyFileSync('./package.json', './projects/utils/package.json');
fse.copyFileSync('./README.md', './projects/utils/README.md');
try {
execa.sync('yarn', ['build'], { stdout: 'inherit' });
process.exit(0);
} catch (error) {
console.error(error);
process.exit(1);
}