From 068d49fcf859a59fafbb43d020fd8f6da9398902 Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Thu, 2 Nov 2017 11:52:55 -0400 Subject: [PATCH] arg (#2747) * arg * revert original --- netlify.toml | 2 +- packages/gatsby-cli/gatsby | 5 ----- packages/gatsby-cli/package.json | 14 +++++--------- packages/gatsby-cli/src/index.js | 2 ++ 4 files changed, 8 insertions(+), 15 deletions(-) delete mode 100755 packages/gatsby-cli/gatsby diff --git a/netlify.toml b/netlify.toml index 9b92e0000c302..d7ce88b16adcb 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,4 @@ [build.environment] NODE_VERSION = "8" YARN_VERSION = "1.2.1" - YARN_FLAGS = "--pure-lockfile" + YARN_FLAGS = "--pure-lockfile --verbose" diff --git a/packages/gatsby-cli/gatsby b/packages/gatsby-cli/gatsby deleted file mode 100755 index 652c1bca4148f..0000000000000 --- a/packages/gatsby-cli/gatsby +++ /dev/null @@ -1,5 +0,0 @@ -#!/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`) diff --git a/packages/gatsby-cli/package.json b/packages/gatsby-cli/package.json index 85558141b95d4..590784e76411b 100644 --- a/packages/gatsby-cli/package.json +++ b/packages/gatsby-cli/package.json @@ -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.17", "author": "Kyle Mathews ", "bin": { - "gatsby": "./gatsby" + "gatsby": "lib/index.js" }, - "files": [ - "gatsby", - "lib" - ], + "files": ["lib"], "dependencies": { "babel-code-frame": "^6.26.0", "babel-runtime": "^6.26.0", @@ -32,9 +30,7 @@ "babel-cli": "^6.26.0", "cross-env": "^5.0.5" }, - "keywords": [ - "gatsby" - ], + "keywords": ["gatsby"], "license": "MIT", "main": "lib/index.js", "scripts": { diff --git a/packages/gatsby-cli/src/index.js b/packages/gatsby-cli/src/index.js index 805587bf4b30f..bc02e5f2b7b64 100755 --- a/packages/gatsby-cli/src/index.js +++ b/packages/gatsby-cli/src/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + // babel-preset-env doesn't find this import if you // use require() with backtick strings so use the es6 syntax import 'babel-polyfill'