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/verdaccio-containers/prepare.js

17 lines
736 B

const fse = require('fs-extra');
const path = require('path')
// packages
fse.removeSync(path.join(__dirname, 'publish-packages/abp'))
fse.removeSync(path.join(__dirname, '../ng-packs/node_modules'))
fse.removeSync(path.join(__dirname, '../ng-packs/scripts/node_modules'))
fse.copySync(path.join(__dirname, '../ng-packs'), path.join(__dirname, 'publish-packages/abp/npm/ng-packs'), {overwrite: true, errorOnExist: false, })
// app angular template
fse.removeSync(path.join(__dirname, 'serve-app/app'))
fse.removeSync(path.join(__dirname, '../../templates/app/angular/node_modules'));
fse.copySync(path.join(__dirname, '../../templates/app/angular'), path.join(__dirname, 'serve-app/app'), {overwrite: true, errorOnExist: false, })