@bobfrankston/npmglobalize 1.0.147 → 1.0.148

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/lib.js +2 -2
  2. package/package.json +1 -1
package/lib.js CHANGED
@@ -2778,7 +2778,7 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
2778
2778
  if (dryRun) {
2779
2779
  console.log(' [dry-run] Would initialize git repository');
2780
2780
  }
2781
- else if (!init && !options.autoInit) {
2781
+ else if (!init && !options.autoInit && !publishDepsYes) {
2782
2782
  const choice = await promptChoice('No git repository found. What would you like to do?\n 1) Initialize git repository (default)\n a) Initialize ALL (don\'t ask again for remaining deps)\n 2) Use local install only (skip git/publish)\n 3) Abort\nChoice:', ['1', 'a', '2', '3', '']);
2783
2783
  if (choice === '2') {
2784
2784
  console.log(colors.dim('Switching to local-only mode...'));
@@ -2807,7 +2807,7 @@ export async function globalize(cwd, options = {}, configOptions = {}) {
2807
2807
  }
2808
2808
  else if (!gitStatus.hasRemote) {
2809
2809
  // Git repo exists but no remote - need to create GitHub repo
2810
- if (!init && !options.autoInit) {
2810
+ if (!init && !options.autoInit && !publishDepsYes) {
2811
2811
  const choice = await promptChoice('No git remote configured. What would you like to do?\n 1) Create GitHub repository (default)\n a) Initialize ALL (don\'t ask again for remaining deps)\n 2) Use local install only (skip git/publish)\n 3) Abort\nChoice:', ['1', 'a', '2', '3', '']);
2812
2812
  if (choice === '2') {
2813
2813
  console.log(colors.dim('Switching to local-only mode...'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/npmglobalize",
3
- "version": "1.0.147",
3
+ "version": "1.0.148",
4
4
  "description": "Transform file: dependencies to npm versions for publishing",
5
5
  "main": "index.js",
6
6
  "type": "module",