Skip to content

Commit

Permalink
🐛 Fix version npm
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Feb 2, 2024
1 parent ee210ea commit 44abee2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-geese-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@panora/integration-card-react": major
---

new change
13 changes: 8 additions & 5 deletions apps/embedded-catalog/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
4 changes: 2 additions & 2 deletions apps/embedded-catalog/react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"module": "ESNext",
"skipLibCheck": true,
"paths": {
"integration-card": [ "./src/component/index.ts" ],
"integration-card-react": [ "./src/components/index.ts" ],
"@/*": [
"./src/*"
],
Expand All @@ -27,7 +27,7 @@
"noFallthroughCasesInSwitch": true,
"typeRoots": [
"node_modules/@types",
"src/component/index.d.ts"
"src/components/index.d.ts"
]
},
"include": ["src"],
Expand Down
6 changes: 3 additions & 3 deletions apps/embedded-catalog/react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
plugins: [
react(),
dts({
include: ['src/component/'],
include: ['src/components/'],
})
],
resolve: {
Expand All @@ -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)],
Expand Down

0 comments on commit 44abee2

Please sign in to comment.