File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
/**
3
3
* @file CLI entrypoint, transpiled during build so Node is the env to run it in
4
4
*/
5
- import '@endo/init/legacy.js' ;
6
-
7
5
import chalk from 'chalk' ;
8
6
import assert from 'node:assert' ;
9
7
import { execSync } from 'node:child_process' ;
Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ import { defineConfig } from 'tsup';
2
2
3
3
export default defineConfig ( {
4
4
entry : [ 'src/cli/cli.ts' , 'src/lib/index.ts' ] ,
5
+ banner : {
6
+ // Some Endo dependencies fail if the global environment is not set up
7
+ // before they are imported. This is a workaround to ensure that
8
+ // "@endo/init/debug.js" is imported before any other Endo dependencies.
9
+ js : 'import "@endo/init/legacy.js";' ,
10
+ } ,
5
11
format : [ 'esm' ] ,
6
12
dts : true , // Generate declaration file (.d.ts)
7
13
sourcemap : true ,
You can’t perform that action at this time.
0 commit comments