Skip to content

Commit 24263e2

Browse files
committed
feat: tinny pkg works
1 parent 48ee1e8 commit 24263e2

File tree

123 files changed

+121937
-294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+121937
-294
lines changed

local-tests/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js.map

local-tests/build.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,29 @@ export const build = async () => {
3030
inject: [`./${TEST_DIR}/shim.mjs`],
3131
mainFields: ['module', 'main'],
3232
});
33+
34+
await esbuild.build({
35+
entryPoints: [`${TEST_DIR}/index.ts`],
36+
outfile: `./${TEST_DIR}/index.js`,
37+
bundle: true,
38+
globalName: 'tinnySdk',
39+
plugins: [
40+
nodeExternalsPlugin({
41+
allowList: [
42+
'ethers',
43+
'@lit-protocol/accs-schemas',
44+
'@lit-protocol/contracts',
45+
'crypto',
46+
'secp256k1',
47+
],
48+
}),
49+
],
50+
platform: 'node',
51+
target: 'esnext',
52+
format: 'esm',
53+
inject: [`./${TEST_DIR}/shim.mjs`],
54+
mainFields: ['module', 'main'],
55+
});
3356
};
3457

3558
/**

0 commit comments

Comments
 (0)