Skip to content

Commit c579c12

Browse files
committed
Fix for Node.js 20
TypeStrong/ts-node#1997
1 parent 9374e4a commit c579c12

File tree

5 files changed

+195
-76
lines changed

5 files changed

+195
-76
lines changed

src/api/autogen/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ function stringifyDoc(doc: string | undefined = '') {
607607
}
608608

609609
let rendered = `
610-
// This file is auto-generated. Do not edit it directly.
610+
// DO NOT EDIT. This file is auto-generated by running 'pnpm generate' in the 'src/api/autogen' folder.
611611
612612
/*!
613613
${api.info.title} ${api.info.version}

src/api/autogen/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "generator",
2+
"name": "@ascom-alpaca-rs/api-generator",
33
"version": "1.0.0",
4-
"description": "",
4+
"private": true,
55
"type": "module",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"generate": "node --no-warnings=ExperimentalWarning --loader=ts-node/esm index.ts"
88
},
99
"keywords": [],
1010
"author": "Ingvar Stepanyan <me@rreverser.com> (https://rreverser.com/)",
@@ -15,6 +15,7 @@
1515
"@types/xml2js": "^0.4.11",
1616
"js-convert-case": "^4.2.0",
1717
"openapi-types": "^12.0.2",
18+
"ts-node": "^10.9.1",
1819
"typescript": "^4.8.4",
1920
"xml2js": "^0.4.23"
2021
}

0 commit comments

Comments
 (0)