File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Check out code using Git
13- uses : actions/checkout@v4
13+ uses : actions/checkout@v6
1414
15- - uses : pnpm/action-setup@v4
15+ - uses : pnpm/action-setup@v5
1616
17- - uses : actions/setup-node@v4
17+ - uses : actions/setup-node@v6
1818 with :
19- node-version : 22
20- cache : ' pnpm'
19+ node-version : 24
20+ cache : pnpm
2121
2222 - run : pnpm i
2323
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ jobs:
1515 - name : Checkout repository
1616 uses : actions/checkout@v4
1717
18- - uses : pnpm/action-setup@v4
18+ - uses : pnpm/action-setup@v5
1919
20- - uses : actions/setup-node@v4
20+ - uses : actions/setup-node@v6
2121 with :
22- node-version : 22
23- cache : ' pnpm'
22+ node-version : 24
23+ cache : pnpm
2424
2525 - run : pnpm i
2626
Original file line number Diff line number Diff line change 66 "main" : " index.js" ,
77 "type" : " module" ,
88 "scripts" : {
9- "build" : " tsm ./build.ts"
9+ "build" : " node ./build.ts"
1010 },
1111 "keywords" : [],
1212 "author" : " " ,
1313 "license" : " MIT" ,
1414 "dependencies" : {
1515 "@tauri-apps/cli" : " 2.10.1" ,
16- "@types/node" : " ^22 .0.0" ,
16+ "@types/node" : " ^24 .0.0" ,
1717 "github-slugger" : " ^2.0.0" ,
18- "tsm" : " ^2.3.0" ,
1918 "typescript" : " ^5.3.3"
2019 }
2120}
Original file line number Diff line number Diff line change 66 "main" : " index.js" ,
77 "type" : " module" ,
88 "scripts" : {
9- "build" : " tsm ./build.ts"
9+ "build" : " node ./build.ts"
1010 },
1111 "keywords" : [],
1212 "author" : " " ,
1313 "license" : " MIT" ,
1414 "dependencies" : {
1515 "@iarna/toml" : " ^2.2.5" ,
16- "@types/node" : " ^22.0.0" ,
17- "tsm" : " ^2.3.0" ,
16+ "@types/node" : " ^24.0.0" ,
1817 "typescript" : " ^5.3.3"
1918 }
2019}
Original file line number Diff line number Diff line change 1- import { JSONSchema7 , JSONSchema7Definition , JSONSchema7TypeName } from 'json-schema' ;
1+ import type { JSONSchema7 , JSONSchema7Definition , JSONSchema7TypeName } from 'json-schema' ;
22import { existsSync , writeFileSync } from 'node:fs' ;
33import { slug } from 'github-slugger' ;
44
@@ -38,15 +38,15 @@ async function generatePageFromSchema(
3838 ) ;
3939 }
4040
41- let schema : JSONSchema7 = ( await import ( schemaFile ) ) . default ;
41+ let schema : JSONSchema7 = ( await import ( schemaFile , { with : { type : 'json' } } ) ) . default ;
4242
4343 const output = [
4444 `---
4545 # NOTE: This file is auto-generated. Do not edit here!
4646 # For corrections please directly edit the documentation of the underlying Rust source code.
47- # Example for the configuration reference:
47+ # Example for the configuration reference:
4848 # - https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-utils/src/config.rs
49-
49+
5050 title: ${ pageTitle }
5151 sidebar:
5252 order: ${ sidebarOrder } \n---` ,
Original file line number Diff line number Diff line change 66 "main" : " index.js" ,
77 "type" : " module" ,
88 "scripts" : {
9- "build" : " tsm ./build.ts"
9+ "build" : " node ./build.ts"
1010 },
1111 "keywords" : [],
1212 "author" : " " ,
1313 "license" : " MIT" ,
1414 "dependencies" : {
1515 "@types/json-schema" : " ^7.0.15" ,
16- "@types/node" : " ^22 .0.0" ,
16+ "@types/node" : " ^24 .0.0" ,
1717 "github-slugger" : " ^2.0.0" ,
18- "tsm" : " ^2.3.0" ,
1918 "typescript" : " ^5.3.3"
2019 }
2120}
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
3- "target" : " ES2021" ,
3+ "module" : " nodenext" ,
4+ "moduleResolution" : " nodenext" ,
45 "esModuleInterop" : true ,
56 "strict" : true ,
7+ "noEmit" : true ,
68 "skipLibCheck" : true
79 }
810}
Original file line number Diff line number Diff line change 77 "main" : " index.js" ,
88 "license" : " MIT" ,
99 "scripts" : {
10- "build" : " tsm ./main.ts"
10+ "build" : " node ./main.ts"
1111 },
1212 "keywords" : [],
1313 "author" : " " ,
1919 "@octokit/plugin-retry" : " ^8.0.1" ,
2020 "@octokit/plugin-throttling" : " ^11.0.1" ,
2121 "@octokit/types" : " ^14.1.0" ,
22- "@types/node" : " ^22.15.21 " ,
22+ "@types/node" : " ^24.0.0 " ,
2323 "dotenv" : " ^17.2.1" ,
24- "tsm" : " ^2.3.0" ,
2524 "typescript" : " ^5.8.3"
2625 }
2726}
Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "build" : " tsm ./build.ts"
7+ "build" : " node ./build.ts"
88 },
99 "keywords" : [],
1010 "author" : " " ,
1111 "license" : " MIT" ,
1212 "private" : " true" ,
1313 "dependencies" : {
1414 "github-slugger" : " ^2.0.0" ,
15- "tsm" : " ^2.3.0" ,
1615 "typedoc" : " 0.26.6" ,
1716 "typedoc-plugin-markdown" : " 4.2.6" ,
1817 "typedoc-plugin-mdn-links" : " 3.2.11" ,
Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "build" : " tsm ./build.ts"
7+ "build" : " node ./build.ts"
88 },
99 "keywords" : [],
1010 "author" : " " ,
1111 "license" : " ISC" ,
1212 "dependencies" : {
1313 "@types/semver" : " ^7.5.8" ,
14- "semver" : " ^7.6.0" ,
15- "tsm" : " ^2.3.0"
14+ "semver" : " ^7.6.0"
1615 }
1716}
You can’t perform that action at this time.
0 commit comments