From 2b58c085c7c81a515d95da145064582dd13d558a Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Sun, 6 Oct 2024 11:38:04 +0200 Subject: [PATCH 1/6] fix(ui-primitives): Tabs component missing use client directive --- web/packages/ui-primitives/package.json | 2 +- web/packages/ui-primitives/src/Tabs/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/packages/ui-primitives/package.json b/web/packages/ui-primitives/package.json index 9aaf098e04..21d5a1e7af 100644 --- a/web/packages/ui-primitives/package.json +++ b/web/packages/ui-primitives/package.json @@ -1,6 +1,6 @@ { "name": "@signalco/ui-primitives", - "version": "0.1.8", + "version": "0.1.9", "license": "MIT", "type": "module", "sideEffects": false, diff --git a/web/packages/ui-primitives/src/Tabs/index.ts b/web/packages/ui-primitives/src/Tabs/index.ts index 601c4773c0..1f9b4be2d0 100644 --- a/web/packages/ui-primitives/src/Tabs/index.ts +++ b/web/packages/ui-primitives/src/Tabs/index.ts @@ -1 +1,3 @@ +'use client'; + export * from './Tabs'; \ No newline at end of file From bd12456f5905be0bb47f0ab783bd096c3a7f9c82 Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Sun, 6 Oct 2024 11:38:23 +0200 Subject: [PATCH 2/6] feat(ui): Published NPM package --- web/packages/ui/package.json | 24 +++++++++++++++++++----- web/packages/ui/tsup.config.ts | 8 ++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 web/packages/ui/tsup.config.ts diff --git a/web/packages/ui/package.json b/web/packages/ui/package.json index 9026302445..2b336a4e62 100644 --- a/web/packages/ui/package.json +++ b/web/packages/ui/package.json @@ -1,15 +1,27 @@ { "name": "@signalco/ui", - "version": "0.0.0", - "private": true, + "version": "0.1.0", "license": "MIT", "type": "module", + "sideEffects": false, "exports": { - "./style": "./src/index.css", "./*": "./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.2", @@ -37,7 +49,9 @@ "react-timeago": "7.2.0", "sass": "1.79.4", "tailwind-merge": "2.5.3", - "typescript": "5.6.2" + "typescript": "5.6.2", + "@microsoft/api-extractor": "7.47.9", + "tsup": "8.3.0" }, "peerDependencies": { "@signalco/ui-primitives": "0", diff --git a/web/packages/ui/tsup.config.ts b/web/packages/ui/tsup.config.ts new file mode 100644 index 0000000000..74c1497fe8 --- /dev/null +++ b/web/packages/ui/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['./src/*/index.ts'], + format: ['esm'], + minify: true, + experimentalDts: true, +}) From 74fe3bc224730d81de277de9708bb6d2d5e49910 Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Sun, 6 Oct 2024 11:38:35 +0200 Subject: [PATCH 3/6] feat(cms-core): Published NPM package --- web/packages/cms-core/package.json | 28 ++++++++++++++++++++++++---- web/packages/cms-core/tsup.config.ts | 8 ++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 web/packages/cms-core/tsup.config.ts diff --git a/web/packages/cms-core/package.json b/web/packages/cms-core/package.json index dba37d8f4e..01d54e0764 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 0000000000..74c1497fe8 --- /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, +}) From 94f8f090526afe8500bc13f5a07a8a435b3979e8 Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Sun, 6 Oct 2024 11:38:54 +0200 Subject: [PATCH 4/6] feat(cms-components-marketing): Published NPM package --- .../cms-components-marketing/package.json | 29 ++++++++++++++++--- .../cms-components-marketing/tsup.config.ts | 8 +++++ 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 web/packages/cms-components-marketing/tsup.config.ts diff --git a/web/packages/cms-components-marketing/package.json b/web/packages/cms-components-marketing/package.json index fa5cdd0e2a..4927ab8ca8 100644 --- a/web/packages/cms-components-marketing/package.json +++ b/web/packages/cms-components-marketing/package.json @@ -1,14 +1,27 @@ { "name": "@signalco/cms-components-marketing", - "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:*", @@ -22,6 +35,14 @@ "@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": "0", + "@signalco/cms-core": "0", + "react": "18", + "react-dom": "18" } } diff --git a/web/packages/cms-components-marketing/tsup.config.ts b/web/packages/cms-components-marketing/tsup.config.ts new file mode 100644 index 0000000000..74c1497fe8 --- /dev/null +++ b/web/packages/cms-components-marketing/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['./src/*/index.ts'], + format: ['esm'], + minify: true, + experimentalDts: true, +}) From bfe669bc5a926e837b0b5de4fbc436f26c53ec9e Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Sun, 6 Oct 2024 11:39:13 +0200 Subject: [PATCH 5/6] chore(hooks): Republished hooks package --- web/packages/hooks/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/packages/hooks/package.json b/web/packages/hooks/package.json index f12fb7568b..84e9d6b625 100644 --- a/web/packages/hooks/package.json +++ b/web/packages/hooks/package.json @@ -1,6 +1,6 @@ { "name": "@signalco/hooks", - "version": "0.1.0", + "version": "0.1.1", "sideEffects": false, "type": "module", "license": "MIT", From 76fe63302cd9125752f46a469473f610da825eb4 Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Sun, 6 Oct 2024 11:39:16 +0200 Subject: [PATCH 6/6] Update pnpm-lock.yaml --- web/pnpm-lock.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 417c3da647..8e0aea9ca1 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -1310,6 +1310,9 @@ importers: packages/cms-components-marketing: devDependencies: + '@microsoft/api-extractor': + specifier: 7.47.9 + version: 7.47.9(@types/node@22.7.4) '@signalco/cms-core': specifier: workspace:* version: link:../cms-core @@ -1343,12 +1346,18 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + tsup: + specifier: 8.3.0 + version: 8.3.0(@microsoft/api-extractor@7.47.9(@types/node@22.7.4))(@swc/core@1.7.22(@swc/helpers@0.5.12))(jiti@1.21.6)(postcss@8.4.47)(typescript@5.6.2)(yaml@2.5.0) typescript: specifier: 5.6.2 version: 5.6.2 packages/cms-core: devDependencies: + '@microsoft/api-extractor': + specifier: 7.47.9 + version: 7.47.9(@types/node@22.7.4) '@signalco/eslint-config-signalco': specifier: workspace:* version: link:../eslint-config-signalco @@ -1376,6 +1385,9 @@ importers: react-dom: specifier: 18.3.1 version: 18.3.1(react@18.3.1) + tsup: + specifier: 8.3.0 + version: 8.3.0(@microsoft/api-extractor@7.47.9(@types/node@22.7.4))(@swc/core@1.7.22(@swc/helpers@0.5.12))(jiti@1.21.6)(postcss@8.4.47)(typescript@5.6.2)(yaml@2.5.0) typescript: specifier: 5.6.2 version: 5.6.2 @@ -1532,6 +1544,9 @@ importers: packages/ui: devDependencies: + '@microsoft/api-extractor': + specifier: 7.47.9 + version: 7.47.9(@types/node@22.7.4) '@radix-ui/react-checkbox': specifier: 1.1.2 version: 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.11)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1607,6 +1622,9 @@ importers: tailwind-merge: specifier: 2.5.3 version: 2.5.3 + tsup: + specifier: 8.3.0 + version: 8.3.0(@microsoft/api-extractor@7.47.9(@types/node@22.7.4))(@swc/core@1.7.22(@swc/helpers@0.5.12))(jiti@1.21.6)(postcss@8.4.47)(typescript@5.6.2)(yaml@2.5.0) typescript: specifier: 5.6.2 version: 5.6.2