Skip to content

Commit 4689780

Browse files
committed
chore: Update for TS 3.8.
1 parent 161037c commit 4689780

File tree

13 files changed

+33
-163
lines changed

13 files changed

+33
-163
lines changed

docs/details/source-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ project.getSourceFileOrThrow("someFile.ts").delete();
6969
project.getSourceFileOrThrow("someOtherFile.ts").delete();
7070

7171
// after you're all done, finally save your changes to the file system
72-
project.save();
72+
await project.save();
7373
```
7474

7575
#### Deleting Immediately

docs/emitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ for (const file of result.getFiles()) {
142142
// ...manipulate the javascript files here...
143143

144144
// save the new files to the file system
145-
newProject.save();
145+
await newProject.save();
146146
```
147147

148148
...but consider using the custom transformers discussed above if you want it to be faster.

docs/manipulation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const project = new Project();
1818
// ...lots of code here that manipulates, copies, moves, and deletes files...
1919

2020
// when you're all done, call this and it will save everything to the file system
21-
project.save();
21+
await project.save();
2222
```
2323

2424
The above is recommended because it means if your code errors halfway through, the files won't be in a halfway state. However, there's always a way to save, move, copy, and delete while immediately having these changes happen on the underlying file system. For example:

docs/setup/adding-source-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,5 @@ Adding source files to the project from a structure, writer function, or text wi
141141

142142
```ts
143143
// save it to the disk if you wish:
144-
sourceFile.save(); // or saveSync();
144+
await sourceFile.save(); // or saveSync();
145145
```

packages/bootstrap/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"ts-nameof": "^4.2.2",
3636
"ts-node": "^8.6.2",
3737
"ttypescript": "^1.5.10",
38-
"typescript": "^3.7.5"
38+
"typescript": "~3.8.2"
3939
},
4040
"publishConfig": {
4141
"access": "public"

packages/bootstrap/yarn.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,10 +1000,14 @@ type-detect@^4.0.0, type-detect@^4.0.5:
10001000
version "4.0.8"
10011001
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
10021002

1003-
typescript@^3.5.3, typescript@^3.7.5, typescript@~3.7.2:
1003+
typescript@^3.5.3, typescript@~3.7.2:
10041004
version "3.7.5"
10051005
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
10061006

1007+
typescript@~3.8.2:
1008+
version "3.8.2"
1009+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.2.tgz#91d6868aaead7da74f493c553aeff76c0c0b1d5a"
1010+
10071011
unc-path-regex@^0.1.2:
10081012
version "0.1.2"
10091013
resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa"

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"fs-extra": "^8.1.0",
2323
"is-negated-glob": "^1.0.0",
2424
"multimatch": "^4.0.0",
25-
"typescript": "3.9.0-dev.20200215"
25+
"typescript": "~3.8.2"
2626
},
2727
"devDependencies": {
2828
"@ts-morph/scripts": "~0.2.0",

packages/common/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,14 +1020,14 @@ type-detect@^4.0.0, type-detect@^4.0.5:
10201020
version "4.0.8"
10211021
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
10221022

1023-
1024-
version "3.9.0-dev.20200215"
1025-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.0-dev.20200215.tgz#6bf2b4e8241582541c915032dd0f6a535f46adeb"
1026-
10271023
typescript@^3.5.3, typescript@~3.7.2:
10281024
version "3.7.5"
10291025
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
10301026

1027+
typescript@~3.8.2:
1028+
version "3.8.2"
1029+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.2.tgz#91d6868aaead7da74f493c553aeff76c0c0b1d5a"
1030+
10311031
unc-path-regex@^0.1.2:
10321032
version "0.1.2"
10331033
resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa"

packages/scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"rollup-plugin-typescript2": "^0.26.0",
2222
"ts-nameof": "^4.2.2",
2323
"ttypescript": "^1.5.10",
24-
"typescript": "^3.7.5"
24+
"typescript": "~3.8.2"
2525
},
2626
"publishConfig": {
2727
"access": "public"

packages/scripts/yarn.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,14 @@ ttypescript@^1.5.10:
413413
dependencies:
414414
resolve "^1.9.0"
415415

416-
typescript@^3.5.3, typescript@^3.7.5, typescript@~3.7.2:
416+
typescript@^3.5.3, typescript@~3.7.2:
417417
version "3.7.5"
418418
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
419419

420+
typescript@~3.8.2:
421+
version "3.8.2"
422+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.2.tgz#91d6868aaead7da74f493c553aeff76c0c0b1d5a"
423+
420424
unc-path-regex@^0.1.2:
421425
version "0.1.2"
422426
resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa"

0 commit comments

Comments
 (0)