Skip to content

Commit cd3dba3

Browse files
authored
Merge pull request #86 from peacprotocol/hotfix/nightly-cross-runtime-v2
fix(ci): resolve Bun shell escaping and Deno imports
2 parents 1551422 + 1b4a0e1 commit cd3dba3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
"
193193
elif [ "${{ matrix.runtime }}" == "bun" ]; then
194194
bun -e "
195-
const m = await import('file://${process.env.CORE_PATH}');
195+
const m = await import('file://' + process.env.CORE_PATH);
196196
const { signDetached, verifyDetached, generateEdDSAKeyPair, validateKidFormat } = m;
197197
console.log('Testing with Bun...');
198198
const { privateKey, publicKey, kid } = await generateEdDSAKeyPair();

packages/core/tsup.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export default defineConfig({
99
splitting: false,
1010
treeshake: true,
1111
minify: false,
12-
target: 'es2022',
13-
external: ['node:*'],
12+
target: 'esnext',
13+
platform: 'neutral',
14+
external: ['node:crypto', 'jose'],
15+
esbuildOptions(options) {
16+
options.conditions = ['node'];
17+
},
1418
});

0 commit comments

Comments
 (0)