Parcourir la source

node(near): Replace `npm install` with `npm ci` (#4490)

- Removed the Make target for package-lock.json. There's already a lock
  file in-place that should be used in most cases. Otherwise, developers
  should be thoughtfully upgrading packages slowly when the needed
  arises. Exposing a make target for `npm install` is suboptimal and
  encourages a workflow that goes against the contributor guidelines.
John Saigle il y a 2 mois
Parent
commit
74e576a03c
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 4
      near/Makefile

+ 1 - 4
near/Makefile

@@ -53,10 +53,7 @@ contracts/token-bridge/target/wasm32-unknown-unknown/release/near_token_bridge.w
 contracts/wormhole/target/wasm32-unknown-unknown/release/near_wormhole.wasm: contracts/wormhole/src/*.rs contracts/wormhole/Cargo.toml
 	cd contracts/wormhole; cargo build --target wasm32-unknown-unknown --release
 
-package-lock.json: package.json
-	npm install
-
-node_modules: package-lock.json
+node_modules:
 	touch -m node_modules
 	npm ci