-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Don't use npx for webpack build and update npm version #9387
Don't use npx for webpack build and update npm version #9387
Conversation
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.
Will check, didn't know we could use npm run webpack
Hmmm
Context: The main missing thing from npm run was setting the memory limit up so I used the cross-env method from here: |
Worked for my local vscode build, npm run commands, and npm run package on windows and my mac. Something is up on the build machine though. I'll check that out. |
Codecov Report
@@ Coverage Diff @@
## master #9387 +/- ##
==========================================
+ Coverage 60.73% 60.97% +0.24%
==========================================
Files 550 529 -21
Lines 28748 28552 -196
Branches 4348 4333 -15
==========================================
- Hits 17459 17409 -50
+ Misses 10338 10192 -146
Partials 951 951
Continue to review full report at Codecov.
|
Sorry still a draft at this point. Forgot to mark as such. |
@@ -2928,7 +2930,7 @@ | |||
"nock": "^10.0.6", | |||
"node-has-native-dependencies": "^1.0.2", | |||
"node-html-parser": "^1.1.13", | |||
"nyc": "^14.1.1", | |||
"nyc": "^15.0.0", |
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.
NYC just flopped over with the newer NPM on windows. Was thankfully just fixed in a recent update to nyc 15.
Currently running nightly against this PR as well. |
@@ -2699,11 +2699,11 @@ | |||
"scripts": { | |||
"package": "gulp clean && gulp prePublishBundle && vsce package -o ms-python-insiders.vsix", | |||
"compile": "tsc -watch -p ./", | |||
"compile-webviews-watch": "npx npx -n --max_old_space_size=9096 webpack --config ./build/webpack/webpack.datascience-ui.config.js --watch", | |||
"compile-webviews-watch": "cross-env NODE_OPTIONS=--max_old_space_size=9096 webpack --config ./build/webpack/webpack.datascience-ui.config.js --watch", |
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.
cross [](start = 35, length = 5)
Is this a replacement for npx?
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.
@rchiodo No, basically just calling webpack and having webpack as a script entry replaces NPX. But cross-env is needed because of that -n parameter that we used with npx. That parameter gets passed as a node option to npm run. So to get around not having that cross-env is just a cross platform way to set an environment variable. That env-var then picks up the old space size setting when running webpack.
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.
🚢
For #7197
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed)