feat: export core version in package

This commit is contained in:
2024-01-12 10:47:53 +01:00
committed by Thea Schöbl
parent f828f6fc13
commit eef0829528
5 changed files with 19 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
import {defineConfig} from 'tsup';
import packageJson from './package.json' assert {type: 'json'};
export default defineConfig({
entry: ['src/index.ts'],
sourcemap: true,
clean: true,
format: 'esm',
outDir: 'lib',
env: {
CORE_VERSION: packageJson.version,
},
});