Skip to content

Commit

Permalink
Pin TS version at 5.2.2, to work with karma.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrizagidulin committed Jan 2, 2024
1 parent 552cc3a commit c586c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = function (config) {
],

karmaTypescriptConfig: {
tsconfig: './tsconfig.spec.json',
reports: {} // Disables the code coverage report
},

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prepare": "npm run build",
"rebuild": "npm run clear && npm run build",
"test": "npm run lint && npm run test-node && npm run test-karma",
"test-karma": "cross-env NODE_ENV=test TS_NODE_PROJECT=tsconfig.spec.json karma start karma.conf.js",
"test-karma": "karma start",
"test-node": "cross-env NODE_ENV=test TS_NODE_PROJECT=tsconfig.spec.json TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register --project tsconfig.spec.json 'test/*.ts'"
},
"files": [
Expand All @@ -19,6 +19,7 @@
],
"main": "dist/index.js",
"module": "dist/esm/index.js",
"browser": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"dependencies": {
},
Expand All @@ -45,7 +46,7 @@
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"ts-standard": "^12.0.2",
"typescript": "^5.1.6"
"typescript": "5.2.2"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit c586c86

Please sign in to comment.