@grest-ts/cli 0.0.35 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +8 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -195,6 +195,14 @@ async function runUpdate(args) {
195
195
  return
196
196
  }
197
197
 
198
+ // No package.json edits → assume node_modules is already consistent with the
199
+ // (now-canonical) lockfile and skip the destructive reinstall. Repeated runs
200
+ // become a true no-op instead of churning the lockfile and re-fetching deps.
201
+ if (totalChanged === 0) {
202
+ console.log(`\n✓ All @grest-ts/* already at ${canonicalRange}. Nothing to do.`)
203
+ return
204
+ }
205
+
198
206
  // 7. Clear lockfile + installed @grest-ts/* state.
199
207
  // Three things hold npm to old grest-ts versions:
200
208
  // - package-lock.json (the visible lockfile)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "//": "THIS FILE IS GENERATED - DO NOT EDIT",
3
3
  "name": "@grest-ts/cli",
4
- "version": "0.0.35",
4
+ "version": "0.0.37",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "CLI for managing grest-ts in a project (atomic version updates, etc.)",