Skip to content

Commit

Permalink
Fix for Node.js 20
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed May 14, 2023
1 parent 9374e4a commit c579c12
Show file tree
Hide file tree
Showing 5 changed files with 195 additions and 76 deletions.
2 changes: 1 addition & 1 deletion src/api/autogen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ function stringifyDoc(doc: string | undefined = '') {
}

let rendered = `
// This file is auto-generated. Do not edit it directly.
// DO NOT EDIT. This file is auto-generated by running 'pnpm generate' in the 'src/api/autogen' folder.
/*!
${api.info.title} ${api.info.version}
Expand Down
7 changes: 4 additions & 3 deletions src/api/autogen/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "generator",
"name": "@ascom-alpaca-rs/api-generator",
"version": "1.0.0",
"description": "",
"private": true,
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"generate": "node --no-warnings=ExperimentalWarning --loader=ts-node/esm index.ts"
},
"keywords": [],
"author": "Ingvar Stepanyan <[email protected]> (https://rreverser.com/)",
Expand All @@ -15,6 +15,7 @@
"@types/xml2js": "^0.4.11",
"js-convert-case": "^4.2.0",
"openapi-types": "^12.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"xml2js": "^0.4.23"
}
Expand Down
Loading

0 comments on commit c579c12

Please sign in to comment.