Skip to content

Commit

Permalink
fix(setup): windows compatibility for postinstall setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jun 4, 2017
1 parent 79dde6b commit 770619e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ var path = require('path')
var fs = require('fs')
var log = require('npmlog')

var installIntoApp = process.env.PWD.indexOf('node_modules') !== -1
var isInstallIntoApp = /node_modules/.test(process.cwd())

// This block only executes if Hoodie is installed with as a dependency
if (installIntoApp) {
if (isInstallIntoApp) {
var pathToAppRoot = path.resolve('..', '..')
var packageJson = require(path.join(pathToAppRoot, 'package.json'))

Expand Down

0 comments on commit 770619e

Please sign in to comment.