Skip to content

Commit 07ce0e4

Browse files
chore: clean up deps & add comments to knip (#849)
1 parent 9b356e7 commit 07ce0e4

File tree

5 files changed

+62
-58
lines changed

5 files changed

+62
-58
lines changed

knip.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

knip.ts

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import type { KnipConfig } from 'knip'
2+
3+
const config: KnipConfig = {
4+
workspaces: {
5+
'.': {
6+
entry: [
7+
'app/app.vue!',
8+
'app/error.vue!',
9+
'app/pages/**/*.vue!',
10+
'app/components/**/*.vue!',
11+
'app/composables/**/*.ts!',
12+
'app/middleware/**/*.ts!',
13+
'app/plugins/**/*.ts!',
14+
'app/utils/**/*.ts!',
15+
'server/**/*.ts!',
16+
'modules/**/*.ts!',
17+
'config/**/*.ts!',
18+
'lunaria/**/*.ts!',
19+
'shared/**/*.ts!',
20+
'i18n/**/*.ts',
21+
'lunaria.config.ts',
22+
'pwa-assets.config.ts',
23+
'.lighthouserc.cjs',
24+
'lighthouse-setup.cjs',
25+
'uno-preset-rtl.ts!',
26+
'scripts/**/*.ts',
27+
],
28+
project: ['**/*.{ts,vue,cjs,mjs}'],
29+
ignoreDependencies: [
30+
'@iconify-json/*',
31+
'@vercel/kv',
32+
'@voidzero-dev/vite-plus-core',
33+
'vite-plus!',
34+
'h3',
35+
/** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */
36+
'unplugin-vue-router',
37+
'vite-plugin-pwa',
38+
39+
/** Some components import types from here, but installing it directly could lead to a version mismatch */
40+
'vue-router',
41+
],
42+
ignoreUnresolved: ['#components', '#oauth/config'],
43+
},
44+
'cli': {
45+
project: ['src/**/*.ts!'],
46+
},
47+
'docs': {
48+
entry: ['app/**/*.{ts,vue}'],
49+
ignoreDependencies: ['docus', 'better-sqlite3', 'nuxt!'],
50+
},
51+
},
52+
}
53+
54+
export default config

lighthouse-setup.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* If not set, defaults to 'dark'.
77
*/
88

9-
/** @param {import('puppeteer').Browser} browser */
109
module.exports = async function setup(browser, { url }) {
1110
const colorMode = process.env.LIGHTHOUSE_COLOR_MODE || 'dark'
1211
const page = await browser.newPage()

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"@iconify-json/solar": "1.2.5",
5050
"@iconify-json/svg-spinners": "1.2.4",
5151
"@iconify-json/vscode-icons": "1.2.40",
52-
"@intlify/core-base": "11.2.8",
5352
"@intlify/shared": "11.2.8",
5453
"@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@f07e1a3",
5554
"@nuxt/a11y": "1.0.0-alpha.1",
@@ -73,6 +72,7 @@
7372
"@vueuse/nuxt": "14.2.0",
7473
"@vueuse/router": "^14.2.0",
7574
"defu": "6.1.4",
75+
"fast-npm-meta": "1.0.0",
7676
"focus-trap": "^7.8.0",
7777
"marked": "17.0.1",
7878
"module-replacements": "2.11.0",
@@ -98,6 +98,7 @@
9898
"vue-data-ui": "3.14.3"
9999
},
100100
"devDependencies": {
101+
"@intlify/core-base": "11.2.8",
101102
"@npm/types": "2.1.0",
102103
"@playwright/test": "1.58.1",
103104
"@types/node": "24.10.9",
@@ -109,7 +110,6 @@
109110
"@vue/test-utils": "2.4.6",
110111
"axe-core": "4.11.1",
111112
"fast-check": "4.5.3",
112-
"fast-npm-meta": "1.0.0",
113113
"knip": "5.83.0",
114114
"lint-staged": "16.2.7",
115115
"oxfmt": "0.27.0",

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)