Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Since TypeScript v5.3 update, `tsc` no more parses `JSDocComment`s. Therefore, `typia` also cannot utilize those `JSDocComment` related features too, especially "Comment Tags" and "JSON schema generator".

To reflect such TypeScript v5.3 update, `typia` has newly added a  temporary CLI command `npx typia patch` that is hacking the TypeScript module to turning on the `JSDocComment` parsing.

  - #883

In today, `ts-patch` has started supporting the TypeScript v5.3 update by reading `package.json` of transformer libraries. Therefore, the temporary CLI command no more required. Following the `ts-patch` guide, this PR has configured the `package.json` file for `ts-patch`, and `JSDocComment` parsing would be turned on by the `ts-patch`.

For reference, the temporary CLI command `npx typia patch` would be kept for a while, due to there can be some users using previous version of `ts-patch`. It would be deprecated after the next major update.
  • Loading branch information
samchon committed Dec 6, 2023
1 parent 0822daa commit a48f6a5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"name": "typia",
"version": "5.3.3",
"version": "5.3.4",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"bin": {
"typia": "./lib/executable/typia.js"
},
"tsp": {
"tscOptions": {
"parseAllJsDoc": true
}
},
"scripts": {
"test": "npm run package:tgz",
"-------------------------------------------------": "",
Expand Down
4 changes: 2 additions & 2 deletions packages/benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build": "rimraf bin && tsc",
"build:actions": "rimraf bin && tsc -p tsconfig.actions.json",
"prepare": "ts-patch install && typia patch",
"prepare": "ts-patch install",
"prettier": "prettier ./src/**/*.ts --write",
"start": "node bin",
"template": "ts-node src/template && npm run prettier && npm run build"
Expand Down Expand Up @@ -73,6 +73,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^2.5.13",
"uuid": "^9.0.1",
"typia": "D:\\github\\samchon\\typia\\typia-5.3.3.tgz"
"typia": "D:\\github\\samchon\\typia\\typia-5.3.4.tgz"
}
}
4 changes: 2 additions & 2 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"scripts": {
"build": "rimraf bin && tsc",
"prepare": "ts-patch install && typia patch",
"prepare": "ts-patch install",
"prettier": "prettier ./src/**/*.ts --write",
"setup": "node build/setup.js",
"start": "node index"
Expand All @@ -32,6 +32,6 @@
"typescript": "^5.3.2"
},
"dependencies": {
"typia": "D:\\github\\samchon\\typia\\typia-5.3.3.tgz"
"typia": "D:\\github\\samchon\\typia\\typia-5.3.4.tgz"
}
}
11 changes: 8 additions & 3 deletions packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
"version": "0.1.0",
"description": "Test program for typia",
"main": "bin/index.js",
"tsp": {
"tscOptions": {
"parseAllJsDoc": true
}
},
"scripts": {
"build": "rimraf bin && tsc",
"build:actions": "rimraf bin && tsc -p tsconfig.actions.json",
"prepare": "ts-patch install && typia patch",
"prepare": "ts-patch install",
"prettier": "prettier ./src/**/*.ts --write",
"setup": "node build/setup.js",
"start": "node bin",
Expand Down Expand Up @@ -35,7 +40,7 @@
"prettier": "^2.6.2",
"rimraf": "^5.0.5",
"ts-node": "^10.9.1",
"ts-patch": "^3.0.2",
"ts-patch": "^3.1.0",
"typescript": "^5.3.2"
},
"dependencies": {
Expand All @@ -46,6 +51,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^2.5.13",
"uuid": "^9.0.1",
"typia": "D:\\github\\samchon\\typia\\typia-5.3.3.tgz"
"typia": "D:\\github\\samchon\\typia\\typia-5.3.4.tgz"
}
}
9 changes: 7 additions & 2 deletions packages/typescript-json/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"name": "typescript-json",
"version": "5.3.3",
"version": "5.3.4",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"tsp": {
"tscOptions": {
"parseAllJsDoc": true
}
},
"scripts": {
"test": "npm run package:tgz",
"-------------------------------------------------": "",
Expand Down Expand Up @@ -56,7 +61,7 @@
},
"homepage": "https://typia.io",
"dependencies": {
"typia": "5.3.3"
"typia": "5.3.4"
},
"peerDependencies": {
"typescript": ">=4.8.0 <5.4.0"
Expand Down

0 comments on commit a48f6a5

Please sign in to comment.