Skip to content

Commit 012bcff

Browse files
committed
fix: typescript bump and fixes
1 parent 376ae9c commit 012bcff

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"prettier": "^2.0.5",
6161
"sinon": "^9.0.2",
6262
"ts-node": "^8.10.2",
63-
"typescript": "^3.9.3"
63+
"typescript": "^4.1.3"
6464
},
6565
"types": "lib/exported.d.ts",
6666
"publishConfig": {

test/unit/telemetryReporter.test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ describe('TelemetryReporter', () => {
156156
const options = { project, key, waitForConnection: true };
157157
try {
158158
await TelemetryReporter.create(options);
159-
} catch (err) {
160-
expect(err.message).to.equal('Unable to connect to app insights.');
159+
} catch (err: unknown) {
160+
const e = err as Error;
161+
expect(e.message).to.equal('Unable to connect to app insights.');
161162
}
162163
});
163164

tsconfig.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
2-
"extends": "./node_modules/@salesforce/dev-config/tsconfig-strict",
2+
"extends": "@salesforce/dev-config/tsconfig-strict",
33
"compilerOptions": {
4-
"outDir": "./lib"
4+
"outDir": "./lib",
5+
"rootDir": "src",
6+
"baseUrl": "."
57
},
68
"include": ["src/**/*.ts"]
79
}

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -4605,6 +4605,11 @@ typescript@^3.9.3:
46054605
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8"
46064606
integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==
46074607

4608+
typescript@^4.1.3:
4609+
version "4.5.2"
4610+
resolved "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998"
4611+
integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==
4612+
46084613
uglify-js@^3.1.4:
46094614
version "3.13.10"
46104615
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.13.10.tgz#a6bd0d28d38f592c3adb6b180ea6e07e1e540a8d"

0 commit comments

Comments
 (0)