|
1 | 1 | {
|
2 | 2 | "name": "vue3-oop",
|
3 | 3 | "version": "1.0.16",
|
4 |
| - "main": "dist/vue3-oop.js", |
5 |
| - "module": "dist/vue3-oop.mjs", |
6 |
| - "types": "types/index.d.ts", |
7 |
| - "scripts": { |
8 |
| - "dev": "vite", |
9 |
| - "build": "vite build", |
10 |
| - "serve": "vite preview", |
11 |
| - "type:check": "tsc --noEmit --skipLibCheck", |
12 |
| - "lint": "eslint --fix .", |
13 |
| - "format": "prettier --write '**/*.{ts,tsx,js,vue,css,scss,html,json}'", |
14 |
| - "release": "pnpm build && release-it", |
15 |
| - "docs:dev": "vitepress dev docs", |
16 |
| - "docs:build": "vitepress build docs", |
17 |
| - "docs:serve": "vitepress serve docs", |
18 |
| - "test": "vitest", |
19 |
| - "coverage": "vitest --coverage" |
| 4 | + "packageManager": "[email protected]", |
| 5 | + "engines": { |
| 6 | + "pnpm": ">=9.0" |
20 | 7 | },
|
21 |
| - "files": [ |
22 |
| - "dist", |
23 |
| - "types", |
24 |
| - "package.json" |
25 |
| - ], |
| 8 | + "description": "vue3-oop take class component and di into vue", |
26 | 9 | "author": {
|
27 | 10 | "name": "agileago",
|
28 | 11 |
|
|
40 | 23 | "type": "git",
|
41 | 24 | "url": "git+https://github.com/agileago/vue3-oop.git"
|
42 | 25 | },
|
43 |
| - "homepage": "https://agileago.github.io/vue3-oop", |
| 26 | + "homepage": "https://agileago.github.io/vue3-oop#readme", |
| 27 | + "bugs": { |
| 28 | + "url": "https://github.com/agileago/vue3-oop/issues" |
| 29 | + }, |
44 | 30 | "license": "MIT",
|
45 |
| - "devDependencies": { |
46 |
| - "@abraham/reflection": "^0.12.0", |
47 |
| - "@algolia/client-search": "^4.19.1", |
48 |
| - "@commitlint/cli": "^17.7.1", |
49 |
| - "@commitlint/config-conventional": "^17.7.0", |
50 |
| - "@release-it/conventional-changelog": "^7.0.0", |
51 |
| - "@types/lodash-es": "^4.17.8", |
52 |
| - "@types/markdown-it": "^13.0.1", |
53 |
| - "@types/node": "^20.5.7", |
54 |
| - "@types/prettier": "^3.0.0", |
55 |
| - "@typescript-eslint/eslint-plugin": "^6.5.0", |
56 |
| - "@typescript-eslint/parser": "^6.5.0", |
57 |
| - "@vitejs/plugin-vue": "^4.3.4", |
58 |
| - "@vitest/coverage-c8": "^0.33.0", |
59 |
| - "@vitest/ui": "^0.34.3", |
60 |
| - "@vue/test-utils": "2.4.1", |
61 |
| - "@vue3-oop/plugin-vue-jsx": "^1.4.6", |
62 |
| - "ant-design-vue": "^4.0.1", |
63 |
| - "autobind-decorator": "^2.4.0", |
64 |
| - "c8": "^8.0.1", |
65 |
| - "eslint": "^8.48.0", |
66 |
| - "eslint-config-prettier": "^9.0.0", |
67 |
| - "eslint-plugin-prettier": "^5.0.0", |
68 |
| - "happy-dom": "^10.11.1", |
69 |
| - "injection-js": "^2.4.0", |
70 |
| - "lint-staged": "^14.0.1", |
71 |
| - "lodash-es": "^4.17.21", |
72 |
| - "prettier": "^3.0.2", |
73 |
| - "release-it": "^16.3.0", |
74 |
| - "rimraf": "^5.0.1", |
75 |
| - "sass": "^1.66.1", |
76 |
| - "simple-git-hooks": "^2.9.0", |
77 |
| - "tslib": "^2.6.2", |
78 |
| - "typescript": "^5.2.2", |
79 |
| - "vite": "^4.4.9", |
80 |
| - "vite-plugin-dts": "^3.5.3", |
81 |
| - "vite-tsconfig-paths": "^4.2.0", |
82 |
| - "vitepress": "1.0.0-rc.10", |
83 |
| - "vitest": "^0.34.3", |
84 |
| - "vue": "^3.5.13", |
85 |
| - "vue-router": "^4.2.4" |
| 31 | + "type": "module", |
| 32 | + "exports": { |
| 33 | + ".": { |
| 34 | + "types": "./dist/index.d.ts", |
| 35 | + "import": "./dist/index.js", |
| 36 | + "require": "./dist/index.cjs" |
| 37 | + } |
| 38 | + }, |
| 39 | + "main": "dist/index.cjs", |
| 40 | + "module": "dist/index.js", |
| 41 | + "types": "dist/index.d.ts", |
| 42 | + "files": [ |
| 43 | + "dist" |
| 44 | + ], |
| 45 | + "publishConfig": { |
| 46 | + "registry": "https://registry.npmjs.org", |
| 47 | + "access": "public" |
| 48 | + }, |
| 49 | + "scripts": { |
| 50 | + "build": "tsup src/index.ts --format esm,cjs --out-dir=lib --dts --clean", |
| 51 | + "dev": "tsup src/index.ts --format esm --out-dir=lib --watch --dts", |
| 52 | + "typecheck": "tsc --noEmit", |
| 53 | + "lint": "eslint --fix .", |
| 54 | + "format": "prettier --write .", |
| 55 | + "release": "", |
| 56 | + "prepublishOnly": "pnpm run build", |
| 57 | + "docs:dev": "vitepress dev docs", |
| 58 | + "docs:build": "vitepress build docs", |
| 59 | + "docs:serve": "vitepress serve docs", |
| 60 | + "test": "vitest", |
| 61 | + "postinstall": "simple-git-hooks" |
86 | 62 | },
|
87 | 63 | "commitlint": {
|
88 | 64 | "extends": [
|
89 | 65 | "@commitlint/config-conventional"
|
90 | 66 | ]
|
91 | 67 | },
|
92 | 68 | "simple-git-hooks": {
|
93 |
| - "pre-commit": "pnpm exec lint-staged", |
94 |
| - "commit-msg": "pnpm exec commitlint -e \"$@\"" |
| 69 | + "pre-commit": "enpm exec lint-staged --allow-empty --concurrent false", |
| 70 | + "commit-msg": "pnpm exec commitlint -e $1" |
95 | 71 | },
|
96 | 72 | "lint-staged": {
|
97 |
| - "*.{ts,tsx}": [ |
98 |
| - "eslint --fix", |
99 |
| - "prettier --write" |
100 |
| - ], |
101 |
| - "*.{css,scss,html,json,js}": [ |
102 |
| - "prettier --write" |
103 |
| - ] |
| 73 | + "*.{ts,tsx}": "eslint --fix", |
| 74 | + "*.{vue,ts,tsx,js,jsx,less,css}": "prettier --write" |
104 | 75 | },
|
105 |
| - "publishConfig": { |
106 |
| - "registry": "https://registry.npmjs.org", |
107 |
| - "access": "public" |
| 76 | + "devDependencies": { |
| 77 | + "@commitlint/cli": "^19.8.0", |
| 78 | + "@commitlint/config-conventional": "^19.8.0", |
| 79 | + "eslint": "^9.23.0", |
| 80 | + "@configurajs/eslint": "^0.1.2", |
| 81 | + "prettier": "^3.5.3", |
| 82 | + "@configurajs/prettier": "^0.1.4", |
| 83 | + "simple-git-hooks": "^2.9.0", |
| 84 | + "lint-staged": "^14.0.1", |
| 85 | + |
| 86 | + "tslib": "^2.6.2", |
| 87 | + "typescript": "^5.8.2", |
| 88 | + "vue": "^3.5.13", |
| 89 | + "@abraham/reflection": "^0.12.0", |
| 90 | + "autobind-decorator": "^2.4.0", |
| 91 | + "injection-js": "^2.4.0", |
| 92 | + |
| 93 | + "tsup": "^8.4.0" |
108 | 94 | },
|
109 | 95 | "peerDependencies": {
|
110 | 96 | "injection-js": "*",
|
111 | 97 | "vue": "3"
|
112 |
| - }, |
113 |
| - "release-it": { |
114 |
| - "git": { |
115 |
| - "commitMessage": "chore(release): ${version}", |
116 |
| - "tagName": "v${version}" |
117 |
| - }, |
118 |
| - "plugins": { |
119 |
| - "@release-it/conventional-changelog": { |
120 |
| - "preset": "angular", |
121 |
| - "infile": "CHANGELOG.md", |
122 |
| - "ignoreRecommendedBump": true |
123 |
| - } |
124 |
| - }, |
125 |
| - "github": { |
126 |
| - "release": true, |
127 |
| - "web": true, |
128 |
| - "autoGenerate": true |
129 |
| - } |
130 | 98 | }
|
131 | 99 | }
|
0 commit comments