mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2026-02-07 01:04:30 +00:00
go jsr only and eliminate index.ts.
This commit is contained in:
15
build.js
15
build.js
@@ -42,18 +42,3 @@ esbuild
|
||||
|
||||
console.log('cjs build success.')
|
||||
})
|
||||
|
||||
esbuild
|
||||
.build({
|
||||
...common,
|
||||
entryPoints: ['index.ts'],
|
||||
outfile: 'lib/nostr.bundle.js',
|
||||
format: 'iife',
|
||||
globalName: 'NostrTools',
|
||||
define: {
|
||||
window: 'self',
|
||||
global: 'self',
|
||||
process: '{"env": {}}',
|
||||
},
|
||||
})
|
||||
.then(() => console.log('standalone build success.'))
|
||||
|
||||
Reference in New Issue
Block a user