diff --git a/jest.config.js b/jest.config.js index 842a539..123005d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,12 +1,16 @@ module.exports = { - "reporters": ["default"], - "roots": [ - "/tests" - ], - "testMatch": [ - "**/?(*.)+(spec|test).+(ts|tsx|js)" - ], - "transform": { - ".+\\.(ts)$": "ts-jest" - }, -} + "reporters": ["default", "jest-junit"], + "roots": [ + "/tests" + ], + "testMatch": [ + "**/?(*.)+(spec|test).+(ts|tsx|js)" + ], + "transform": { + ".+\\.(ts)$": "ts-jest" + }, + collectCoverageFrom: [ + 'src/**/utils/**/*.ts', + '!src/**/utils/**/*.d.ts' + ], +}; diff --git a/package.json b/package.json index f2e6aae..9d4a798 100644 --- a/package.json +++ b/package.json @@ -1,32 +1,33 @@ { "name": "webstorage-decorators", - "version": "4.2.0", + "version": "4.3.0", "description": "Decorators to sync class properties to Local/Session storage", "repository": "https://github.com/ztimson/WebstorageDecorators", - "main": "./lib/index.js", - "typings": "./lib/index.d.ts", + "author": "Zak Timson", + "license": "ISC", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "build": "tsc", "test": "jest --verbose", "test:coverage": "npx jest --verbose --coverage", "watch": "npm run build && tsc --watch" }, - "files": [ - "lib" - ], "keywords": [ "Decorators", "LocalStorage", "SessionStorage", "WebStorage" ], - "author": "Zak Timson", - "license": "ISC", "dependencies": {}, "devDependencies": { - "@types/jest": "^26.0.15", - "jest": "^26.6.0", - "ts-jest": "^26.4.1", - "typescript": "^4.0.3" - } + "@types/jest": "^29.2.3", + "jest": "^29.3.1", + "jest-junit": "^15.0.0", + "ts-jest": "^29.0.3", + "typescript": "^4.9.3" + }, + "files": [ + "dist" + ] } diff --git a/tsconfig.json b/tsconfig.json index 9a0037f..0805214 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,21 +1,14 @@ { - "compilerOptions": { - "target": "es2015", - "module": "es2020", - "declaration": true, - "sourceMap": true, - "outDir": "lib", - "strict": true, - "noImplicitAny": false, - "moduleResolution": "node", - "typeRoots": [ - "./node_modules/@types" - ], - "esModuleInterop": true, - "experimentalDecorators": true, - "emitDecoratorMetadata": true - }, - "include": [ - "./src" - ] + "compilerOptions": { + "declaration": true, + "declarationMap": true, + "lib": ["ESNext"], + "module": "commonjs", + "outDir": "./dist", + "strict": true, + "target": "es2015" + }, + "include": [ + "src/**/*" + ] }