浏览代码

chore: Add missing imports for node:process

Sam Atkins 1 年之前
父节点
当前提交
33785b3786
共有 3 个文件被更改,包括 4 次插入0 次删除
  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);