17 lines
464 B
TypeScript
17 lines
464 B
TypeScript
import { updateJsonFile } from '@nrwl/workspace';
|
|
|
|
export default {
|
|
description: 'Add nx-migrate:check and nx-migrate:skip to npm scripts',
|
|
run: () => {
|
|
updateJsonFile('package.json', json => {
|
|
json.scripts = {
|
|
...json.scripts,
|
|
|
|
'nx-migrate': './node_modules/.bin/nx migrate',
|
|
'nx-migrate:check': './node_modules/.bin/nx migrate check',
|
|
'nx-migrate:skip': './node_modules/.bin/nx migrate skip'
|
|
};
|
|
});
|
|
}
|
|
};
|