woonplan-packages-redishelper 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/jest.config.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { Config } from 'jest'
2
+
3
+ export default async (): Promise<Config> => {
4
+ return {
5
+ roots: ["<rootDir>/src"],
6
+ testMatch: [
7
+ "**/__tests__/**/*.+(ts|tsx|js)",
8
+ // "**/?(*.)+(spec|test).+(ts|tsx|js)",
9
+ ],
10
+ transform: {
11
+ "^.+\\.(ts|tsx)$": ["ts-jest", { isolatedModules: true }],
12
+ },
13
+ testTimeout: 500,
14
+ preset: "ts-jest/presets/js-with-ts", }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "woonplan-packages-redishelper",
3
- "version": "2.1.00",
3
+ "version": "2.1.01",
4
4
  "description": "",
5
5
  "author": "Jasper Denk <jasper@e-trias.nl>",
6
6
  "repository": "https://github.com/e-trias/woonplan-packages-redishelper.git",
@@ -15,10 +15,13 @@
15
15
  "clean": "rm -rf dist build package node_modules package-lock.json && npm i && jest",
16
16
  "ts-node": "ts-node",
17
17
  "docs": "typedoc --entryPoints src/main.ts",
18
- "build": "tsc -p tsconfig.json && copyfiles -u 1 \"src/*.d.ts\" build",
18
+ "build": "tsc -p tsconfig.production.json && copyfiles -u 1 \"src/*.d.ts\" build",
19
19
  "start": "npm run build && node dist/tsc/main.js",
20
20
  "release": "git commit -am 'updated to v$npm_package_version' && git push && npm version patch && tsc && cp -r src/*.d.ts dist/tsc && npm publish"
21
21
  },
22
+ "overrides": {
23
+ "semver": "~7.5.2"
24
+ },
22
25
  "dependencies": {
23
26
  "@e-trias/woonplan": "1.1.67",
24
27
  "@types/jest": "^29.2.6",
package/tsconfig.json CHANGED
@@ -29,11 +29,11 @@
29
29
  ],
30
30
  },
31
31
  "include": [
32
+ "**/*.test.ts",
32
33
  "src/**/*.ts",
33
34
  "src/*.d.ts"
34
35
  ],
35
36
  "exclude": [
36
- "node_modules",
37
- "**/*.test.ts"
37
+ "node_modules"
38
38
  ]
39
- }
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2021",
4
+ "module": "commonjs",
5
+ "moduleResolution": "node",
6
+ "declaration": true,
7
+ "strict": true,
8
+ "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
9
+ "strictNullChecks": true /* Enable strict null checks. */,
10
+ "strictFunctionTypes": true /* Enable strict checking of function types. */,
11
+ "noUnusedLocals": true /* Report errors on unused locals. */,
12
+ "noUnusedParameters": true /* Report errors on unused parameters. */,
13
+ "noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
14
+ "noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
15
+ "importHelpers": true,
16
+ "skipLibCheck": true,
17
+ "esModuleInterop": true,
18
+ "allowSyntheticDefaultImports": true,
19
+ "experimentalDecorators": true,
20
+ "sourceMap": true,
21
+ "outDir": "./dist/tsc/",
22
+ "types": [
23
+ "node",
24
+ "jest"
25
+ ],
26
+ "lib": [
27
+ "ES6",
28
+ "DOM"
29
+ ],
30
+ },
31
+ "include": [
32
+ "src/**/*.ts",
33
+ "src/*.d.ts"
34
+ ],
35
+ "exclude": [
36
+ "**/*.test.ts",
37
+ "node_modules"
38
+ ]
39
+ }