@naseej/blox 1.6.1 → 1.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/bin/run.ts +1 -1
- package/dist/run.js +19 -4
- package/package.json +1 -1
package/bin/run.ts
CHANGED
|
@@ -11,7 +11,7 @@ async function main() {
|
|
|
11
11
|
cli.option('-d, --debug', 'work in debug mode');
|
|
12
12
|
cli.option('-m, --minimal', 'work in minimal mode');
|
|
13
13
|
|
|
14
|
-
await checkForCliUpdate(version);
|
|
14
|
+
await checkForCliUpdate(version, process.argv.slice(2));
|
|
15
15
|
|
|
16
16
|
commands.forEach((cmd) => cli.addCommand(cmd));
|
|
17
17
|
cli.parse();
|
package/dist/run.js
CHANGED
|
@@ -164,7 +164,21 @@ var compareVersions = (a, b) => {
|
|
|
164
164
|
}
|
|
165
165
|
return 0;
|
|
166
166
|
};
|
|
167
|
-
var
|
|
167
|
+
var _getInvokedCommand = (argv) => {
|
|
168
|
+
for (const token of argv) {
|
|
169
|
+
if (token === "--") {
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
if (!token.startsWith("-")) {
|
|
173
|
+
return token;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return null;
|
|
177
|
+
};
|
|
178
|
+
var checkForCliUpdate = async (currentVersion, argv = []) => {
|
|
179
|
+
if (_getInvokedCommand(argv) === "upgrade") {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
168
182
|
const cache = readCache();
|
|
169
183
|
const now = Date.now();
|
|
170
184
|
if (now - cache.lastChecked < checkIntervalMs) {
|
|
@@ -185,7 +199,7 @@ var checkForCliUpdate = async (currentVersion) => {
|
|
|
185
199
|
};
|
|
186
200
|
|
|
187
201
|
// package.json
|
|
188
|
-
var version = "1.6.
|
|
202
|
+
var version = "1.6.2";
|
|
189
203
|
|
|
190
204
|
// src/commands/add/index.ts
|
|
191
205
|
var import_fs_extra10 = __toESM(require("fs-extra"));
|
|
@@ -1859,7 +1873,8 @@ var CommitApplierService = class {
|
|
|
1859
1873
|
projectIgnore
|
|
1860
1874
|
});
|
|
1861
1875
|
prepareSpinner.stop("Prepared apply commits");
|
|
1862
|
-
|
|
1876
|
+
const orderedCommits = [...opts.commits].reverse();
|
|
1877
|
+
for (const commit2 of orderedCommits) {
|
|
1863
1878
|
await this.applySingleCommit(
|
|
1864
1879
|
opts,
|
|
1865
1880
|
subtreePath,
|
|
@@ -3337,7 +3352,7 @@ async function main() {
|
|
|
3337
3352
|
import_extra_typings2.program.name("blox").version(version);
|
|
3338
3353
|
import_extra_typings2.program.option("-d, --debug", "work in debug mode");
|
|
3339
3354
|
import_extra_typings2.program.option("-m, --minimal", "work in minimal mode");
|
|
3340
|
-
await checkForCliUpdate(version);
|
|
3355
|
+
await checkForCliUpdate(version, process.argv.slice(2));
|
|
3341
3356
|
commands.forEach((cmd) => import_extra_typings2.program.addCommand(cmd));
|
|
3342
3357
|
import_extra_typings2.program.parse();
|
|
3343
3358
|
}
|