[READ-ONLY] a fast, modern browser for the npm registry

chore: clean up deps & add comments to knip (#849)

authored by

Marcus Blättermann and committed by
GitHub
07ce0e40 9b356e78

+62 -58
-49
knip.json
··· 1 - { 2 - "$schema": "https://unpkg.com/knip@5/schema.json", 3 - "workspaces": { 4 - ".": { 5 - "entry": [ 6 - "app/app.vue!", 7 - "app/error.vue!", 8 - "app/pages/**/*.vue!", 9 - "app/components/**/*.vue!", 10 - "app/composables/**/*.ts!", 11 - "app/middleware/**/*.ts!", 12 - "app/plugins/**/*.ts!", 13 - "app/utils/**/*.ts!", 14 - "server/**/*.ts!", 15 - "modules/**/*.ts!", 16 - "config/**/*.ts!", 17 - "lunaria/**/*.ts!", 18 - "shared/**/*.ts!", 19 - "i18n/**/*.ts", 20 - "lunaria.config.ts", 21 - "pwa-assets.config.ts", 22 - ".lighthouserc.cjs", 23 - "lighthouse-setup.cjs", 24 - "uno-preset-rtl.ts!", 25 - "scripts/**/*.ts" 26 - ], 27 - "project": ["**/*.{ts,vue,cjs,mjs}"], 28 - "ignoreDependencies": [ 29 - "@iconify-json/*", 30 - "@vercel/kv", 31 - "@voidzero-dev/vite-plus-core", 32 - "vite-plus!", 33 - "h3", 34 - "puppeteer", 35 - "unplugin-vue-router", 36 - "vite-plugin-pwa", 37 - "vue-router" 38 - ], 39 - "ignoreUnresolved": ["#components", "#oauth/config"] 40 - }, 41 - "cli": { 42 - "project": ["src/**/*.ts!"] 43 - }, 44 - "docs": { 45 - "entry": ["app/**/*.{ts,vue}"], 46 - "ignoreDependencies": ["docus", "better-sqlite3", "nuxt!"] 47 - } 48 - } 49 - }
+54
knip.ts
··· 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
-1
lighthouse-setup.cjs
··· 6 6 * If not set, defaults to 'dark'. 7 7 */ 8 8 9 - /** @param {import('puppeteer').Browser} browser */ 10 9 module.exports = async function setup(browser, { url }) { 11 10 const colorMode = process.env.LIGHTHOUSE_COLOR_MODE || 'dark' 12 11 const page = await browser.newPage()
+2 -2
package.json
··· 49 49 "@iconify-json/solar": "1.2.5", 50 50 "@iconify-json/svg-spinners": "1.2.4", 51 51 "@iconify-json/vscode-icons": "1.2.40", 52 - "@intlify/core-base": "11.2.8", 53 52 "@intlify/shared": "11.2.8", 54 53 "@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@f07e1a3", 55 54 "@nuxt/a11y": "1.0.0-alpha.1", ··· 73 72 "@vueuse/nuxt": "14.2.0", 74 73 "@vueuse/router": "^14.2.0", 75 74 "defu": "6.1.4", 75 + "fast-npm-meta": "1.0.0", 76 76 "focus-trap": "^7.8.0", 77 77 "marked": "17.0.1", 78 78 "module-replacements": "2.11.0", ··· 98 98 "vue-data-ui": "3.14.3" 99 99 }, 100 100 "devDependencies": { 101 + "@intlify/core-base": "11.2.8", 101 102 "@npm/types": "2.1.0", 102 103 "@playwright/test": "1.58.1", 103 104 "@types/node": "24.10.9", ··· 109 110 "@vue/test-utils": "2.4.6", 110 111 "axe-core": "4.11.1", 111 112 "fast-check": "4.5.3", 112 - "fast-npm-meta": "1.0.0", 113 113 "knip": "5.83.0", 114 114 "lint-staged": "16.2.7", 115 115 "oxfmt": "0.27.0",
+6 -6
pnpm-lock.yaml
··· 53 53 '@iconify-json/vscode-icons': 54 54 specifier: 1.2.40 55 55 version: 1.2.40 56 - '@intlify/core-base': 57 - specifier: 11.2.8 58 - version: 11.2.8 59 56 '@intlify/shared': 60 57 specifier: 11.2.8 61 58 version: 11.2.8 ··· 125 122 defu: 126 123 specifier: 6.1.4 127 124 version: 6.1.4 125 + fast-npm-meta: 126 + specifier: 1.0.0 127 + version: 1.0.0 128 128 focus-trap: 129 129 specifier: ^7.8.0 130 130 version: 7.8.0 ··· 195 195 specifier: 3.14.3 196 196 version: 3.14.3(vue@3.5.27(typescript@5.9.3)) 197 197 devDependencies: 198 + '@intlify/core-base': 199 + specifier: 11.2.8 200 + version: 11.2.8 198 201 '@npm/types': 199 202 specifier: 2.1.0 200 203 version: 2.1.0 ··· 228 231 fast-check: 229 232 specifier: 4.5.3 230 233 version: 4.5.3 231 - fast-npm-meta: 232 - specifier: 1.0.0 233 - version: 1.0.0 234 234 knip: 235 235 specifier: 5.83.0 236 236 version: 5.83.0(@types/node@24.10.9)(typescript@5.9.3)