Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Fixes location of create-project bin when using yarn create (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman authored Dec 7, 2017
1 parent 10a6feb commit 54c4a02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const env = createEnv();
const done = exitCode => process.exit(exitCode || 0);
const dir = resolve(__dirname, '../commands/init');

env.register(require.resolve(dir), 'create-neutrino-project');
env.register(require.resolve(dir), 'create-project');

const cli = yargs.command('<project-directory>')
.demandCommand(1, 'Only <project-directory> is required')
Expand All @@ -17,8 +17,8 @@ const cli = yargs.command('<project-directory>')
const directory = isAbsolute(cli._[0]) ? cli._[0] : join(process.cwd(), cli._[0]);
const name = basename(directory);

env.run('create-neutrino-project', {
env.run('create-project', {
directory,
name,
stdio: process.env.NODE_ENV === 'test' ? 'ignore' : 'inherit'
stdio: 'ignore'
}, done);
4 changes: 2 additions & 2 deletions packages/create-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "1.0.0",
"description": "Scaffold new Neutrino projects with a CLI helper",
"bin": {
"create-neutrino-project": "./bin/create-neutrino-project.js"
"create-project": "./bin/create-project.js"
},
"scripts": {
"start": "./bin/create-neutrino-project init"
"start": "./bin/create-project init"
},
"files": [
"bin",
Expand Down

0 comments on commit 54c4a02

Please sign in to comment.