@jonloucks/contracts-ts 2.0.2 → 2.0.3
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/README.md +1 -1
- package/package.json +14 -13
- package/version.js +1 -1
package/README.md
CHANGED
|
@@ -274,7 +274,7 @@ contracts-ts
|
|
|
274
274
|
<details markdown="1"><summary>CI Workflow</summary>
|
|
275
275
|
|
|
276
276
|
The CI workflow runs on every push and pull request to `main` branch. It:
|
|
277
|
-
- Tests against supported Node.js versions
|
|
277
|
+
- Tests against supported Node.js versions `20.19.0+`, `22.13.0+`, and `24.x`
|
|
278
278
|
- Runs linting
|
|
279
279
|
- Builds the project
|
|
280
280
|
- Runs tests with coverage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jonloucks/contracts-ts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Typescript Dependency Contracts for dependency inversion",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -8,19 +8,16 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./index.d.ts",
|
|
11
|
-
"require": "./index.js",
|
|
12
11
|
"import": "./index.js",
|
|
13
12
|
"default": "./index.js"
|
|
14
13
|
},
|
|
15
14
|
"./api/*": {
|
|
16
15
|
"types": "./api/*.d.ts",
|
|
17
|
-
"require": "./api/*.js",
|
|
18
16
|
"import": "./api/*.js",
|
|
19
17
|
"default": "./api/*.js"
|
|
20
18
|
},
|
|
21
19
|
"./auxiliary/*": {
|
|
22
20
|
"types": "./auxiliary/*.d.ts",
|
|
23
|
-
"require": "./auxiliary/*.js",
|
|
24
21
|
"import": "./auxiliary/*.js",
|
|
25
22
|
"default": "./auxiliary/*.js"
|
|
26
23
|
}
|
|
@@ -35,9 +32,11 @@
|
|
|
35
32
|
"build": "tsc",
|
|
36
33
|
"test": "tsx --test $(find src -name '*.test.ts')",
|
|
37
34
|
"test:watch": "tsx --test --watch $(find src -name '*.test.ts')",
|
|
38
|
-
"test:coverage": "
|
|
39
|
-
"
|
|
40
|
-
"
|
|
35
|
+
"test:coverage": "mkdir -p coverage && tsx --test --experimental-test-coverage --experimental-specifier-resolution=node --test-reporter=lcov $(find src -name '*.test.ts') > coverage/lcov.info",
|
|
36
|
+
"test:coverage-report": "npx badges-ts coverage-report",
|
|
37
|
+
"test:coverage-gate": "npx badges-ts coverage-gate",
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"lint:fix": "eslint . --fix",
|
|
41
40
|
"prepublishOnly": "npm run build",
|
|
42
41
|
"before:publish": "npm run clean && npm run compile && cp package.json dist && cp README.md dist && cd dist && npm pkg delete private",
|
|
43
42
|
"after:publish": "npm run clean",
|
|
@@ -69,13 +68,15 @@
|
|
|
69
68
|
"engines": {
|
|
70
69
|
"node": ">=16.0.0"
|
|
71
70
|
},
|
|
71
|
+
"overrides": {
|
|
72
|
+
"minimatch": "10.2.1"
|
|
73
|
+
},
|
|
72
74
|
"devDependencies": {
|
|
73
|
-
"@jonloucks/badges-ts": "^1.0
|
|
74
|
-
"@types/node": "^25.
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
76
|
-
"@typescript-eslint/parser": "^8.
|
|
77
|
-
"
|
|
78
|
-
"eslint": "^9.39.2",
|
|
75
|
+
"@jonloucks/badges-ts": "^1.4.0",
|
|
76
|
+
"@types/node": "^25.3.0",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
78
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
79
|
+
"eslint": "^10.0.0",
|
|
79
80
|
"tsx": "^4.21.0",
|
|
80
81
|
"typedoc": "^0.28.17",
|
|
81
82
|
"typescript": "^5.9.3"
|
package/version.js
CHANGED