Skip to content

Commit 3caa82c

Browse files
committed
feat: upgrade typescript (VF-000) (#83)
<!-- You can erase any parts of this template not applicable to your Pull Request. --> **Fixes or implements VF-000** ### Brief description. What is this change? Upgrades Typescript to 4.7 Node 16 supports `ES2021`, so the target is updated. `@zerollup/ts-transform-paths` does not support TS 4.5+, so it is replaced with `typescript-transform-paths`. Co-authored-by: Tyler Stewart <[email protected]>
1 parent 917da16 commit 3caa82c

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"@voiceflow/git-branch-check": "1.2.3",
4747
"@voiceflow/prettier-config": "1.0.7",
4848
"@voiceflow/tsconfig": "1.2.5",
49-
"@zerollup/ts-transform-paths": "^1.7.18",
5049
"chai-as-promised": "^7.1.1",
5150
"commitizen": "4.2.4",
5251
"cz-conventional-changelog": "^3.3.0",
@@ -64,8 +63,9 @@
6463
"rimraf": "^3.0.2",
6564
"supertest": "6.2.2",
6665
"ts-mocha": "9.0.2",
67-
"ttypescript": "1.5.13",
68-
"typescript": "4.5.5"
66+
"ttypescript": "^1.5.13",
67+
"typescript": "~4.7.2",
68+
"typescript-transform-paths": "3.3.1"
6969
},
7070
"files": [
7171
"build/**"

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"declaration": true,
66
"plugins": [
77
{
8-
"transform": "@zerollup/ts-transform-paths"
8+
"transform": "typescript-transform-paths"
99
}
1010
]
1111
},

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "@voiceflow/tsconfig",
33
"compilerOptions": {
44
"baseUrl": "./src",
5-
"lib": ["ES2020"]
5+
"target": "ES2021",
6+
"lib": ["ES2021"]
67
},
78
"compileOnSave": false,
89
"include": [

yarn.lock

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7053,7 +7053,7 @@ tsutils@^3.21.0:
70537053
dependencies:
70547054
tslib "^1.8.1"
70557055

7056-
7056+
ttypescript@^1.5.13:
70577057
version "1.5.13"
70587058
resolved "https://registry.yarnpkg.com/ttypescript/-/ttypescript-1.5.13.tgz#c3bcb760599fe49157d30c5d5895a0023cbb7f30"
70597059
integrity sha512-KT/RBfGGlVJFqEI8cVvI3nMsmYcFvPSZh8bU0qX+pAwbi7/ABmYkzn7l/K8skw0xmYjVCoyaV6WLsBQxdadybQ==
@@ -7117,11 +7117,23 @@ [email protected]:
71177117
resolved "https://registry.yarnpkg.com/typescript-fsa/-/typescript-fsa-3.0.0.tgz#3ad1cb915a67338e013fc21f67c9b3e0e110c912"
71187118
integrity sha512-xiXAib35i0QHl/+wMobzPibjAH5TJLDj+qGq5jwVLG9qR4FUswZURBw2qihBm0m06tHoyb3FzpnJs1GRhRwVag==
71197119

7120-
[email protected], typescript@^4.4.3:
7120+
7121+
version "3.3.1"
7122+
resolved "https://registry.yarnpkg.com/typescript-transform-paths/-/typescript-transform-paths-3.3.1.tgz#74526bc1b6dc575ffe269cc81833db7bd81763e1"
7123+
integrity sha512-c+8Cqd2rsRtTU68rJI0NX/OtqgBDddNs1fIxm1nCNyhn0WpoyqtpUxc1w9Ke5c5kgE4/OT5xYbKf2cf694RYEg==
7124+
dependencies:
7125+
minimatch "^3.0.4"
7126+
7127+
typescript@^4.4.3:
71217128
version "4.5.5"
71227129
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
71237130
integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
71247131

7132+
typescript@~4.7.2:
7133+
version "4.7.2"
7134+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.2.tgz#1f9aa2ceb9af87cca227813b4310fff0b51593c4"
7135+
integrity sha512-Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A==
7136+
71257137
unbox-primitive@^1.0.0, unbox-primitive@^1.0.1:
71267138
version "1.0.1"
71277139
resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471"

0 commit comments

Comments
 (0)