-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support running npm install without package.json #206
Conversation
a06d73c
to
4747a71
Compare
4747a71
to
57b4655
Compare
@@ -73,3 +73,11 @@ func PrintBuildInfoMismatch(t *testing.T, expected, actual []entities.Module) { | |||
assert.NoError(t, err) | |||
t.Errorf("build-info don't match. want: \n%v\ngot:\n%s\n", string(excpectedStr), string(actualStr)) | |||
} | |||
|
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 not sure it's the right thing to place this file inside the testdata
directory, since this durectory shouldn't include code.
Let's move this file to be under the utils
package. We also ready have a utils_test.go
file thsi code can be merged into.
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 couldn't put it in the utils package because it makes a cyclic import. I moved this file into a new "tests" package.
8781e81
to
1ab84c6
Compare
1ab84c6
to
9712af4
Compare
9712af4
to
bbe62f4
Compare
Dependent PRs:
Allow running npm install (
jf npm install <package-name>
) withoutpackage.json
file.