You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1288093
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -121,13 +121,80 @@ https://cdn.jsdelivr.net/gh/Zhengqbbb/cz-git@{{ v }}/docs/public/schema/cz-git.j
121
121
122
122
## TypeScript template
123
123
124
-
:::danger
125
-
**Since <u>v1.3.0</u>. The typescript configuration file will no longer be loaded**. e.g(`cz.config.ts`)
124
+
- Added in`cz-git`, `czg` version `v1.11.0`
125
+
- Will use Node.jsLTS version >=`v22.11.0`==experimental feature==, **native TypeScript configuration file loading**<br>==Need injection of experimental options==`NODE_OPTIONS='--experimental-transform-types --disable-warning ExperimentalWarning'` to use
126
+
- For details: [see Node.js documentation](https://nodejs.org/api/cli.html#--experimental-transform-types) | [Node.js TypeScript support roadmap](https://github.com/nodejs/loaders/issues/217)
127
+
-==TIP==: You can first use [ESM js](#javascript-template) configuration files as a transition for future TypeScript configuration files, and switch after Node.js runs TypeScript stably
128
+
129
+
::::: details Click to expand `NODE_OPTIONS` injection methods
130
+
:::: code-group
131
+
::: code-group-item package.json - with cross-env package
0 commit comments