Skip to content

Commit 64af659

Browse files
committed
Housekeeping.
1 parent e8c0a00 commit 64af659

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
{
22
"name": "@nosferatu500/react-sortable-tree",
3-
"version": "4.4.0",
3+
"version": "5.0.0-alpha.4",
44
"description": "Drag-and-drop sortable component for nested data and hierarchies",
55
"homepage": "https://nosferatu500.github.io/react-sortable-tree",
66
"main": "lib/index.js",
77
"module": "lib/index.esm.js",
88
"types": "lib/index.d.ts",
99
"scripts": {
1010
"clean": "rimraf lib",
11+
"clean-types": "rimraf lib/utils && rimraf lib/node-renderer-default.d.ts && rimraf lib/placeholder-renderer-default.d.ts && rimraf lib/react-sortable-tree.d.ts && rimraf lib/tree-node.d.ts && rimraf lib/tree-placeholder.d.ts",
1112
"prebuild": "yarn clean",
12-
"build": "rollup -c",
13+
"build": "rollup -c && yarn clean-types",
1314
"lint": "eslint '*.{js,json}' 'src/**/*.{ts,tsx}' --cache",
1415
"storybook": "storybook dev -p 6006",
1516
"build-storybook": "storybook build",
1617
"prepublishOnly": "yarn build",
1718
"deploy-storybook": "gh-pages -d storybook-static"
1819
},
20+
"files": [
21+
"lib"
22+
],
1923
"engines": {
2024
"node": ">=16"
2125
},
@@ -90,7 +94,7 @@
9094
"react-dom": "^17.0.2",
9195
"rollup": "^3.29.1",
9296
"rollup-plugin-dts": "^6.0.2",
93-
"rollup-plugin-peer-deps-external": "^2.2.4",
97+
"@chrisneedham/rollup-plugin-peer-deps-external": "^2.3.1",
9498
"rollup-plugin-postcss": "^4.0.2",
9599
"storybook": "^7.4.1",
96100
"typescript": "^5.2.2"

rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import peerDepsExternal from "rollup-plugin-peer-deps-external";
1+
import peerDepsExternal from "@chrisneedham/rollup-plugin-peer-deps-external";
22
import resolve from "@rollup/plugin-node-resolve";
33
import commonjs from "@rollup/plugin-commonjs";
44
import typescript from "@rollup/plugin-typescript";

yarn.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,11 @@
11051105
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
11061106
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
11071107

1108+
"@chrisneedham/rollup-plugin-peer-deps-external@^2.3.1":
1109+
version "2.3.1"
1110+
resolved "https://registry.yarnpkg.com/@chrisneedham/rollup-plugin-peer-deps-external/-/rollup-plugin-peer-deps-external-2.3.1.tgz#830e0d28c18144bc0f8f2c98815a4d07bf9837ce"
1111+
integrity sha512-aMDQ3xqSAIqSu5UlxN5M+4yt4Jp2pqMGS6aeSjDHDD8nBcJsYuUu8kqGSINYW7gqGVXC87Sykqi0nFnKLN9ziA==
1112+
11081113
11091114
version "1.5.0"
11101115
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
@@ -8573,11 +8578,6 @@ rollup-plugin-dts@^6.0.2:
85738578
optionalDependencies:
85748579
"@babel/code-frame" "^7.22.13"
85758580

8576-
rollup-plugin-peer-deps-external@^2.2.4:
8577-
version "2.2.4"
8578-
resolved "https://registry.yarnpkg.com/rollup-plugin-peer-deps-external/-/rollup-plugin-peer-deps-external-2.2.4.tgz#8a420bbfd6dccc30aeb68c9bf57011f2f109570d"
8579-
integrity sha512-AWdukIM1+k5JDdAqV/Cxd+nejvno2FVLVeZ74NKggm3Q5s9cbbcOgUPGdbxPi4BXu7xGaZ8HG12F+thImYu/0g==
8580-
85818581
rollup-plugin-postcss@^4.0.2:
85828582
version "4.0.2"
85838583
resolved "https://registry.yarnpkg.com/rollup-plugin-postcss/-/rollup-plugin-postcss-4.0.2.tgz#15e9462f39475059b368ce0e49c800fa4b1f7050"
@@ -8929,6 +8929,7 @@ string-hash@^1.1.1:
89298929
integrity sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==
89308930

89318931
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0:
8932+
name string-width-cjs
89328933
version "4.2.3"
89338934
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
89348935
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -9002,6 +9003,7 @@ string_decoder@~1.1.1:
90029003
safe-buffer "~5.1.0"
90039004

90049005
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
9006+
name strip-ansi-cjs
90059007
version "6.0.1"
90069008
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
90079009
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -9758,6 +9760,7 @@ wordwrap@^1.0.0:
97589760
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
97599761

97609762
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
9763+
name wrap-ansi-cjs
97619764
version "7.0.0"
97629765
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
97639766
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)