@getxflow/cli 0.6.1 → 0.6.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/commands/update.js +6 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/commands/update.js
CHANGED
|
@@ -129,7 +129,12 @@ function update() {
|
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
(0, ui_1.step)(`updating ${PACKAGE} from ${version_1.CLI_VERSION}`);
|
|
132
|
-
|
|
132
|
+
// --prefer-online: npm trusts its cached package metadata for five minutes, and a
|
|
133
|
+
// release younger than that installs as "already the latest" while the notice from
|
|
134
|
+
// the platform keeps saying otherwise. Update means ask the registry.
|
|
135
|
+
const result = (0, spawn_1.run)('npm', ['i', '-g', `${PACKAGE}@latest`, '--prefer-online'], {
|
|
136
|
+
stdio: 'inherit',
|
|
137
|
+
});
|
|
133
138
|
if (result.error) {
|
|
134
139
|
throw new errors_1.CliError(`Could not run npm: ${result.error.message}`, `Install by hand: npm i -g ${PACKAGE}@latest`);
|
|
135
140
|
}
|
package/dist/version.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DEFAULT_API_URL = exports.CLI_VERSION = void 0;
|
|
4
4
|
/** Keep in sync with cli/package.json. */
|
|
5
|
-
exports.CLI_VERSION = '0.6.
|
|
5
|
+
exports.CLI_VERSION = '0.6.2';
|
|
6
6
|
/** Overridden by XFLOW_API_URL or the `api` field in xflow.json. */
|
|
7
7
|
exports.DEFAULT_API_URL = 'https://app.getxflow.com';
|