Ver código fonte

chore: Add missing imports for node:process

Sam Atkins 1 ano atrás
pai
commit
33785b3786

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

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

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

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

+ 2 - 0
run-selfhosted.js

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