setup: initialize project with package.json, tsconfig, tsup, vitest, src skeleton, and test placeholders
This commit is contained in:
19
tsup.config.ts
Normal file
19
tsup.config.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
entry: {
|
||||
index: 'src/index.ts',
|
||||
'component/index': 'src/component/index.ts',
|
||||
'host/index': 'src/host/index.ts',
|
||||
'schema/index': 'src/schema/index.ts',
|
||||
'graph/index': 'src/graph/index.ts',
|
||||
'reactive/index': 'src/reactive/index.ts',
|
||||
'analysis/index': 'src/analysis/index.ts',
|
||||
'error/index': 'src/error/index.ts',
|
||||
},
|
||||
format: ['esm', 'cjs'],
|
||||
dts: true,
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
target: 'es2022',
|
||||
});
|
||||
Reference in New Issue
Block a user