|
2 | 2 | "name": "vitest-when",
|
3 | 3 | "version": "0.1.2",
|
4 | 4 | "description": "Stub behaviors of Vitest mock functions with a small, readable API.",
|
| 5 | + "keywords": [ |
| 6 | + "tdd", |
| 7 | + "testing", |
| 8 | + "mocking" |
| 9 | + ], |
| 10 | + "homepage": "https://github.com/mcous/vitest-when#readme", |
| 11 | + "bugs": { |
| 12 | + "url": "https://github.com/mcous/vitest-when/issues" |
| 13 | + }, |
| 14 | + "repository": { |
| 15 | + "type": "git", |
| 16 | + "url": "https://github.com/mcous/vitest-when.git" |
| 17 | + }, |
| 18 | + "license": "MIT", |
| 19 | + "author": "Michael Cousins <[email protected]> (https://mike.cousins.io)", |
5 | 20 | "type": "module",
|
6 | 21 | "exports": {
|
7 | 22 | ".": {
|
|
15 | 30 | "dist",
|
16 | 31 | "src"
|
17 | 32 | ],
|
18 |
| - "publishConfig": { |
19 |
| - "access": "public", |
20 |
| - "provenance": true |
21 |
| - }, |
22 |
| - "packageManager": "[email protected]", |
23 |
| - "author": "Michael Cousins <[email protected]> (https://mike.cousins.io)", |
24 |
| - "license": "MIT", |
25 |
| - "repository": { |
26 |
| - "type": "git", |
27 |
| - "url": "https://github.com/mcous/vitest-when.git" |
28 |
| - }, |
29 |
| - "bugs": { |
30 |
| - "url": "https://github.com/mcous/vitest-when/issues" |
31 |
| - }, |
32 |
| - "homepage": "https://github.com/mcous/vitest-when#readme", |
33 |
| - "keywords": [ |
34 |
| - "tdd", |
35 |
| - "testing", |
36 |
| - "mocking" |
37 |
| - ], |
38 | 33 | "scripts": {
|
| 34 | + "_eslint": "eslint --ignore-path .lintignore \"**/*.ts\"", |
| 35 | + "_prettier": "prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml|md)\"", |
39 | 36 | "all": "concurrently -g pnpm:coverage pnpm:build pnpm:check:*",
|
40 |
| - "build-and-check": "concurrently -g pnpm:build pnpm:check:*", |
41 | 37 | "build": "tsup --clean --sourcemap --dts --format esm,cjs --target node14 src/vitest-when.ts",
|
42 |
| - "test": "vitest", |
43 |
| - "coverage": "vitest run --coverage", |
| 38 | + "build-and-check": "concurrently -g pnpm:build pnpm:check:*", |
44 | 39 | "check:format": "pnpm run _prettier --check",
|
45 | 40 | "check:lint": "pnpm run _eslint",
|
46 | 41 | "check:types": "vitest typecheck --run",
|
| 42 | + "coverage": "vitest run --coverage", |
47 | 43 | "format": "pnpm run _prettier --write && pnpm run _eslint --fix",
|
48 |
| - "_eslint": "eslint --ignore-path .lintignore \"**/*.ts\"", |
49 |
| - "_prettier": "prettier --ignore-path .lintignore \"**/*.@(ts|json|yaml)\"" |
| 44 | + "test": "vitest" |
50 | 45 | },
|
| 46 | + "prettier": "@mcous/prettier-config", |
51 | 47 | "eslintConfig": {
|
52 |
| - "extends": "@viamrobotics/eslint-config", |
53 | 48 | "parserOptions": {
|
54 | 49 | "project": "./tsconfig.json"
|
55 | 50 | },
|
56 |
| - "settings": { |
57 |
| - "import/resolver": { |
58 |
| - "typescript": { |
59 |
| - "project": "./tsconfig.json" |
60 |
| - } |
61 |
| - } |
62 |
| - } |
63 |
| - }, |
64 |
| - "prettier": "@viamrobotics/prettier-config", |
65 |
| - "peerDependencies": { |
66 |
| - "vitest": ">=0.31.0 <1.0.0", |
67 |
| - "@vitest/expect": ">=0.31.0 <1.0.0" |
| 51 | + "extends": "@mcous/eslint-config" |
68 | 52 | },
|
69 | 53 | "devDependencies": {
|
70 |
| - "@typescript-eslint/eslint-plugin": "^5.59.5", |
71 |
| - "@typescript-eslint/parser": "^5.59.5", |
72 |
| - "@viamrobotics/eslint-config": "^0.0.4", |
73 |
| - "@viamrobotics/prettier-config": "^0.0.1", |
74 |
| - "@viamrobotics/typescript-config": "^0.0.3", |
| 54 | + "@mcous/eslint-config": "0.3.3", |
| 55 | + "@mcous/prettier-config": "0.3.0", |
| 56 | + "@mcous/typescript-config": "0.2.1", |
| 57 | + "@typescript-eslint/eslint-plugin": "6.7.4", |
| 58 | + "@typescript-eslint/parser": "6.7.4", |
75 | 59 | "@vitest/coverage-istanbul": "^0.31.0",
|
76 | 60 | "@vitest/expect": "^0.31.0",
|
77 | 61 | "concurrently": "^8.0.1",
|
78 |
| - "eslint": "^8.40.0", |
79 |
| - "eslint-config-prettier": "^8.8.0", |
80 |
| - "eslint-import-resolver-typescript": "^3.5.5", |
81 |
| - "eslint-plugin-import": "^2.27.5", |
82 |
| - "eslint-plugin-sonarjs": "^0.19.0", |
83 |
| - "eslint-plugin-unicorn": "^46.0.1", |
84 |
| - "prettier": "^2.8.8", |
| 62 | + "eslint": "8.51.0", |
| 63 | + "eslint-config-prettier": "9.0.0", |
| 64 | + "eslint-plugin-promise": "6.1.1", |
| 65 | + "eslint-plugin-sonarjs": "0.21.0", |
| 66 | + "eslint-plugin-unicorn": "48.0.1", |
| 67 | + "prettier": "3.0.3", |
85 | 68 | "tsup": "^6.7.0",
|
86 |
| - "typescript": "^5.0.4", |
| 69 | + "typescript": "5.2.2", |
87 | 70 | "vitest": "^0.31.0"
|
| 71 | + }, |
| 72 | + "peerDependencies": { |
| 73 | + "@vitest/expect": ">=0.31.0 <1.0.0", |
| 74 | + "vitest": ">=0.31.0 <1.0.0" |
| 75 | + }, |
| 76 | + "peerDependenciesMeta": { |
| 77 | + "@vitest/expect": { |
| 78 | + "optional": true |
| 79 | + } |
| 80 | + }, |
| 81 | + "packageManager": "[email protected]+sha256.d713a5750e41c3660d1e090608c7f607ad00d1dd5ba9b6552b5f390bf37924e9", |
| 82 | + "publishConfig": { |
| 83 | + "access": "public", |
| 84 | + "provenance": true |
88 | 85 | }
|
89 | 86 | }
|
0 commit comments