Updated libraries & testing
This commit is contained in:
parent
4e6ab26f0d
commit
7a9ab68402
@ -1,12 +1,16 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
"reporters": ["default"],
|
"reporters": ["default", "jest-junit"],
|
||||||
"roots": [
|
"roots": [
|
||||||
"<rootDir>/tests"
|
"<rootDir>/tests"
|
||||||
],
|
],
|
||||||
"testMatch": [
|
"testMatch": [
|
||||||
"**/?(*.)+(spec|test).+(ts|tsx|js)"
|
"**/?(*.)+(spec|test).+(ts|tsx|js)"
|
||||||
],
|
],
|
||||||
"transform": {
|
"transform": {
|
||||||
".+\\.(ts)$": "ts-jest"
|
".+\\.(ts)$": "ts-jest"
|
||||||
},
|
},
|
||||||
}
|
collectCoverageFrom: [
|
||||||
|
'src/**/utils/**/*.ts',
|
||||||
|
'!src/**/utils/**/*.d.ts'
|
||||||
|
],
|
||||||
|
};
|
||||||
|
27
package.json
27
package.json
@ -1,32 +1,33 @@
|
|||||||
{
|
{
|
||||||
"name": "webstorage-decorators",
|
"name": "webstorage-decorators",
|
||||||
"version": "4.2.0",
|
"version": "4.3.0",
|
||||||
"description": "Decorators to sync class properties to Local/Session storage",
|
"description": "Decorators to sync class properties to Local/Session storage",
|
||||||
"repository": "https://github.com/ztimson/WebstorageDecorators",
|
"repository": "https://github.com/ztimson/WebstorageDecorators",
|
||||||
"main": "./lib/index.js",
|
"author": "Zak Timson",
|
||||||
"typings": "./lib/index.d.ts",
|
"license": "ISC",
|
||||||
|
"main": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "jest --verbose",
|
"test": "jest --verbose",
|
||||||
"test:coverage": "npx jest --verbose --coverage",
|
"test:coverage": "npx jest --verbose --coverage",
|
||||||
"watch": "npm run build && tsc --watch"
|
"watch": "npm run build && tsc --watch"
|
||||||
},
|
},
|
||||||
"files": [
|
|
||||||
"lib"
|
|
||||||
],
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Decorators",
|
"Decorators",
|
||||||
"LocalStorage",
|
"LocalStorage",
|
||||||
"SessionStorage",
|
"SessionStorage",
|
||||||
"WebStorage"
|
"WebStorage"
|
||||||
],
|
],
|
||||||
"author": "Zak Timson",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.15",
|
"@types/jest": "^29.2.3",
|
||||||
"jest": "^26.6.0",
|
"jest": "^29.3.1",
|
||||||
"ts-jest": "^26.4.1",
|
"jest-junit": "^15.0.0",
|
||||||
"typescript": "^4.0.3"
|
"ts-jest": "^29.0.3",
|
||||||
}
|
"typescript": "^4.9.3"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,21 +1,14 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2015",
|
"declaration": true,
|
||||||
"module": "es2020",
|
"declarationMap": true,
|
||||||
"declaration": true,
|
"lib": ["ESNext"],
|
||||||
"sourceMap": true,
|
"module": "commonjs",
|
||||||
"outDir": "lib",
|
"outDir": "./dist",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitAny": false,
|
"target": "es2015"
|
||||||
"moduleResolution": "node",
|
},
|
||||||
"typeRoots": [
|
"include": [
|
||||||
"./node_modules/@types"
|
"src/**/*"
|
||||||
],
|
]
|
||||||
"esModuleInterop": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"./src"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user