Skip to content

Commit

Permalink
fix cli (gatsbyjs#2742)
Browse files Browse the repository at this point in the history
* fix cli

* fix main

* try this
  • Loading branch information
jquense authored and KyleAMathews committed Nov 1, 2017
1 parent 78495a3 commit 809e826
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
5 changes: 1 addition & 4 deletions packages/gatsby-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
/lib
/*.js
!/bin.js
/reporter
yarn.lock
/node_modules
5 changes: 5 additions & 0 deletions packages/gatsby-cli/gatsby
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

// This file exists to fix a problem lerna has with symlinks on Windows
// See https://github.com/gatsbyjs/gatsby/pull/2658
require(`./lib/index.js`)
16 changes: 6 additions & 10 deletions packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{
"name": "gatsby-cli",
"description": "Gatsby command-line interface for creating new sites and running Gatsby commands",
"description":
"Gatsby command-line interface for creating new sites and running Gatsby commands",
"version": "1.1.15",
"author": "Kyle Mathews <[email protected]>",
"bin": {
"gatsby": "./gatsby.js"
"gatsby": "./gatsby"
},
"files": [
"./gatsby.js",
"lib"
],
"files": ["gatsby.js", "lib"],
"dependencies": {
"babel-code-frame": "^6.26.0",
"babel-runtime": "^6.26.0",
Expand All @@ -32,11 +30,9 @@
"babel-cli": "^6.26.0",
"cross-env": "^5.0.5"
},
"keywords": [
"gatsby"
],
"keywords": ["gatsby"],
"license": "MIT",
"main": "bin.js",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib --ignore __tests__",
"watch": "babel -w src --out-dir lib --ignore __tests__",
Expand Down

0 comments on commit 809e826

Please sign in to comment.