Skip to content

Commit b790d7b

Browse files
committed
chore: update package configurations for yjs-for-react
1 parent aa01136 commit b790d7b

File tree

3 files changed

+9
-32
lines changed

3 files changed

+9
-32
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"cz": "cz",
1111
"test": "cross-env NODE_OPTIONS=--unhandled-rejections=warn vitest run --passWithNoTests --dangerouslyIgnoreUnhandledErrors",
1212
"test-c": "cross-env NODE_OPTIONS=--unhandled-rejections=warn vitest run --passWithNoTests --dangerouslyIgnoreUnhandledErrors --coverage",
13-
"dev": "cross-env FORCE_COLOR=1 turbo dev --filter=@wangeditor-next/editor",
13+
"dev": "cross-env FORCE_COLOR=1 turbo dev",
1414
"dev:sh": "sh scripts/build-base.sh dev",
15-
"build": "cross-env FORCE_COLOR=1 turbo build --filter=@wangeditor-next/editor",
15+
"build": "cross-env FORCE_COLOR=1 turbo build",
1616
"publish": "yarn changeset publish",
1717
"prerelease": "yarn build",
1818
"format": "yarn prettier --write",

packages/yjs-for-react/package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"homepage": "https://github.com/wangeditor-next/wangeditor-next#readme",
88
"license": "MIT",
9-
"types": "dist/index.d.ts",
9+
"types": "dist/yjs-for-react/src/index.d.ts",
1010
"main": "dist/index.js",
1111
"module": "dist/index.mjs",
1212
"unpkg": "dist/index.global.js",
@@ -19,7 +19,7 @@
1919
],
2020
"exports": {
2121
".": {
22-
"types": "./dist/index.d.ts",
22+
"types": "./dist/yjs-for-react/src/index.d.ts",
2323
"import": "./dist/index.mjs",
2424
"require": "./dist/index.js"
2525
},
@@ -28,6 +28,9 @@
2828
"files": [
2929
"dist"
3030
],
31+
"directories": {
32+
"lib": "dist"
33+
},
3134
"publishConfig": {
3235
"access": "public"
3336
},
@@ -45,7 +48,6 @@
4548
"size-stats": "cross-env NODE_ENV=production:size_stats rollup -c rollup.config.js"
4649
},
4750
"devDependencies": {
48-
"@types/react": "^18.0.0",
4951
"@types/use-sync-external-store": "^0.0.6"
5052
},
5153
"bugs": {
@@ -58,7 +60,7 @@
5860
"peerDependencies": {
5961
"@wangeditor-next/editor": "5.6.31",
6062
"@wangeditor-next/yjs": "^0.1.30",
61-
"react": ">=16.8.0",
63+
"react": ">=17.0.2",
6264
"slate": "^0.72.0",
6365
"yjs": "^13.5.29"
6466
}

yarn.lock

+1-26
Original file line numberDiff line numberDiff line change
@@ -3121,23 +3121,6 @@ __metadata:
31213121
languageName: node
31223122
linkType: hard
31233123

3124-
"@types/prop-types@npm:*":
3125-
version: 15.7.13
3126-
resolution: "@types/prop-types@npm:15.7.13"
3127-
checksum: 10c0/1b20fc67281902c6743379960247bc161f3f0406ffc0df8e7058745a85ea1538612109db0406290512947f9632fe9e10e7337bf0ce6338a91d6c948df16a7c61
3128-
languageName: node
3129-
linkType: hard
3130-
3131-
"@types/react@npm:^18.0.0":
3132-
version: 18.3.17
3133-
resolution: "@types/react@npm:18.3.17"
3134-
dependencies:
3135-
"@types/prop-types": "npm:*"
3136-
csstype: "npm:^3.0.2"
3137-
checksum: 10c0/475191e9cd0ab5bef35cc1868295d6526cd78b25c1bb816f0747a1e92261688305f81c0e29aff52e6ea70397f133e34c399dc936cb5072f1acf465d9daacc0da
3138-
languageName: node
3139-
linkType: hard
3140-
31413124
"@types/resolve@npm:1.20.2":
31423125
version: 1.20.2
31433126
resolution: "@types/resolve@npm:1.20.2"
@@ -3803,14 +3786,13 @@ __metadata:
38033786
version: 0.0.0-use.local
38043787
resolution: "@wangeditor-next/yjs-for-react@workspace:packages/yjs-for-react"
38053788
dependencies:
3806-
"@types/react": "npm:^18.0.0"
38073789
"@types/use-sync-external-store": "npm:^0.0.6"
38083790
use-sync-external-store: "npm:^1.2.0"
38093791
y-protocols: "npm:^1.0.5"
38103792
peerDependencies:
38113793
"@wangeditor-next/editor": 5.6.31
38123794
"@wangeditor-next/yjs": ^0.1.30
3813-
react: ">=16.8.0"
3795+
react: ">=17.0.2"
38143796
slate: ^0.72.0
38153797
yjs: ^13.5.29
38163798
languageName: unknown
@@ -5351,13 +5333,6 @@ __metadata:
53515333
languageName: node
53525334
linkType: hard
53535335

5354-
"csstype@npm:^3.0.2":
5355-
version: 3.1.3
5356-
resolution: "csstype@npm:3.1.3"
5357-
checksum: 10c0/80c089d6f7e0c5b2bd83cf0539ab41474198579584fa10d86d0cafe0642202343cbc119e076a0b1aece191989477081415d66c9fefbf3c957fc2fc4b7009f248
5358-
languageName: node
5359-
linkType: hard
5360-
53615336
"cypress@npm:^13.0.0":
53625337
version: 13.15.0
53635338
resolution: "cypress@npm:13.15.0"

0 commit comments

Comments
 (0)