Skip to content

Commit cf39117

Browse files
authored
ENG-0000 - Update nepal-client-libs to use node18 (#839)
This completely removed the karma-typescript-es6-transform plugin and relies in newer language features instead. All karma configurations have been consolidated into a single shared config that is invoked by each package's config.
1 parent 3acd41f commit cf39117

File tree

69 files changed

+16653
-3510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+16653
-3510
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ coverage
2626
packages/*/coverage
2727
packages/*/dist
2828

29-
package-lock.json
30-
3129
#needed to use hub in the pipeline
3230
bin

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
package-lock=false

packages/subscriptions/karma.conf.js renamed to karma.shared.config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function (config) {
1+
module.exports = function( config, name ) {
22
config.set({
33

44
frameworks: ["mocha", "karma-typescript"],
@@ -25,20 +25,18 @@ module.exports = function (config) {
2525
karmaTypescriptConfig: {
2626
bundlerOptions: {
2727
acornOptions: {
28-
ecmaVersion: 8,
28+
ecmaVersion: 2018,
2929
},
3030
},
3131
tsconfig: "tsconfig.spec.json",
3232
reports:
3333
{
3434
"html": {
35-
"directory": "./../../coverage/subscriptions-client",
36-
"subdirectory": "report"
35+
"directory": `../../coverage/${name}`
3736
},
3837
"text-summary": "",
3938
"json-summary": {
40-
"directory": "./../../coverage/subscriptions-client",
41-
"subdirectory": "summary",
39+
"directory": `../../coverage/${name}`,
4240
"filename": "json-summary.json"
4341
}
4442
},

0 commit comments

Comments
 (0)