diff --git a/web/packages/cms-core/package.json b/web/packages/cms-core/package.json index dba37d8f4..01d54e076 100644 --- a/web/packages/cms-core/package.json +++ b/web/packages/cms-core/package.json @@ -1,14 +1,27 @@ { "name": "@signalco/cms-core", - "version": "0.0.0", - "private": true, + "version": "0.1.0", "license": "MIT", "type": "module", + "sideEffects": false, "exports": { "./*": "./src/*/index.ts" }, + "files": [ + "dist" + ], + "publishConfig": { + "access": "public", + "exports": { + "./*": { + "import": "./dist/*/index.js", + "types": "./dist/*/index.d.ts" + } + } + }, "scripts": { - "lint": "eslint ." + "lint": "eslint .", + "prepublishOnly": "tsup --env.NODE_ENV production" }, "devDependencies": { "@signalco/eslint-config-signalco": "workspace:*", @@ -20,6 +33,13 @@ "@types/react-dom": "18.3.0", "react": "18.3.1", "react-dom": "18.3.1", - "typescript": "5.6.2" + "typescript": "5.6.2", + "@microsoft/api-extractor": "7.47.9", + "tsup": "8.3.0" + }, + "peerDependencies": { + "@signalco/ui-primitives": "0", + "react": "18", + "react-dom": "18" } } diff --git a/web/packages/cms-core/tsup.config.ts b/web/packages/cms-core/tsup.config.ts new file mode 100644 index 000000000..74c1497fe --- /dev/null +++ b/web/packages/cms-core/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['./src/*/index.ts'], + format: ['esm'], + minify: true, + experimentalDts: true, +})