rip-lang 3.13.4 → 3.13.5

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.
Files changed (2) hide show
  1. package/bin/rip +8 -5
  2. package/package.json +1 -1
package/bin/rip CHANGED
@@ -136,7 +136,8 @@ async function main() {
136
136
  const servePath = join(__dirname, '../scripts/serve.js');
137
137
  const serverProcess = spawn('bun', [servePath], {
138
138
  stdio: ['inherit', 'pipe', 'inherit'],
139
- detached: false
139
+ detached: false,
140
+ env: process.env
140
141
  });
141
142
 
142
143
  let actualPort = null;
@@ -174,7 +175,8 @@ async function main() {
174
175
  // Spawn REPL with --experimental-vm-modules flag for proper ES module support
175
176
  const replModule = join(__dirname, '../src/repl.js');
176
177
  const replProcess = spawn('bun', ['--experimental-vm-modules', '-e', `import('${replModule}').then(m => m.startREPL())`], {
177
- stdio: 'inherit'
178
+ stdio: 'inherit',
179
+ env: process.env
178
180
  });
179
181
  replProcess.on('exit', (code) => process.exit(code || 0));
180
182
  return;
@@ -216,7 +218,8 @@ async function main() {
216
218
 
217
219
  if (inputFile.endsWith('.rip')) {
218
220
  const result = spawnSync('bun', ['--preload', loaderPath, inputFile, ...scriptArgs], {
219
- stdio: 'inherit'
221
+ stdio: 'inherit',
222
+ env: process.env
220
223
  });
221
224
  process.exit(result.status ?? 1);
222
225
  } else {
@@ -228,7 +231,7 @@ async function main() {
228
231
  let exitCode = 0;
229
232
  try {
230
233
  writeFileSync(tmp, result.code);
231
- const r = spawnSync('bun', ['--preload', loaderPath, tmp, ...scriptArgs], { stdio: 'inherit' });
234
+ const r = spawnSync('bun', ['--preload', loaderPath, tmp, ...scriptArgs], { stdio: 'inherit', env: process.env });
232
235
  exitCode = r.status ?? 1;
233
236
  } catch (error) {
234
237
  exitCode = error.status || 1;
@@ -253,7 +256,7 @@ async function main() {
253
256
  const binScript = join(repoRoot, 'bin', inputFile);
254
257
 
255
258
  if (existsSync(binScript)) {
256
- const r = spawnSync(binScript, scriptArgs, { stdio: 'inherit' });
259
+ const r = spawnSync(binScript, scriptArgs, { stdio: 'inherit', env: process.env });
257
260
  process.exit(r.status ?? 1);
258
261
  }
259
262
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rip-lang",
3
- "version": "3.13.4",
3
+ "version": "3.13.5",
4
4
  "description": "A modern language that compiles to JavaScript",
5
5
  "type": "module",
6
6
  "main": "src/compiler.js",