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

Make tests pass on Windows #12

Merged
merged 2 commits into from
Sep 6, 2017
Merged

Make tests pass on Windows #12

merged 2 commits into from
Sep 6, 2017

Conversation

rmg
Copy link
Contributor

@rmg rmg commented Sep 5, 2017

A small tweak to the actual cipm code (lib/config.js), but otherwise all the other changes are within the tests and test helpers.

@@ -11,7 +11,8 @@ let _config

function readConfig () {
return new BB((resolve, reject) => {
const child = spawn('npm', ['config', 'ls', '--json'], {
const npmBin = process.platform === 'win32' ? 'npm.cmd' : 'npm'
Copy link
Contributor Author

@rmg rmg Sep 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coincidentally, one alternative to this ternary is the package that inspired #8, strong-spawn-npm.

@zkat zkat merged commit d912d16 into zkat:latest Sep 6, 2017
@rmg rmg deleted the windows-support branch September 6, 2017 15:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants