Permalink
Browse files

Other: Moved cli deps placeholder creation to post install script [ci…

… skip]
  • Loading branch information...
dcodeIO committed Mar 2, 2017
1 parent 483c5e2 commit 4b21e00adc6fae42e6a88deaeb0b7c077c6ca50e
Showing with 5 additions and 2 deletions.
  1. 0 cli/node_modules/placeholder
  2. +5 −2 scripts/postinstall.js
No changes.
@@ -1,11 +1,14 @@
var path = require("path"),
fs = require("fs"),
pkg = require(path.join(__dirname, "..", "package.json"));
// ensure that there is a node_modules folder for cli dependencies
try { fs.mkdirSync(path.join(__dirname, "..", "cli", "node_modules")); } catch (e) {/**/}
// check version scheme used by dependents
if (!pkg.versionScheme)
return;
var fs = require("fs");
var warn = process.stderr.isTTY
? "\x1b[30m\x1b[43mWARN\x1b[0m \x1b[35m" + path.basename(process.argv[1], ".js") + "\x1b[0m"
: "WARN " + path.basename(process.argv[1], ".js");

0 comments on commit 4b21e00

Please sign in to comment.