Skip to content

Commit

Permalink
Other: Moved cli deps placeholder creation to post install script [ci…
Browse files Browse the repository at this point in the history
… skip]
  • Loading branch information
dcodeIO committed Mar 2, 2017
1 parent 483c5e2 commit 4b21e00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Empty file removed cli/node_modules/placeholder
Empty file.
7 changes: 5 additions & 2 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down

0 comments on commit 4b21e00

Please sign in to comment.