@zennomi/mangadex-full-api
Version:
A MangaDex api based around the official API.
26 lines (22 loc) • 496 B
JavaScript
import { build } from 'tsup';
(async function () {
const sharedOptions = {
bundle: true,
minify: true,
outDir: './dist',
sourcemap: true,
};
await build({
...sharedOptions,
entry: ['./src/index.ts'],
format: 'esm',
outExtension: () => ({ js: '.mjs' }),
dts: true,
clean: true,
});
await build({
...sharedOptions,
entry: ['./src/index.ts'],
format: 'cjs',
});
})();