-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add support for Windows NPM #658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MetaMmodern
wants to merge
21
commits into
wasp-lang:main
Choose a base branch
from
MetaMmodern:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
6148029
add support for windows NPM
MetaMmodern 8fb15a2
lint: remove redundant import
MetaMmodern 18d5cca
Fixed path in generated JS file that was not always Posix.
Martinsos 496d1b3
Now we decode output of subprocesses with locale encoding instead of …
Martinsos d9b3c4a
fix: types to be Strings
MetaMmodern 53f14df
lint: clear the namespace
MetaMmodern bea2d07
fix: bad naming
MetaMmodern 14001b5
add function comments
MetaMmodern 2ddeb9f
format: with ormulu
MetaMmodern e9a4f24
Update waspc/src/Wasp/Generator/Common.hs
MetaMmodern bdafb28
fix: change call signature to npm only
MetaMmodern b7316d2
Merge branch 'main' of https://github.com/MetaMmodern/wasp
MetaMmodern 8f7d68d
fix: comments placement
MetaMmodern 9b531fb
Fixed compiler errors, refactored node job function a bit.
Martinsos 09a6a51
Renamed node-cmd-as-job function.
Martinsos 9115d5e
Added additional encodings support to Wasp.
Martinsos 061af90
Modified encodings flag.
Martinsos b18bfb5
Fixed more for Windows
Martinsos f0a3771
Finally fixed encodings?
Martinsos ed900ae
Implemented encoding function for ByteString.
Martinsos 6d8c376
Removed knob library and now using direct decoding.
Martinsos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We should also consider escpaing the arguments here -> we are not doing any, and we might want to do some, to both make it more robust and reduce chance of injections.
Also, if we are using
cmd.exe, from what I am getting, we might not have to provide it withnpm.cmdbut justnpmmight be enough, and it will know how to resolve that? Is that true? Investigate this.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.
@Martinsos I will do. If it works, I'll change my PR to this solution.
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.
@nodtem66 I'm rooting for you, hope you get your version merged 🏁
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.
It works. If we are using
cmd.exe, justnpmis enough. (seetestNPMCommandViaProcAndCmdin #3020 (comment)