rird 1.1.6 → 1.1.7
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/rird +8 -1
- package/package.json +1 -1
package/bin/rird
CHANGED
|
@@ -275,12 +275,19 @@ if (command === "activate") {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
const env = { ...process.env }
|
|
279
|
+
env.RIRD_CONFIG = configPath
|
|
280
|
+
env.RIRD_ENGINE_DIR = workDir
|
|
281
|
+
// Enable RIRD search tools
|
|
282
|
+
env.RIRD_ENABLE_SEARCH = "true"
|
|
283
|
+
|
|
284
|
+
const args = process.argv.slice(2)
|
|
285
|
+
|
|
278
286
|
const resolved = findBinary(scriptDir)
|
|
279
287
|
if (!resolved) {
|
|
280
288
|
// FALLBACK: If binary not found, try to run from source if in dev tree
|
|
281
289
|
const sourceIndex = path.join(scriptDir, "..", "src", "index.ts")
|
|
282
290
|
if (fs.existsSync(sourceIndex)) {
|
|
283
|
-
const args = process.argv.slice(2)
|
|
284
291
|
childProcess.spawnSync("bun", ["run", "--conditions=browser", sourceIndex, ...args], {
|
|
285
292
|
stdio: "inherit",
|
|
286
293
|
env: env,
|