Skip to content

Commit

Permalink
Update TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Dec 12, 2023
1 parent b42c193 commit cd03bf6
Show file tree
Hide file tree
Showing 7 changed files with 157 additions and 1,678 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.5.0
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"packageManager": "[email protected]",
"devDependencies": {
"npm-run-all": "^4.1.5",
"typescript": ">=3.0.0"
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"cypress": "^12.4.1",
"serve": "^14.2.0",
"start-server-and-test": "^1.15.3",
"typescript": "^4.9.4"
"typescript": "^5.3.3"
}
}
11 changes: 4 additions & 7 deletions packages/react-arborist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
"types": "main/index.d.ts",
"sideEffects": false,
"scripts": {
"start": "run-p 'start:**'",
"build": "npm-run-all clean -p 'build:**'",
"test": "jest",
"build:cjs": "tsc --outDir dist/main",
"build:es": "tsc --outDir dist/module --module es2022 --moduleResolution node",
"build": "npm-run-all clean -p 'build:**'",
"clean": "rimraf dist",
"start:js": "parcel watch --target main --target module --no-hmr --no-cache",
"start:types": "tsc --outDir dist --watch",
"prepack": "yarn build"
"prepack": "yarn build",
"test": "jest"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -55,6 +52,6 @@
"npm-run-all": "^4.1.5",
"rimraf": "^4.1.2",
"ts-jest": "^29.0.5",
"typescript": "^4.6.2"
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/react-arborist/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/* Language and Environment */
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
"jsx": "preserve", /* Specify what JSX code is generated. */
"jsx": "react-jsx", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
Expand Down
6 changes: 3 additions & 3 deletions packages/showcase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"dependencies": {
"clsx": "^1.2.1",
"nanoid": "^4.0.0",
"next": "^12.3.1",
"next": "^14.0.4",
"react": "^18.2.0",
"react-arborist": "workspace:^",
"react-arborist": "workspace:*",
"react-dom": "^18.2.0",
"react-icons": "^4.6.0",
"tree-model-improved": "^2.0.1",
Expand All @@ -30,6 +30,6 @@
"eslint-config-next": "12.3.1",
"npm-run-all": "^4.1.5",
"rimraf": "^4.1.2",
"typescript": "4.8.3"
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit cd03bf6

Please sign in to comment.