|
1 | 1 | {
|
2 | 2 | "name": "vue-global-config",
|
3 | 3 | "PascalCasedName": "VueGlobalConfig",
|
| 4 | + "type": "commonjs", |
4 | 5 | "version": "0.6.2",
|
5 | 6 | "private": false,
|
6 | 7 | "description": "Configure your Vue 2/3 components globally.",
|
|
9 | 10 | "url": "https://github.com/cloydlau"
|
10 | 11 | },
|
11 | 12 | "license": "MIT",
|
12 |
| - "repository": "https://github.com/cloydlau/vue-global-config", |
| 13 | + "repository": { |
| 14 | + "type": "git", |
| 15 | + "url": "git+https://github.com/cloydlau/vue-global-config.git" |
| 16 | + }, |
13 | 17 | "keywords": [
|
14 | 18 | "config",
|
15 | 19 | "configuration",
|
|
23 | 27 | ],
|
24 | 28 | "exports": {
|
25 | 29 | ".": {
|
26 |
| - "types": "./dist/vue-global-config.d.ts", |
27 |
| - "import": "./dist/vue-global-config.mjs", |
28 |
| - "require": "./dist/vue-global-config.umd.js" |
| 30 | + "import": { |
| 31 | + "types": "./dist/vue-global-config.d.mts", |
| 32 | + "default": "./dist/vue-global-config.mjs" |
| 33 | + }, |
| 34 | + "require": { |
| 35 | + "types": "./dist/vue-global-config.d.ts", |
| 36 | + "default": "./dist/vue-global-config.umd.js" |
| 37 | + } |
29 | 38 | },
|
30 | 39 | "./*": "./*"
|
31 | 40 | },
|
|
45 | 54 | "test:watch": "vitest",
|
46 | 55 | "test:coverage": "vitest run --coverage",
|
47 | 56 | "test:ui": "vitest --ui",
|
48 |
| - "build": "vite build", |
| 57 | + "typegen": "npx tsup --entry.vue-global-config src/index.ts --format esm,cjs --cjsInterop --clean --dts-only", |
| 58 | + "build": "vite build && pnpm typegen", |
| 59 | + "license-scan": "license-checker --summary --out ./depencency-licenses.txt", |
49 | 60 | "serve": "vite preview",
|
50 | 61 | "release": "esno ./scripts/release.mts",
|
| 62 | + "sync-to-cnpm": "npx cnpm sync && curl -L https://npmmirror.com/sync/vue-global-config", |
51 | 63 | "lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html",
|
52 | 64 | "lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html --fix",
|
53 | 65 | "preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
|
54 |
| - "postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks" |
| 66 | + "postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || (npx simple-git-hooks && pnpm license-scan)" |
55 | 67 | },
|
56 | 68 | "peerDependencies": {
|
57 | 69 | "@vue/composition-api": ">=1",
|
|
70 | 82 | "vue-demi": "^0.14.10"
|
71 | 83 | },
|
72 | 84 | "devDependencies": {
|
73 |
| - "@antfu/eslint-config": "^3.5.1", |
| 85 | + "@antfu/eslint-config": "^3.7.3", |
| 86 | + "@arethetypeswrong/cli": "^0.16.4", |
74 | 87 | "@commitlint/cli": "^19.5.0",
|
75 | 88 | "@commitlint/config-conventional": "^19.5.0",
|
76 | 89 | "@element-plus/icons-vue": "latest",
|
77 | 90 | "@types/lodash-es": "^4.17.12",
|
78 |
| - "@types/node": "^22.5.4", |
| 91 | + "@types/node": "^22.7.5", |
79 | 92 | "@vitejs/plugin-vue": "latest",
|
80 | 93 | "@vue/compiler-sfc": "latest",
|
81 | 94 | "@vue/test-utils": "latest",
|
82 | 95 | "case-police": "^0.7.0",
|
83 | 96 | "change-case": "^5.4.4",
|
| 97 | + "cnpm": "^9.4.0", |
84 | 98 | "cross-spawn": "^7.0.3",
|
85 |
| - "del": "^7.1.0", |
| 99 | + "del": "^8.0.0", |
86 | 100 | "element-plus": "latest",
|
87 | 101 | "eslint-plugin-format": "^0.1.2",
|
88 |
| - "esno": "^4.7.0", |
89 |
| - "faim": "^0.9.7", |
| 102 | + "esno": "^4.8.0", |
| 103 | + "faim": "^0.10.0", |
90 | 104 | "kolorist": "^1.8.0",
|
| 105 | + "license-checker": "^25.0.1", |
91 | 106 | "lint-staged": "^15.2.10",
|
92 | 107 | "lodash-es": "^4.17.21",
|
93 | 108 | "magicast": "^0.3.5",
|
94 | 109 | "only-allow": "^1.2.1",
|
95 | 110 | "open": "^10.1.0",
|
96 | 111 | "prompts": "^2.4.2",
|
| 112 | + "publint": "^0.2.11", |
97 | 113 | "rollup-plugin-visualizer": "^5.12.0",
|
98 | 114 | "semver": "^7.6.3",
|
99 | 115 | "simple-git-hooks": "^2.11.1",
|
100 |
| - "typescript": "^5.6.2", |
101 |
| - "unplugin-auto-import": "^0.18.2", |
| 116 | + "tsup": "^8.3.0", |
| 117 | + "typescript": "^5.6.3", |
| 118 | + "unplugin-auto-import": "^0.18.3", |
102 | 119 | "unplugin-vue-components": "^0.27.4",
|
103 |
| - "vite": "^5.4.4", |
104 |
| - "vite-plugin-dts": "^4.2.1", |
105 |
| - "vitepress": "^1.3.4", |
106 |
| - "vitest": "^2.0.5", |
| 120 | + "vite": "^5.4.8", |
| 121 | + "vitepress": "^1.4.0", |
| 122 | + "vitest": "^2.1.2", |
107 | 123 | "vue": "latest",
|
108 | 124 | "vue-global-config": "workspace:*"
|
109 | 125 | },
|
|
0 commit comments