@wpmoo/toolkit 0.9.1 → 0.9.2

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.
package/dist/cli.js CHANGED
@@ -25,7 +25,7 @@ import { checkGitHubRepositories, createGitHubRepositories, manualCreateCommands
25
25
  import { scaffold } from './scaffold.js';
26
26
  import { confirmPrompt, introPrompt, isPromptCancel, notePrompt, outroPrompt, selectPrompt, textPrompt } from './prompts/index.js';
27
27
  import { renderBanner } from './templates.js';
28
- import { checkForUpdate, installLatestPackage, isUpdateCheckSkipped, restartCli } from './update-check.js';
28
+ import { checkForUpdate, isUpdateCheckSkipped, restartCli } from './update-check.js';
29
29
  import { packageName, packageVersion, renderVersion, renderVersionTag } from './version.js';
30
30
  import { environmentStatusJson, getEnvironmentStatus, renderEnvironmentStatusForTarget, renderEnvironmentStatusSummary, } from './status.js';
31
31
  import { getGitHubAccounts, getGitHubRepositoryStatus, githubRepositoryUrl, realGitHub, createGitHubRepository, } from './github.js';
@@ -202,7 +202,6 @@ async function showStartup(argv, skipUpdateCheck, details) {
202
202
  handleCancel(shouldUpdate, 'exit');
203
203
  if (shouldUpdate) {
204
204
  try {
205
- await installLatestPackage(packageName(), updateCheck.latestVersion);
206
205
  const code = await restartCli(packageName(), updateCheck.latestVersion, argv);
207
206
  if (code === 0) {
208
207
  process.exit(0);
@@ -85,9 +85,6 @@ export async function checkForUpdate(packageName, currentVersion, runner = realN
85
85
  export function packageSpec(packageName, version) {
86
86
  return `${packageName}@${version}`;
87
87
  }
88
- export async function installLatestPackage(packageName, version, runner = realNpm) {
89
- await runner.run(['install', '-g', packageSpec(packageName, version)]);
90
- }
91
88
  export function restartArgs(packageName, version, argv) {
92
89
  return ['exec', '--yes', '--package', packageSpec(packageName, version), '--', 'wpmoo', ...argv];
93
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpmoo/toolkit",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "WPMoo Toolkit for development, staging, and production lifecycle workflows.",
5
5
  "type": "module",
6
6
  "repository": {