@bobfrankston/npmglobalize 1.0.212 → 1.0.213

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 (4) hide show
  1. package/README.md +5 -5
  2. package/cli.js +5 -4
  3. package/lib.js +2 -2
  4. package/package.json +1 -1
package/README.md CHANGED
@@ -421,8 +421,8 @@ not what you meant to publish, so npmglobalize lists the conflicted files and st
421
421
  -link Install globally via symlink (npm install -g .)
422
422
  -local Local install only — skip transform/publish, just npm install -g .
423
423
  (persisted; a .commitmsg is still logged to npmchanges.md as "(local)")
424
- -nolocal Clear a persisted -local in .globalize.json5 — back to transform/publish
425
- (alias: -global)
424
+ -global Clear a persisted -local in .globalize.json5 — back to the normal
425
+ transform/publish flow (publishes to npm again)
426
426
  -wsl Also install in WSL
427
427
  -once Don't persist flags to .globalize.json5
428
428
  ```
@@ -773,7 +773,7 @@ npmglobalize -local # same as --local
773
773
  Some flags are **persisted** to `.globalize.json5` when set from the CLI:
774
774
  - `-install`, `-link`, `-wsl`, `-files`, `-fix` — install/build preferences
775
775
  - `-np` (noPublish) — once set, prevents accidental publishes
776
- - `-local` — remembers "this project is local-only" (clear with `-nolocal` / `-global`)
776
+ - `-local` — remembers "this project is local-only" (clear with `-global`)
777
777
  - `-git`/`-npm` visibility
778
778
 
779
779
  Other flags are **one-shot** (never persisted):
@@ -793,7 +793,7 @@ Skip all transform/publish logic and just run `npm install -g .` with `file:` de
793
793
  ```bash
794
794
  npmglobalize -local # Install globally from local directory
795
795
  npmglobalize -local -wsl # Also install in WSL
796
- npmglobalize -nolocal # Back to the normal transform/publish flow (alias: -global)
796
+ npmglobalize -global # Back to the normal transform/publish flow (publishes to npm)
797
797
  ```
798
798
 
799
799
  This is useful for:
@@ -802,7 +802,7 @@ This is useful for:
802
802
  - Projects with `file:` deps that should stay as-is
803
803
 
804
804
  `-local` is persisted to `.globalize.json5` (`"local": true`), so a bare
805
- `npmglobalize` keeps doing local installs until you run `-nolocal` (or edit the
805
+ `npmglobalize` keeps doing local installs until you run `-global` (or edit the
806
806
  file). Nothing is committed, bumped, or published, but a `.commitmsg` is still
807
807
  consumed: it is appended to `npmchanges.md` under a
808
808
  `## v<version> (local) — <YYYY-MM-DD>` header and deleted, so the notes are not
package/cli.js CHANGED
@@ -70,8 +70,8 @@ Install Options:
70
70
  -link Global install via symlink (npm install -g .)
71
71
  -local Local install only — skip transform/publish, just npm install -g .
72
72
  (persisted; a .commitmsg is still logged to npmchanges.md as "(local)")
73
- -nolocal Clear a persisted -local in .globalize.json5 — back to transform/publish
74
- (alias: -global)
73
+ -global Clear a persisted -local in .globalize.json5 — back to the normal
74
+ transform/publish flow (publishes to npm again)
75
75
  -wsl Also install globally in WSL
76
76
  -freeze Freeze node_modules (replace symlinks with real copies for network shares)
77
77
  -nofreeze Disable freeze
@@ -157,7 +157,7 @@ Examples:
157
157
  npmglobalize -link -wsl Release + link on Windows and WSL (symlink)
158
158
  npmglobalize -local Install locally with file: deps as-is (no publish)
159
159
  npmglobalize -local -wsl Local install on Windows and WSL
160
- npmglobalize -nolocal Leave local-only mode; publish normally from now on
160
+ npmglobalize -global Leave local-only mode; publish to npm from now on
161
161
  npmglobalize -np Just transform, no publish (remembered in config)
162
162
  npmglobalize -cleanup Restore original dependencies
163
163
  npmglobalize -init Initialize git (adopt existing remote if any) + release
@@ -233,7 +233,8 @@ function parseArgs(args) {
233
233
  // 2026-09-01 16:30 EDT — Claude Code (Opus 5), at Bob's direction. -local
234
234
  // persists to .globalize.json5 but had no counterpart, so leaving local-only
235
235
  // mode meant hand-editing the config. Same shape as -publish for -np.
236
- case '-nolocal':
236
+ // 2026-09-01 15:00 EDT — Bob: "-global makes more sense, -nolocal is confusing";
237
+ // -nolocal dropped, -global is the only spelling.
237
238
  case '-global':
238
239
  options.local = false;
239
240
  options.explicitKeys.add('local');
package/lib.js CHANGED
@@ -445,7 +445,7 @@ export function writeConfig(dir, config, explicitKeys) {
445
445
  ['"gitVisibility": "private"', 'Git repo: private or public'],
446
446
  ['"npmVisibility": "private"', 'npm package: private or public'],
447
447
  ['"fix": false', 'true = auto-run npm audit fix'],
448
- ['"local": false', 'true = local install only (skip transform/publish); clear with -nolocal'],
448
+ ['"local": false', 'true = local install only (skip transform/publish); clear with -global'],
449
449
  ['"noPublish": false', 'true = transform but don\'t publish'],
450
450
  ['"freeze": false', 'true = freeze node_modules (replace symlinks with real copies)'],
451
451
  ['"usePaths": true', 'true = resolve file: deps from siblings; false = use latest npm version (standalone)'],
@@ -6053,7 +6053,7 @@ async function doLocalInstall(cwd, options) {
6053
6053
  const pkgVersion = pkg.version || '0.0.0';
6054
6054
  console.log(colors.blue(`Local install: ${pkgName}@${pkgVersion}`));
6055
6055
  console.log(colors.dim('Skipping transform/publish — installing with file: deps as-is'));
6056
- console.log(colors.dim(' (switch back to the publish flow with -nolocal)'));
6056
+ console.log(colors.dim(' (switch back to the publish flow with -global)'));
6057
6057
  // Record before the bin check: a library's notes are history too.
6058
6058
  recordLocalChange(cwd, pkgVersion, dryRun);
6059
6059
  if (!pkg.bin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/npmglobalize",
3
- "version": "1.0.212",
3
+ "version": "1.0.213",
4
4
  "description": "Transform file: dependencies to npm versions for publishing",
5
5
  "main": "index.js",
6
6
  "type": "module",