@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
- return parseBooleanFlag(flags.next, false) ? 'next' : undefined;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rs-x/cli",
3
- "version": "2.0.0-next.11",
3
+ "version": "2.0.0-next.13",
4
4
  "description": "CLI for installing RS-X compiler tooling and VS Code integration",
5
5
  "bin": {
6
6
  "rsx": "./bin/rsx.cjs"
@@ -0,0 +1,6 @@
1
+ import { defineConfig } from 'vite';
2
+ import react from '@vitejs/plugin-react';
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ });