Skip to content
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

Added .npmrc for setting package-lock to false #359

Closed
wants to merge 3 commits into from

Conversation

yjaeseok
Copy link
Contributor

@yjaeseok yjaeseok commented Oct 2, 2018

npm install creates a package-lock.json to lock the versions of dependencies that are installed.
They recommend to commit this file and that's what I usually do in other projects but I think we should gitignore it in CITGM.
This will allow us to always test the latest version of our dependencies (especially in CI).

```npm install``` creates a ```package-lock.json``` to lock the versions of dependencies that are installed.
They recommend to commit this file and that's what I usually do in other projects but I think we should gitignore it in CITGM.
This will allow us to always test the latest version of our dependencies (especially in CI).
@NickNaso
Copy link
Member

NickNaso commented Oct 2, 2018

I was thinking at same thing, but my solution was to eliminate the package-lock.json and add the file .npmrc with package-lock=false. What do you think?
@mhdawson @gabrielschulhof Are you agree with the idea to exclude / remove the package-lock.json?

@yjaeseok
Copy link
Contributor Author

yjaeseok commented Oct 2, 2018

I agree with your opinion ~. :)

@yjaeseok
Copy link
Contributor Author

yjaeseok commented Oct 2, 2018

What do you think it? @mhdawson @gabrielschulhof

@mhdawson
Copy link
Member

mhdawson commented Oct 2, 2018

+1 from me.

@NickNaso
Copy link
Member

NickNaso commented Oct 5, 2018

Hi @nodejs/n-api can @yjaeseok continue to go forward with his proposal? Is there any objection?

@devsnek
Copy link
Member

devsnek commented Oct 5, 2018

fwiw using package-lock.json in any library doesn't make sense because npm doesn't use it in that context. it should just be removed completely anyway.

@NickNaso
Copy link
Member

NickNaso commented Oct 7, 2018

Hi @yjaeseok, I think that there are not objections about you PR so please if you need to complete something do it and then just ping here to get a review.

@yjaeseok yjaeseok changed the title Added package-lock.json file to gitignore Added .npmrc for setting package-lock to false Oct 9, 2018
@yjaeseok
Copy link
Contributor Author

yjaeseok commented Oct 9, 2018

@NickNaso I updated it as you mention, Please review again :)

Copy link
Member

@NickNaso NickNaso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mhdawson pushed a commit that referenced this pull request Oct 22, 2018
```npm install``` creates a ```package-lock.json``` to lock
the versions of dependencies that are installed.
They recommend to commit this file and that's what I
usually do in other projects but we should not use it
for this project.  This will allow us to always test
the latest version of our dependencies (especially in CI).

PR-URL: #359
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
@mhdawson
Copy link
Member

Landed as 8ce605c

@mhdawson mhdawson closed this Oct 22, 2018
kevindavies8 added a commit to kevindavies8/node-addon-api-Develop that referenced this pull request Aug 24, 2022
```npm install``` creates a ```package-lock.json``` to lock
the versions of dependencies that are installed.
They recommend to commit this file and that's what I
usually do in other projects but we should not use it
for this project.  This will allow us to always test
the latest version of our dependencies (especially in CI).

PR-URL: nodejs/node-addon-api#359
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
Marlyfleitas added a commit to Marlyfleitas/node-api-addon-Development that referenced this pull request Aug 26, 2022
```npm install``` creates a ```package-lock.json``` to lock
the versions of dependencies that are installed.
They recommend to commit this file and that's what I
usually do in other projects but we should not use it
for this project.  This will allow us to always test
the latest version of our dependencies (especially in CI).

PR-URL: nodejs/node-addon-api#359
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
wroy7860 added a commit to wroy7860/addon-api-benchmark-node that referenced this pull request Sep 19, 2022
```npm install``` creates a ```package-lock.json``` to lock
the versions of dependencies that are installed.
They recommend to commit this file and that's what I
usually do in other projects but we should not use it
for this project.  This will allow us to always test
the latest version of our dependencies (especially in CI).

PR-URL: nodejs/node-addon-api#359
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
```npm install``` creates a ```package-lock.json``` to lock
the versions of dependencies that are installed.
They recommend to commit this file and that's what I
usually do in other projects but we should not use it
for this project.  This will allow us to always test
the latest version of our dependencies (especially in CI).

PR-URL: nodejs/node-addon-api#359
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Nicola Del Gobbo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants