Browse Source

chore: Add missing imports for node:process

Sam Atkins 1 year ago
parent
commit
33785b3786
3 changed files with 4 additions and 0 deletions
  1. 1 0
      packages/phoenix/rollup.config.js
  2. 1 0
      packages/terminal/rollup.config.js
  3. 2 0
      run-selfhosted.js

+ 1 - 0
packages/phoenix/rollup.config.js

@@ -19,6 +19,7 @@
 import { nodeResolve } from '@rollup/plugin-node-resolve'
 import commonjs from '@rollup/plugin-commonjs';
 import copy from 'rollup-plugin-copy';
+import process from 'node:process';
 
 const configFile = process.env.CONFIG_FILE ?? 'config/dev.js';
 await import(`./${configFile}`);

+ 1 - 0
packages/terminal/rollup.config.js

@@ -19,6 +19,7 @@
 import { nodeResolve } from '@rollup/plugin-node-resolve'
 import commonjs from '@rollup/plugin-commonjs';
 import copy from 'rollup-plugin-copy';
+import process from 'node:process';
 
 const configFile = process.env.CONFIG_FILE ?? 'config/dev.js';
 await import(`./${configFile}`);

+ 2 - 0
run-selfhosted.js

@@ -5,6 +5,8 @@
 // The implementation of this in packages/backend might not
 // work in older versions of node, so we instead re-implement
 // it here.
+import process from 'node:process';
+
 const surrounding_box = (col, lines) => {
     const lengths = lines.map(line => line.length);