Skip to content

Commit bd1ba74

Browse files
authored
build(deps)!: add tsconfig node 22, 24 options, drop 18 (#354)
1 parent 130d9d5 commit bd1ba74

5 files changed

Lines changed: 27 additions & 17 deletions

File tree

DOCS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<summary><h3 style="display: inline-block">Tooling requirements</h3></summary>
55

66
The basic use requirements:
7-
* [NodeJS version 18+](https://nodejs.org/)
7+
* [NodeJS version 20+](https://nodejs.org/)
88
* NPM
99
> There appear to be dependency mapping issues with `Yarn` v1.x.x lock files, `Typescript` and `webpack`, and specific dependencies
1010
> using ES modules. If you do decide to use [Yarn](https://yarnpkg.com) use the latest version.
@@ -282,7 +282,7 @@ $ weldable -h
282282
| -s, --stats | Stats output level for NodeJS API | string | errors-only, errors-warnings, minimal, none, normal, verbose, detailed, summary | normal |
283283
| --standalone | Standalone webpack configuration. Output weldable webpack config functions and update package.json so you can do whatever you want. | boolean | | |
284284
| --statsFile | Output JSON webpack bundle stats for use with "webpack-bundle-analyzer". Use the default or enter a relative path and filename | string | | ./stats.json |
285-
| --tsconfig | Generate a base tsconfig from one of the available NPM @tsconfig/[base]. An existing tsconfig.json will override this option, see "tsconfig-opt". This option can be run without running webpack. | string | create-react-app, node18, node20, react-native, recommended, strictest | |
285+
| --tsconfig | Generate a base tsconfig from one of the available NPM @tsconfig/[base]. An existing tsconfig.json will override this option, see "tsconfig-opt". This option can be run without running webpack. | string | create-react-app, node20, node22, node24, react-native, recommended, strictest | |
286286
| --tsconfig-opt | Regenerate or merge a tsconfig. Useful if a tsconfig already exists. Requires the use of "tsconfig" option | string | merge, regen | regen |
287287
| -x, --extend | Extend, or override, the default configs with your own relative path webpack configs using webpack merge. Configuration can be a callback that returns a webpack config object, available dotenv parameters are returned as the callback parameter. | string \| Array\<string\> | | |
288288
| -h, --help | | boolean | | |
@@ -381,8 +381,9 @@ const aPackage = packages.[PACKAGE_NAME];
381381
| @babel/preset-env | babelPresetEnv, babelPresetEnvResolve |
382382
| @babel/preset-react | babelPresetReact, babelPresetReactResolve |
383383
| @tsconfig/create-react-app | N/A |
384-
| @tsconfig/node18 | N/A |
385384
| @tsconfig/node20 | N/A |
385+
| @tsconfig/node22 | N/A |
386+
| @tsconfig/node24 | N/A |
386387
| @tsconfig/react-native | N/A |
387388
| @tsconfig/recommended | N/A |
388389
| @tsconfig/strictest | N/A |

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ For in-depth use of `weldable` see our [DOCS](./DOCS.md).
6161
[boolean] [default: false]
6262
--statsFile Output JSON webpack bundle stats. Use the default, or a relative project path and filename [./stats.json] [string]
6363
--tsconfig Generate a base tsconfig from NPM @tsconfig/[base]. An existing tsconfig.json will override this option, see tsconfig-opt. This option can
64-
be run without running webpack. [string] [choices: "", "create-react-app", "node18", "node20", "react-native", "recommended", "strictest"]
64+
be run without running webpack.
65+
[string] [choices: "", "create-react-app", "node20", "node22", "node24", "react-native", "recommended", "strictest"]
6566
--tsconfig-opt Regenerate or merge a tsconfig [string] [choices: "merge", "regen"]
6667
-x, --extend Extend, or override, the default configs with your own relative path webpack configs using webpack merge. [array]
6768
-h, --help Show help [boolean]

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const {
7474
describe:
7575
'Generate a base tsconfig from NPM @tsconfig/[base]. An existing tsconfig.json will override this option, see tsconfig-opt. This option can be run without running webpack.',
7676
type: 'string',
77-
choices: ['', 'create-react-app', 'node18', 'node20', 'react-native', 'recommended', 'strictest']
77+
choices: ['', 'create-react-app', 'node20', 'node22', 'node24', 'react-native', 'recommended', 'strictest']
7878
})
7979
.option('tsconfig-opt', {
8080
describe: 'Regenerate or merge a tsconfig',

package-lock.json

Lines changed: 17 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@
7777
"@babel/preset-env": "7.29.2",
7878
"@babel/preset-react": "7.28.5",
7979
"@tsconfig/create-react-app": "2.0.8",
80-
"@tsconfig/node18": "18.2.4",
81-
"@tsconfig/node20": "20.1.6",
80+
"@tsconfig/node20": "20.1.9",
81+
"@tsconfig/node22": "22.0.5",
82+
"@tsconfig/node24": "24.0.4",
8283
"@tsconfig/react-native": "3.0.7",
8384
"@tsconfig/recommended": "1.0.11",
8485
"@tsconfig/strictest": "2.0.6",

0 commit comments

Comments
 (0)