diff --git a/web/packages/ui-primitives/package.json b/web/packages/ui-primitives/package.json index c83d576eda..a5b8f9f6f9 100644 --- a/web/packages/ui-primitives/package.json +++ b/web/packages/ui-primitives/package.json @@ -1,15 +1,27 @@ { "name": "@signalco/ui-primitives", - "version": "0.0.0", - "private": true, + "version": "0.1.5", "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": { "@radix-ui/react-checkbox": "1.1.1", @@ -39,6 +51,12 @@ "react-timeago": "7.2.0", "sass": "1.77.8", "tailwind-merge": "2.4.0", - "typescript": "5.5.4" + "typescript": "5.5.4", + "tsup": "8.2.0", + "@microsoft/api-extractor": "7.47.2" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" } -} +} \ No newline at end of file diff --git a/web/packages/ui-primitives/tailwind.config.cjs b/web/packages/ui-primitives/tailwind.config.js similarity index 95% rename from web/packages/ui-primitives/tailwind.config.cjs rename to web/packages/ui-primitives/tailwind.config.js index cd1ba5f106..6feb677815 100644 --- a/web/packages/ui-primitives/tailwind.config.cjs +++ b/web/packages/ui-primitives/tailwind.config.js @@ -1,6 +1,6 @@ // NOTE: Not actualy used, but here to enable tailwindcss IDE support -import { baseConfig } from '@signalco/tailwindcss-config-signalco'; +import { baseConfig } from '@signalco/tailwindcss-config-signalco/baseConfig'; /** @type {import('tailwindcss').Config} */ // eslint-disable-next-line import/no-anonymous-default-export diff --git a/web/packages/ui-primitives/tsup.config.ts b/web/packages/ui-primitives/tsup.config.ts new file mode 100644 index 0000000000..74c1497fe8 --- /dev/null +++ b/web/packages/ui-primitives/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['./src/*/index.ts'], + format: ['esm'], + minify: true, + experimentalDts: true, +}) diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index c2acf50a89..0c94b1bd2c 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -1850,6 +1850,59 @@ importers: tailwind-merge: specifier: 2.4.0 version: 2.4.0 + tsup: + specifier: 8.2.0 + version: 8.2.0(@microsoft/api-extractor@7.47.2(@types/node@20.14.11))(@swc/core@1.5.7)(jiti@1.21.0)(postcss@8.4.39)(typescript@5.5.3) + typescript: + specifier: 5.5.4 + version: 5.5.4 + + packages/ui-themes-minimal: + dependencies: + tailwindcss: + specifier: 3.4.6 + version: 3.4.6 + tailwindcss-animate: + specifier: 1.0.7 + version: 1.0.7(tailwindcss@3.4.6) + devDependencies: + '@microsoft/api-extractor': + specifier: 7.47.2 + version: 7.47.2(@types/node@20.14.11) + '@signalco/tailwindcss-config-signalco': + specifier: workspace:* + version: link:../tailwindcss-config-signalco + '@signalco/tsconfig': + specifier: workspace:* + version: link:../tsconfig + tsup: + specifier: 8.2.0 + version: 8.2.0(@microsoft/api-extractor@7.47.2(@types/node@20.14.11))(@swc/core@1.5.7)(jiti@1.21.0)(postcss@8.4.39)(typescript@5.5.4) + typescript: + specifier: 5.5.4 + version: 5.5.4 + + packages/ui-themes-minimal-app: + dependencies: + tailwindcss: + specifier: 3.4.6 + version: 3.4.6 + tailwindcss-animate: + specifier: 1.0.7 + version: 1.0.7(tailwindcss@3.4.6) + devDependencies: + '@microsoft/api-extractor': + specifier: 7.47.2 + version: 7.47.2(@types/node@20.14.11) + '@signalco/tailwindcss-config-signalco': + specifier: workspace:* + version: link:../tailwindcss-config-signalco + '@signalco/tsconfig': + specifier: workspace:* + version: link:../tsconfig + tsup: + specifier: 8.2.0 + version: 8.2.0(@microsoft/api-extractor@7.47.2(@types/node@20.14.11))(@swc/core@1.5.7)(jiti@1.21.0)(postcss@8.4.39)(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4