Skip to content

Commit 7490d3f

Browse files
committed
fix: ci
1 parent 7cae5d8 commit 7490d3f

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

local-tests/build.mjs

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import * as esbuild from 'esbuild';
22
import { nodeExternalsPlugin } from 'esbuild-node-externals';
33
import fs from 'fs';
44
import { 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',

local-tests/setup/tinny-environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)