orbital-command 1.0.0 → 1.0.1
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/commands/launch.js +1 -1
- package/bin/orbital.js +0 -8
- package/dist/server/server/index.js +2 -2
- package/package.json +1 -1
- package/server/index.ts +2 -2
package/bin/commands/launch.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from '../lib/helpers.js';
|
|
11
11
|
|
|
12
12
|
export function cmdLaunchOrDev(forceViteFlag) {
|
|
13
|
-
const shouldOpen = process.argv.includes('--open');
|
|
13
|
+
const shouldOpen = !process.argv.includes('--no-open');
|
|
14
14
|
const forceVite = forceViteFlag || process.argv.includes('--vite');
|
|
15
15
|
const projectRoot = detectProjectRoot();
|
|
16
16
|
const config = loadConfig(projectRoot);
|
package/bin/orbital.js
CHANGED
|
@@ -5,8 +5,6 @@ import path from 'path';
|
|
|
5
5
|
import {
|
|
6
6
|
detectProjectRoot,
|
|
7
7
|
getPackageVersion,
|
|
8
|
-
isGitRepo,
|
|
9
|
-
requireGitRepo,
|
|
10
8
|
loadRegistry,
|
|
11
9
|
writeRegistryAtomic,
|
|
12
10
|
loadSharedModule,
|
|
@@ -42,12 +40,6 @@ async function runHubFlow() {
|
|
|
42
40
|
return;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
|
-
// Need a git repo for everything else
|
|
46
|
-
if (!isGitRepo()) {
|
|
47
|
-
requireGitRepo(); // exits with error
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
43
|
const hubRoot = detectProjectRoot();
|
|
52
44
|
const isInitialized = fs.existsSync(
|
|
53
45
|
path.join(hubRoot, '.claude', 'orbital.config.json')
|
|
@@ -105,8 +105,8 @@ export async function startCentralServer(overrides) {
|
|
|
105
105
|
// ─── Static File Serving ─────────────────────────────────
|
|
106
106
|
const __selfDir = path.dirname(fileURLToPath(import.meta.url));
|
|
107
107
|
const distDir = path.resolve(__selfDir, '../dist');
|
|
108
|
-
const
|
|
109
|
-
const
|
|
108
|
+
const hasBuiltFrontend = fs.existsSync(path.join(distDir, 'index.html'));
|
|
109
|
+
const devMode = !hasBuiltFrontend;
|
|
110
110
|
if (hasBuiltFrontend) {
|
|
111
111
|
app.use(express.static(distDir));
|
|
112
112
|
app.get('*', (req, res, next) => {
|
package/package.json
CHANGED
package/server/index.ts
CHANGED
|
@@ -149,8 +149,8 @@ export async function startCentralServer(overrides?: CentralServerOverrides): Pr
|
|
|
149
149
|
|
|
150
150
|
const __selfDir = path.dirname(fileURLToPath(import.meta.url));
|
|
151
151
|
const distDir = path.resolve(__selfDir, '../dist');
|
|
152
|
-
const
|
|
153
|
-
const
|
|
152
|
+
const hasBuiltFrontend = fs.existsSync(path.join(distDir, 'index.html'));
|
|
153
|
+
const devMode = !hasBuiltFrontend;
|
|
154
154
|
if (hasBuiltFrontend) {
|
|
155
155
|
app.use(express.static(distDir));
|
|
156
156
|
app.get('*', (req, res, next) => {
|