-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Don't npm install the parent project with no args #35359
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
Conversation
b4e13b6
to
f2540d3
Compare
fd9652c
to
34c331e
Compare
03dbecc
to
0959df8
Compare
bb96781
to
78ade52
Compare
@@ -78,7 +78,7 @@ namespace Harness { | |||
exec("npm", ["i", "--ignore-scripts"], { cwd, timeout: timeout / 2 }); // NPM shouldn't take the entire timeout - if it takes a long time, it should be terminated and we should log the failure | |||
} | |||
const args = [path.join(IO.getWorkspaceRoot(), "built/local/tsc.js")]; | |||
if (types) { | |||
if (types?.length) { | |||
args.push("--types", types.join(",")); |
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.
this is not correct; args
needs to include --types
even if the list is empty. npm install
is OK to skip though.
I think this will make the diffs in the baselines go away, unfortunately. The real fix for those projects is to add types
entries to their tsconfigs.
@@ -1,4 +1,4 @@ | |||
{ | |||
"cloneUrl": "https://github.com/Microsoft/TypeScript-React-Starter", | |||
"cloneUrl": "https://github.com/Microsoft/TypeScript-WeChat-Starter.git", |
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.
ha ha oh no
No description provided.