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

Use double quotes consistently in npm scripts. #392

Merged
merged 1 commit into from
Apr 1, 2017

Conversation

mlewand
Copy link
Contributor

@mlewand mlewand commented Apr 1, 2017

While I've been trying to debug my configuration I found out that test won't work on Windows machines.

The reason was quoting in package.json. When having apostrophe/single quote used in Windows it passes it directly to the commandline, ending up with wrong arguments.

Repro steps:

  1. Clone repo on Windows machine.
  2. Open cmd.exe command line in cloned directory.
  3. Install deps.
  4. Build js files.
  5. Run npm test.

All tests pass.

No test files are found.

When having apostrophe/single quote used in Windows it passes it directly to commandline, ending up with wrong arguments.
@msftclas
Copy link

msftclas commented Apr 1, 2017

@mlewand,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@roblourens
Copy link
Member

Thanks for the PR!

@roblourens roblourens merged commit 6468c4d into microsoft:master Apr 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants