* chore(repo): move add-nx into main nx repo * fix(misc): fix publishing of add nx projects Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
17 lines
341 B
JavaScript
17 lines
341 B
JavaScript
#!/usr/bin/env node
|
|
import { createNxWorkspaceForReact } from './lib/cra-to-nx';
|
|
import * as yargsParser from 'yargs-parser';
|
|
|
|
export * from './lib/cra-to-nx';
|
|
|
|
const args = yargsParser(process.argv);
|
|
|
|
createNxWorkspaceForReact(args)
|
|
.then(() => {
|
|
process.exit(0);
|
|
})
|
|
.catch((e) => {
|
|
console.log(e);
|
|
process.exit(1);
|
|
});
|