@rs-x/cli 2.0.0-next.11 → 2.0.0-next.13
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/rsx.cjs
CHANGED
|
@@ -211,7 +211,29 @@ function applyTagToPackages(packages, tag) {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
function resolveInstallTag(flags) {
|
|
214
|
-
|
|
214
|
+
if (parseBooleanFlag(flags.next, false)) {
|
|
215
|
+
return 'next';
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (CLI_VERSION.includes('-')) {
|
|
219
|
+
return 'next';
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const checkoutRoot = findRepoRoot(__dirname);
|
|
223
|
+
if (!checkoutRoot) {
|
|
224
|
+
return undefined;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const branchResult = spawnSync('git', ['branch', '--show-current'], {
|
|
228
|
+
cwd: checkoutRoot,
|
|
229
|
+
encoding: 'utf8',
|
|
230
|
+
});
|
|
231
|
+
const branch = branchResult.status === 0 ? branchResult.stdout.trim() : '';
|
|
232
|
+
if (branch && branch !== 'main') {
|
|
233
|
+
return 'next';
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return undefined;
|
|
215
237
|
}
|
|
216
238
|
|
|
217
239
|
function installPackages(pm, packages, options = {}) {
|
package/package.json
CHANGED