@artilingo/artiframe-cli 1.0.7 → 1.0.8

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/bin/artiframe.js CHANGED
@@ -202,7 +202,7 @@ async function handleVersion() {
202
202
  console.log(` ${m.updating}`);
203
203
  console.log();
204
204
 
205
- const result = spawnSync('npm', ['install', '-g', PACKAGE_NAME], {
205
+ const result = spawnSync('npm', ['install', '-g', PACKAGE_NAME + '@latest', '--prefer-online'], {
206
206
  stdio: 'inherit',
207
207
  shell: true,
208
208
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artilingo/artiframe-cli",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "ArtiFrame — Zero-dependency native PHP framework with a powerful multilingual CLI. Scaffold projects, generate views, APIs and classes instantly.",
5
5
  "main": "bin/artiframe.js",
6
6
  "bin": {
@@ -75,7 +75,7 @@ class CliVersionCommand
75
75
  echo " " . $t->get('VERSION_UPDATING') . PHP_EOL;
76
76
  echo PHP_EOL;
77
77
 
78
- passthru('npm install -g ' . self::PACKAGE, $exitCode);
78
+ passthru('npm install -g ' . self::PACKAGE . '@latest --prefer-online', $exitCode);
79
79
 
80
80
  echo PHP_EOL;
81
81
  if ($exitCode === 0) {