Skip to content

Commit 36643ff

Browse files
committed
refactor: rename typescript-number to typescript-x
1 parent ed3ed1f commit 36643ff

File tree

4 files changed

+19
-31
lines changed

4 files changed

+19
-31
lines changed

test/config.ts

+5-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
import ts from "typescript";
2-
import tsThree from "typescript-three";
3-
import tsFourSeven from "typescript-four-seven";
2+
import tsThree from "typescript-3";
3+
import tsFourSeven from "typescript-4.7";
44
import path from "path";
55

6-
/* ****************************************************************************************************************** */
7-
// region: TS Instances
8-
/* ****************************************************************************************************************** */
9-
10-
export { ts, tsThree, tsFourSeven };
11-
12-
// endregion
13-
14-
/* ****************************************************************************************************************** */
15-
// region: Config
16-
/* ****************************************************************************************************************** */
6+
export { ts };
177

188
export const tsModules = <const>[
19-
["3.6.5", tsThree, "typescript-three"],
20-
["4.7.4", tsFourSeven, "typescript-four-seven"],
9+
["3.6.5", tsThree, "typescript-3"],
10+
["4.7.4", tsFourSeven, "typescript-4.7"],
2111
["Latest", ts, "typescript"],
2212
];
2313

@@ -26,5 +16,3 @@ export const transformerPath = require.resolve("typescript-transform-paths");
2616
export const builtTransformerPath = require.resolve("typescript-transform-paths");
2717

2818
Error.stackTraceLimit = 120;
29-
30-
// endregion

test/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"tsp1": "npm:ts-patch@1.*.*",
2323
"tsp2": "npm:ts-patch@2.*.*",
2424
"typescript": "^5.5.4",
25-
"typescript-four-seven": "npm:typescript@4.7.4",
26-
"typescript-three": "npm:typescript@3.6.5",
25+
"typescript-3": "npm:typescript@3.6.5",
26+
"typescript-4.7": "npm:typescript@4.7.4",
2727
"typescript-transform-paths": "portal:../"
2828
},
2929
"workspaces": [

test/prepare.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function patchTsModules() {
2828
tspatch(["tsc.js", "typescript.js"], { basedir, dir: basedir });
2929
}
3030

31-
patchTypescript("typescript-three", patch1);
32-
patchTypescript("typescript-four-seven", patch2);
31+
patchTypescript("typescript-3", patch1);
32+
patchTypescript("typescript-4.7", patch2);
3333
patchTypescript("typescript", patch);
3434
}
3535

test/yarn.lock

+10-10
Original file line numberDiff line numberDiff line change
@@ -8099,8 +8099,8 @@ __metadata:
80998099
tsp1: "npm:ts-patch@1.*.*"
81008100
tsp2: "npm:ts-patch@2.*.*"
81018101
typescript: "npm:^5.5.4"
8102-
typescript-four-seven: "npm:typescript@4.7.4"
8103-
typescript-three: "npm:typescript@3.6.5"
8102+
typescript-3: "npm:typescript@3.6.5"
8103+
typescript-4.7: "npm:typescript@4.7.4"
81048104
typescript-transform-paths: "portal:../"
81058105
languageName: unknown
81068106
linkType: soft
@@ -9239,23 +9239,23 @@ __metadata:
92399239
languageName: node
92409240
linkType: hard
92419241

9242-
"typescript-four-seven@npm:typescript@4.7.4":
9243-
version: 4.7.4
9244-
resolution: "typescript@npm:4.7.4"
9242+
"typescript-3@npm:typescript@3.6.5":
9243+
version: 3.6.5
9244+
resolution: "typescript@npm:3.6.5"
92459245
bin:
92469246
tsc: bin/tsc
92479247
tsserver: bin/tsserver
9248-
checksum: 10c0/8c1c4007b6ce5b24c49f0e89173ab9e82687cc6ae54418d1140bb63b82d6598d085ac0f993fe3d3d1fbf87a2c76f1f81d394dc76315bc72c7a9f8561c5d8d205
9248+
checksum: 10c0/b6f0d5d2e2325b28460b8cf3a4a1237d79aec9951ad727014d4ca570327cc5947decec5d262044979cc0a9ab63746b58e6d8438d73d33ce8415e5369d0490dff
92499249
languageName: node
92509250
linkType: hard
92519251

9252-
"typescript-three@npm:typescript@3.6.5":
9253-
version: 3.6.5
9254-
resolution: "typescript@npm:3.6.5"
9252+
"typescript-4.7@npm:typescript@4.7.4":
9253+
version: 4.7.4
9254+
resolution: "typescript@npm:4.7.4"
92559255
bin:
92569256
tsc: bin/tsc
92579257
tsserver: bin/tsserver
9258-
checksum: 10c0/b6f0d5d2e2325b28460b8cf3a4a1237d79aec9951ad727014d4ca570327cc5947decec5d262044979cc0a9ab63746b58e6d8438d73d33ce8415e5369d0490dff
9258+
checksum: 10c0/8c1c4007b6ce5b24c49f0e89173ab9e82687cc6ae54418d1140bb63b82d6598d085ac0f993fe3d3d1fbf87a2c76f1f81d394dc76315bc72c7a9f8561c5d8d205
92599259
languageName: node
92609260
linkType: hard
92619261

0 commit comments

Comments
 (0)