mirror of
https://github.com/acamarata/moment-hijri-plus.git
synced 2026-06-30 18:54:29 +00:00
17 lines
380 B
TypeScript
17 lines
380 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['cjs', 'esm'],
|
|
dts: true,
|
|
clean: true,
|
|
outDir: 'dist',
|
|
splitting: false,
|
|
sourcemap: true,
|
|
target: 'es2020',
|
|
platform: 'neutral',
|
|
external: ['moment', 'hijri-core'],
|
|
outExtension({ format }) {
|
|
return { js: format === 'esm' ? '.mjs' : '.cjs' };
|
|
},
|
|
});
|