Skip to content

Commit d543bfa

Browse files
committed
chore(react): upd package entrypoints
1 parent e5a259a commit d543bfa

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

packages/react/package.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,33 @@
33
"version": "0.0.3",
44
"description": "Replexica React components",
55
"private": false,
6-
"type": "module",
7-
"main": "build/index.cjs",
6+
"main": "./build/index.js",
7+
"exports": {
8+
".": "./build/index.js",
9+
"./client": "./build/client/index.js",
10+
"./server": "./build/server/index.js"
11+
},
812
"types": "build/index.d.ts",
9-
"module": "build/index.mjs",
1013
"files": [
1114
"build"
1215
],
1316
"scripts": {
14-
"build": "unbuild",
17+
"dev": "tsc -w",
18+
"build": "tsc",
1519
"test": "vitest run"
1620
},
1721
"keywords": [],
1822
"author": "",
1923
"license": "ISC",
2024
"dependencies": {
2125
"typescript": "^5.4.3",
22-
"unbuild": "^2.0.0",
2326
"vitest": "^1.4.0"
2427
},
2528
"devDependencies": {
26-
"@types/react": "^18"
29+
"@types/react": "^18.2.67",
30+
"next": "^14"
31+
},
32+
"peerDependencies": {
33+
"next": "^14"
2734
}
2835
}

0 commit comments

Comments
 (0)