mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-04 20:42:52 +00:00
feat: export core version in package
This commit is contained in:
@@ -76,15 +76,6 @@
|
||||
"typedoc": "0.24.8",
|
||||
"typescript": "5.1.6"
|
||||
},
|
||||
"tsup": {
|
||||
"entry": [
|
||||
"src/index.ts"
|
||||
],
|
||||
"sourcemap": true,
|
||||
"clean": true,
|
||||
"format": "esm",
|
||||
"outDir": "lib"
|
||||
},
|
||||
"prettier": "@openstapps/prettier-config",
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
export const CORE_VERSION = process.env.CORE_VERSION!;
|
||||
|
||||
export * from './guards.js';
|
||||
export * from './meta.js';
|
||||
export * from './translator.js';
|
||||
|
||||
13
packages/core/tsup.config.ts
Normal file
13
packages/core/tsup.config.ts
Normal 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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user