Skip to content

Commit

Permalink
feat(cms-core): Published NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarDev committed Oct 6, 2024
1 parent bd12456 commit 74fe3bc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
28 changes: 24 additions & 4 deletions web/packages/cms-core/package.json
Original file line number Diff line number Diff line change
@@ -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:*",
Expand All @@ -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"
}
}
8 changes: 8 additions & 0 deletions web/packages/cms-core/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entry: ['./src/*/index.ts'],
format: ['esm'],
minify: true,
experimentalDts: true,
})

0 comments on commit 74fe3bc

Please sign in to comment.