|
4 | 4 | "version": "1.0.0", |
5 | 5 | "packageManager": "pnpm@10.8.1", |
6 | 6 | "description": "<description>", |
| 7 | + "author": "dvcol", |
| 8 | + "license": "MIT", |
7 | 9 | "homepage": "https://github.com/dvcol/typescript-lib-template", |
| 10 | + "repository": { |
| 11 | + "type": "git", |
| 12 | + "url": "https://github.com/dvcol/typescript-lib-template.git" |
| 13 | + }, |
8 | 14 | "bugs": "https://github.com/dvcol/typescript-lib-template/issues", |
9 | 15 | "keywords": [ |
10 | 16 | "typescript", |
11 | 17 | "library", |
12 | 18 | "typescript-lib-template" |
13 | 19 | ], |
14 | | - "license": "MIT", |
15 | | - "author": "dvcol", |
16 | | - "repository": { |
17 | | - "type": "git", |
18 | | - "url": "https://github.com/dvcol/typescript-lib-template.git" |
19 | | - }, |
20 | | - "engines": { |
21 | | - "node": ">=20", |
22 | | - "pnpm": ">= 8" |
23 | | - }, |
24 | | - "main": "./dist/index.cjs", |
25 | | - "module": "./dist/index.js", |
26 | | - "types": "./dist/index.d.ts", |
27 | 20 | "exports": { |
28 | 21 | ".": { |
29 | 22 | "import.types": "./dist/index.d.ts", |
30 | 23 | "require.types": "./dist/index.d.cts", |
31 | | - "require": "./dist/index.cjs", |
32 | | - "import": "./dist/index.js" |
| 24 | + "import": "./dist/index.js", |
| 25 | + "require": "./dist/index.cjs" |
33 | 26 | } |
34 | 27 | }, |
| 28 | + "main": "./dist/index.cjs", |
| 29 | + "module": "./dist/index.js", |
| 30 | + "types": "./dist/index.d.ts", |
35 | 31 | "files": [ |
36 | 32 | "*.md", |
37 | 33 | "LICENSE", |
38 | 34 | "dist" |
39 | 35 | ], |
| 36 | + "engines": { |
| 37 | + "node": ">=20", |
| 38 | + "pnpm": ">= 8" |
| 39 | + }, |
40 | 40 | "scripts": { |
41 | 41 | "prepare": "husky", |
42 | 42 | "build": "tsup && publint", |
43 | 43 | "watch": "npm run build -- --watch lib", |
44 | | - "lint": "eslint lib", |
45 | | - "lint:fix": "eslint lib --fix", |
| 44 | + "lint": "eslint .", |
| 45 | + "lint:fix": "eslint . --fix", |
46 | 46 | "lint:package": "publint", |
47 | 47 | "test:unit": "vitest --run --coverage", |
48 | 48 | "test:watch": "vitest", |
|
55 | 55 | "devDependencies": { |
56 | 56 | "@commitlint/cli": "^19.8.0", |
57 | 57 | "@commitlint/config-conventional": "^19.8.0", |
58 | | - "@dvcol/eslint-plugin-presets": "^1.3.11", |
59 | | - "@typescript-eslint/eslint-plugin": "^7.18.0", |
60 | | - "@typescript-eslint/parser": "^7.18.0", |
61 | | - "@vitest/coverage-v8": "^3.1.1", |
62 | | - "eslint": "^8.57.0", |
63 | | - "eslint-config-airbnb-base": "^15.0.0", |
64 | | - "eslint-config-prettier": "^9.1.0", |
65 | | - "eslint-plugin-eslint-comments": "^3.2.0", |
66 | | - "eslint-plugin-import": "^2.29.1", |
67 | | - "eslint-plugin-jsonc": "^2.16.0", |
68 | | - "eslint-plugin-markdown": "^3.0.1", |
69 | | - "eslint-plugin-prettier": "^5.2.1", |
70 | | - "eslint-plugin-vitest": "^0.4.1", |
71 | | - "eslint-plugin-yml": "^1.14.0", |
| 58 | + "@dvcol/eslint-config": "^1.6.0", |
| 59 | + "@vitest/coverage-v8": "^3.1.2", |
| 60 | + "eslint": "^9.25.1", |
72 | 61 | "extract-changelog-release": "^1.0.2", |
73 | 62 | "husky": "^9.1.7", |
74 | | - "jsonc-eslint-parser": "^2.4.0", |
75 | 63 | "lint-staged": "^15.5.1", |
76 | 64 | "prettier": "^3.5.3", |
77 | 65 | "publint": "^0.3.12", |
|
81 | 69 | "vitest": "^3.1.1" |
82 | 70 | }, |
83 | 71 | "lint-staged": { |
84 | | - "*.{js,jsx,ts,tsx,vue,svelte,json,md}": [ |
| 72 | + "*.{js,cjs,mjs,jsx,ts,tsx,vue,svelte,json,md,yml,html,md,svg,xml}": [ |
85 | 73 | "eslint --fix" |
86 | 74 | ] |
87 | 75 | } |
|
0 commit comments