Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix: replace ts-node with tsimp as ts-node is having problems with ne…
Browse files Browse the repository at this point in the history
…wer nodejs versions and is not maintained anymore
  • Loading branch information
nklomp committed Jan 14, 2024
1 parent 4731cd4 commit 1277dae
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 95 deletions.
2 changes: 1 addition & 1 deletion generator/schemaGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CustomTypeFormatter implements SubTypeFormatter {
}
}

function writeSchema(config): Schema {
function writeSchema(config: any): Schema {
const formatter = createFormatter(config, (fmt: MutableTypeFormatter) => {
fmt.addTypeFormatter(new CustomTypeFormatter());
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"build": "npm-run-all build:schemaGenerator build:main",
"build:main": "tsc -p tsconfig.build.json",
"build:schemaGenerator": "ts-node --esm generator/schemaGenerator.ts",
"build:schemaGenerator": "node --loader=tsimp/loader generator/schemaGenerator.ts",
"clean": "rimraf dist coverage",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"{src,test}/**/*.ts\" --write",
Expand Down Expand Up @@ -82,7 +82,7 @@
"ts-interface-checker": "^1.0.2",
"ts-jest": "^29.1.1",
"ts-json-schema-generator": "1.5.0",
"ts-node": "^10.9.2",
"tsimp": "^2.0.10",
"typescript": "^5.3.3"
},
"resolutions": {
Expand Down
Loading

0 comments on commit 1277dae

Please sign in to comment.