-
Notifications
You must be signed in to change notification settings - Fork 247
Conversation
- Converts environment vars used in `npm run` to account for windows/linux respectively - Add tests for command - Update `npm test` to look for all .test.js files
Sorry about the |
- Use Object.assign
Current coverage is 100% (diff: 100%)@@ master #32 diff @@
===================================
Files 1 2 +1
Lines 34 49 +15
Methods 0 0
Messages 0 0
Branches 0 0
===================================
+ Hits 34 49 +15
Misses 0 0
Partials 0 0
|
I can understand about the line endings, though I've never seen it cause issues in any repo I've worked in, both personally and professionally, since Git defaults to fixing the line endings Either way, I've fixed the |
FYI this broke my build https://travis-ci.org/redux-observable/redux-observable/builds/165012081 redux-observable/redux-observable#125
|
@@ -1,4 +1,5 @@ | |||
import {spawn} from 'cross-spawn'; | |||
import commandConvert from './command'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing it's "build": "cd src && babel index.js -d ../dist && cd ..",
How about bumping the version number? |
fixes issue introduced by kentcdodds#32 using ./command.js but it not being in artifact dist
Issue was fixed in e847b18 v3.1.1 |
Ah, I just posted an issue as this broke our build just like yours did @jayphelps Will update again and try to delete the issue if it's fixed now. |
Oh snap, @elijahmanor, I just remembered this is a thing. I don't know whether you need to use |
npm run
to account for windows/linux respectivelynpm test
to look for all .test.js filesEssentially it makes
cross-env PORT=3000 $npm_package_main
work, otherwise on Windows you getError: Cannot find module 'C:\Repo\$npm_package_main'
since Windows expects env variables to be in the format of%npm_package_main%
As a side note, the
linebreak-style
rule makes it a frustrating experience committing against the repo as it fails all commits despite the fact that Git convertsCRLF
toLF
automatically on commit (this is a default setting for Git on Windows)