Initial Node.js SDK v1.0.0

This commit is contained in:
garfieldheron
2026-02-19 12:07:39 -05:00
commit 6c252b7495
24 changed files with 1837 additions and 0 deletions

27
rollup.config.js Normal file
View File

@@ -0,0 +1,27 @@
import typescript from '@rollup/plugin-typescript';
export default [
// ES Module build
{
input: 'src/index.ts',
output: {
file: 'dist/index.esm.js',
format: 'es',
sourcemap: true,
},
plugins: [typescript({ tsconfig: './tsconfig.json' })],
external: ['axios', 'crypto'],
},
// CommonJS build
{
input: 'src/index.ts',
output: {
file: 'dist/index.js',
format: 'cjs',
sourcemap: true,
exports: 'named',
},
plugins: [typescript({ tsconfig: './tsconfig.json' })],
external: ['axios', 'crypto'],
},
];