Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #186 from FormidableLabs/windows-build
Browse files Browse the repository at this point in the history
Fix postinstall on windows
  • Loading branch information
ianobermiller committed Jun 1, 2015
2 parents 5634b9f + 06fc986 commit 4daf6d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions appveyor.yml
Expand Up @@ -6,6 +6,9 @@ environment:
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# Install and use local, modern NPM
- npm install npm@next
- set PATH=%APPDATA%\npm;%PATH%
# install modules
- npm install

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -18,7 +18,7 @@
"examples": "webpack-dev-server --config examples/webpack.config.js --no-info --content-base examples/",
"lib": "npm run babel && rimraf lib/__tests__ lib/__mocks__",
"lint": "eslint modules",
"postinstall": "node -e \"require('fs').readdir('lib',function(e){e&&require('child_process').spawn('npm', ['run', 'prepublish'], {stdio: 'inherit'})})\"",
"postinstall": "node -e \"require('fs').stat('lib', function(e,s){process.exit(e || !s.isDirectory() ? 0 : 1)})\" && npm run prepublish || true",
"prepublish": "npm run lib",
"test": "jest",
"test-coverage": "npm run babel && jest --config jest/coverage-config.json"
Expand Down

0 comments on commit 4daf6d7

Please sign in to comment.