From 44abee2a9572ef135940c38b664a6a1bbe04c038 Mon Sep 17 00:00:00 2001 From: nael Date: Fri, 2 Feb 2024 12:15:06 +0100 Subject: [PATCH] :bug: Fix version npm --- .changeset/little-geese-collect.md | 5 +++++ apps/embedded-catalog/react/package.json | 13 ++++++++----- apps/embedded-catalog/react/tsconfig.json | 4 ++-- apps/embedded-catalog/react/vite.config.ts | 6 +++--- 4 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 .changeset/little-geese-collect.md diff --git a/.changeset/little-geese-collect.md b/.changeset/little-geese-collect.md new file mode 100644 index 000000000..45e919715 --- /dev/null +++ b/.changeset/little-geese-collect.md @@ -0,0 +1,5 @@ +--- +"@panora/integration-card-react": major +--- + +new change diff --git a/apps/embedded-catalog/react/package.json b/apps/embedded-catalog/react/package.json index 7feb87737..37964ef0f 100644 --- a/apps/embedded-catalog/react/package.json +++ b/apps/embedded-catalog/react/package.json @@ -37,13 +37,16 @@ "react-dom": "^18.2.0", "@tanstack/react-query": "^5.12.2" }, - "main": "./dist/integration-card.umd.js", - "module": "./dist/integration-card.es.js", + "main": "./dist/integration-card-react.umd.js", + "module": "./dist/integration-card-react.es.js", "types": "./dist/index.d.ts", "exports": { ".": { - "import": "./dist/integration-card.es.js", - "require": "./dist/integration-card.umd.js" + "import": "./dist/integration-card-react.es.js", + "require": "./dist/integration-card-react.umd.js" } - } + }, + "files": [ + "dist" + ] } diff --git a/apps/embedded-catalog/react/tsconfig.json b/apps/embedded-catalog/react/tsconfig.json index 439abd478..218eba58e 100644 --- a/apps/embedded-catalog/react/tsconfig.json +++ b/apps/embedded-catalog/react/tsconfig.json @@ -6,7 +6,7 @@ "module": "ESNext", "skipLibCheck": true, "paths": { - "integration-card": [ "./src/component/index.ts" ], + "integration-card-react": [ "./src/components/index.ts" ], "@/*": [ "./src/*" ], @@ -27,7 +27,7 @@ "noFallthroughCasesInSwitch": true, "typeRoots": [ "node_modules/@types", - "src/component/index.d.ts" + "src/components/index.d.ts" ] }, "include": ["src"], diff --git a/apps/embedded-catalog/react/vite.config.ts b/apps/embedded-catalog/react/vite.config.ts index d56ab275c..12b330adc 100644 --- a/apps/embedded-catalog/react/vite.config.ts +++ b/apps/embedded-catalog/react/vite.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ plugins: [ react(), dts({ - include: ['src/component/'], + include: ['src/components/'], }) ], resolve: { @@ -20,9 +20,9 @@ export default defineConfig({ build: { lib: { entry: path.resolve("src", 'components/index.ts'), - name: 'integration-card', + name: 'integration-card-react', formats: ['es', 'umd'], - fileName: (format) => `integration-card.${format}.js` + fileName: (format) => `integration-card-react.${format}.js` }, rollupOptions: { external:[...Object.keys(packageJson.peerDependencies)],