File tree Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,14 @@ import * as esbuild from 'esbuild';
22import { nodeExternalsPlugin } from 'esbuild-node-externals' ;
33import fs from 'fs' ;
44import { fileURLToPath } from 'url' ;
5- import { dirname , resolve } from 'path' ;
5+
6+ const ALLOW_LIST = [
7+ 'ethers' ,
8+ '@lit-protocol/accs-schemas' ,
9+ '@lit-protocol/contracts' ,
10+ 'crypto' ,
11+ 'secp256k1' ,
12+ ] ;
613
714/**
815 * Build the CLI enabled version of Tinny.
@@ -15,13 +22,7 @@ export const build = async () => {
1522 bundle : true ,
1623 plugins : [
1724 nodeExternalsPlugin ( {
18- allowList : [
19- 'ethers' ,
20- '@lit-protocol/accs-schemas' ,
21- '@lit-protocol/contracts' ,
22- 'crypto' ,
23- 'secp256k1' ,
24- ] ,
25+ allowList : ALLOW_LIST ,
2526 } ) ,
2627 ] ,
2728 platform : 'node' ,
@@ -43,13 +44,7 @@ export const bundle = async () => {
4344 globalName : 'tinnySdk' ,
4445 plugins : [
4546 nodeExternalsPlugin ( {
46- allowList : [
47- 'ethers' ,
48- '@lit-protocol/accs-schemas' ,
49- '@lit-protocol/contracts' ,
50- 'crypto' ,
51- 'secp256k1' ,
52- ] ,
47+ allowList : ALLOW_LIST ,
5348 } ) ,
5449 ] ,
5550 platform : 'node' ,
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export class TinnyEnvironment {
121121 }
122122
123123 // -- setup network
124- this . network = override . NETWORK || this . processEnvs . NETWORK ;
124+ this . network = override ? .NETWORK || this . processEnvs . NETWORK ;
125125
126126 if ( Object . values ( LIT_NETWORK ) . indexOf ( this . network ) === - 1 ) {
127127 throw new Error (
You can’t perform that action at this time.
0 commit comments