📦 sdk: fix nextjs package

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-13 20:10:28 +01:00
parent 84a734dd9b
commit f276deeeeb
4 changed files with 39 additions and 20 deletions

View File

@@ -12,9 +12,9 @@
"@openpanel/web": "workspace:*"
},
"peerDependencies": {
"next": "^14.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"next": "^12.0.0 || ^13.0.0 || ^14.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@openpanel/eslint-config": "workspace:*",

View File

@@ -5,5 +5,5 @@ import config from '@openpanel/tsconfig/tsup.config.json' assert { type: 'json'
export default defineConfig({
...(config as any),
entry: ['index.tsx'],
format: ['cjs', 'esm'],
external: ['react', 'next'],
});