Skip to content

Commit

Permalink
remove and disable package-lock (go-gitea#6969)
Browse files Browse the repository at this point in the history
* remove and disable package-lock

Using exact versions in package.json has the same effect as lockfiles
without all the troubles the lockfiles bring (different versions of
package manager generating different lockfiles primarily).

Ensured we only use exact versions in package.json and stopped
generation of new lockfiles via .npmrc which is support by both the npm
and yarn package managers.

Fixes: go-gitea#6967

* enable save-exact
  • Loading branch information
silverwind authored and techknowlogick committed May 16, 2019
1 parent 68a83cc commit 04f996f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3,075 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ coverage.all
/node_modules
/modules/indexer/issues/indexers
routers/repo/authorized_keys
/package-lock.json
/yarn.lock

# Snapcraft
snap/.snapcraft/
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package-lock=false
save-exact=true
Loading

0 comments on commit 04f996f

Please sign in to comment.