Skip to content

Commit 6e8bfe3

Browse files
committed
chore(dev-deps): bump TS
1 parent af20dc5 commit 6e8bfe3

3 files changed

Lines changed: 1240 additions & 275 deletions

File tree

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,19 @@
1414
"dependencies": {
1515
"@salesforce/kit": "^3.2.3",
1616
"ejs": "^3.1.10",
17-
"got": "^11.8.2",
17+
"got": "^11.8.6",
1818
"hpagent": "^1.2.0",
19-
"mime-types": "^2.1.35",
19+
"mime-types": "^3.0.1",
2020
"proxy-from-env": "^1.1.0",
2121
"tar": "^6.2.1",
2222
"tslib": "^2.8.1"
2323
},
2424
"devDependencies": {
2525
"@salesforce/dev-config": "^4.3.1",
26-
"@salesforce/dev-scripts": "^6.0.3",
26+
"@salesforce/dev-scripts": "^11.0.2",
2727
"@salesforce/prettier-config": "^0.0.3",
2828
"@types/chai-as-promised": "^7.1.8",
2929
"@types/ejs": "^3.1.5",
30-
"@types/got": "^9.6.12",
3130
"@types/mime-types": "^2.1.4",
3231
"@types/proxy-from-env": "^1.0.4",
3332
"@types/tar": "^6.1.8",
@@ -48,7 +47,7 @@
4847
"eslint-plugin-jsdoc": "^46.10.1",
4948
"eslint-plugin-prettier": "^3.1.3",
5049
"husky": "^8.0.3",
51-
"mocha": "^10.8.2",
50+
"mocha": "^11.7.1",
5251
"nyc": "^15.1.0",
5352
"prettier": "^2.0.5",
5453
"pretty-quick": "^3.3.1",
@@ -57,7 +56,7 @@
5756
"sinon": "^18",
5857
"ts-morph": "^24.0.0",
5958
"ts-node": "^10.9.2",
60-
"typescript": "^5.4.5"
59+
"typescript": "^5.9.2"
6160
},
6261
"engines": {
6362
"node": ">=18.18.2"

test/service/templateService.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import * as chai from 'chai';
99
import * as chaiAsPromised from 'chai-as-promised';
1010
import * as fs from 'fs';
11-
import { rm } from 'node:fs/promises';
1211
import got from 'got';
1312
import * as path from 'path';
1413
import * as sinon from 'sinon';
@@ -28,7 +27,7 @@ chai.config.truncateThreshold = 100000;
2827
chai.should();
2928

3029
async function remove(file: string) {
31-
await rm(file, { force: true, recursive: true });
30+
await fs.promises.rm(file, { force: true, recursive: true });
3231
}
3332

3433
function assertFileContent(file: string, regex: string | RegExp) {
@@ -465,7 +464,6 @@ describe('TemplateService', () => {
465464

466465
for (const templateType of templateTypes) {
467466
try {
468-
// @ts-expect-error because we loose type safety when iterating over the values of an enum
469467
const generator = importGenerator(templateType);
470468
chai.expect(generator).to.not.be.undefined;
471469
} catch {

0 commit comments

Comments
 (0)