@bobfrankston/npmglobalize 1.0.226 → 1.0.227

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 (3) hide show
  1. package/README.md +8 -6
  2. package/cli.js +15 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -486,9 +486,9 @@ not what you meant to publish, so npmglobalize lists the conflicted files and st
486
486
  -install, -i Install globally after publish (from registry)
487
487
  -link Install globally via symlink (npm install -g .)
488
488
  -local-install Install from the local directory only — skip transform/publish, just
489
- npm install -g . with file: deps as-is (also -localinstall; -local is
490
- the deprecated old spelling). Persisted; a .commitmsg is still logged
491
- to npmchanges.md as "(local)"
489
+ npm install -g . with file: deps as-is (also -localinstall, -install-local,
490
+ -installlocal; the old -local is an error). Persisted; a .commitmsg is
491
+ still logged to npmchanges.md as "(local)"
492
492
  -global Clear a persisted -local-install in .globalize.json5 — back to the normal
493
493
  transform/publish flow (publishes to npm again)
494
494
  -wsl Also install in WSL
@@ -898,9 +898,11 @@ This is useful for:
898
898
  - Testing a CLI before publishing
899
899
  - Projects with `file:` deps that should stay as-is
900
900
 
901
- `-localinstall` is accepted as well. The old spelling `-local` still works but prints a
902
- deprecation note; it was renamed (2026-09-07) because "local" read as "local mode" rather
903
- than "install from the local directory".
901
+ `-localinstall`, `-install-local` and `-installlocal` are accepted as well. The old
902
+ spelling `-local` is an error that names the replacement and exits without doing anything;
903
+ it was renamed (2026-09-07) because "local" read as "local mode" rather than "install from
904
+ the local directory", and a warning that then ran the whole cascade anyway was easy to miss
905
+ (2026-09-08).
904
906
 
905
907
  `-local-install` is persisted to `.globalize.json5` (`"localInstall": true`; the older
906
908
  `"local"` key is still read and is rewritten to the new name the next time the file is
package/cli.js CHANGED
@@ -71,9 +71,9 @@ Install Options:
71
71
  -install, -i Global install after publish (from registry)
72
72
  -link Global install via symlink (npm install -g .)
73
73
  -local-install Install from the local directory only — skip transform/publish, just
74
- npm install -g . with file: deps as-is (also -localinstall; -local is
75
- the deprecated old spelling). Persisted; a .commitmsg is still logged
76
- to npmchanges.md as "(local)"
74
+ npm install -g . with file: deps as-is (also -localinstall, -install-local,
75
+ -installlocal; the old -local is an error). Persisted; a .commitmsg is
76
+ still logged to npmchanges.md as "(local)"
77
77
  -global Clear a persisted -local-install in .globalize.json5 — back to the normal
78
78
  transform/publish flow (publishes to npm again)
79
79
  -wsl Also install globally in WSL
@@ -233,15 +233,21 @@ function parseArgs(args) {
233
233
  // 2026-09-07 — Claude Code (Fable 5.1), at Bob's direction: "-local is
234
234
  // confusing" — it read like "local mode" / "local deps" rather than "install
235
235
  // from the local directory". Renamed to -local-install (-localinstall also
236
- // accepted). -local still works but says so, so muscle memory isn't broken
237
- // and the old spelling is phased out rather than silently kept alive.
238
- // The .globalize.json5 key was renamed "local" "localInstall" the same day;
239
- // readConfig accepts the old name and the next persist rewrites it.
236
+ // accepted). The .globalize.json5 key was renamed "local" "localInstall"
237
+ // the same day; readConfig accepts the old name and rewrites it.
238
+ // 2026-09-08 — Claude Code (Fable 5.1), at Bob's direction: -local is now a
239
+ // hard error, not a warning. As a warning it printed one yellow line and then
240
+ // ran the whole cascade anyway (Bob: "you continue rather than exiting"), so
241
+ // the note scrolled off before it could be acted on. Same exit path as an
242
+ // unrecognized flag. -install-local / -installlocal are accepted too: the word
243
+ // order is easy to get backwards (Bob typed "-installlocal" reporting this).
240
244
  case '-local':
241
- console.log(colors.yellow('! -local is deprecated — use -local-install (or -localinstall). Same meaning: npm install -g . from the local directory, no publish.'));
242
- // falls through
245
+ options.error = '-local was renamed -local-install (or -localinstall). Same meaning: npm install -g . from the local directory, no publish.';
246
+ break;
243
247
  case '-local-install':
244
248
  case '-localinstall':
249
+ case '-install-local':
250
+ case '-installlocal':
245
251
  options.localInstall = true;
246
252
  options.explicitKeys.add('localInstall');
247
253
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/npmglobalize",
3
- "version": "1.0.226",
3
+ "version": "1.0.227",
4
4
  "description": "Transform file: dependencies to npm versions for publishing",
5
5
  "main": "index.js",
6
6
  "type": "module",