fix: multiple bugs (#119)

This commit is contained in:
Jacob Nguyen
2023-10-05 01:48:08 -05:00
committed by GitHub
parent 5a68916479
commit d9ca5ff3ff
7 changed files with 156 additions and 122 deletions

View File

@@ -1,7 +1,11 @@
import { defineConfig } from 'tsup';
import { createRequire } from 'node:module';
const shared = {
entry: ['src/index.ts', 'src/create-publish.mts', 'src/commands/**', 'sern-tsconfig.json'],
entry: [
'src/index.ts',
'src/create-publish.mts',
'src/commands/**',
],
clean: true,
sourcemap: true,
};
@@ -18,8 +22,5 @@ export default defineConfig({
define: {
__VERSION__: `"${createRequire(import.meta.url)('./package.json').version}"`,
},
loader: {
'.json': 'file',
},
...shared,
});