📦 sdk: fix nextjs package
This commit is contained in:
@@ -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:*",
|
||||
|
||||
@@ -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'],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user