Skip to content

Commit

Permalink
Fix knip, update exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jul 18, 2024
1 parent a0889ef commit c93bec4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion knip.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignore": [".pnpmfile.cjs"],
"ignore": [".pnpmfile.cjs", "scripts/typedoc-remove-prefix.js"],
"ignoreWorkspaces": ["examples/**", "integrations/**"],
"workspaces": {
"packages/query-codemods": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"dev": "pnpm run watch",
"prettier": "prettier --ignore-unknown '**/*'",
"prettier:write": "pnpm run prettier --write",
"docs:reference": "node scripts/reference-docs.js",
"cipublish": "node scripts/publish.js"
},
"nx": {
Expand Down
7 changes: 2 additions & 5 deletions scripts/reference-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,14 @@ const options = {
excludePrivate: true,
}

/** @type {Array<{name: string, entryPoints: Array<string>, tsconfig: string, outputDir: string, exclude: Array<string>}>} */
/** @type {Array<{name: string, entryPoints: Array<string>, tsconfig: string, outputDir: string, exclude?: Array<string>}>} */
const packages = [
{
name: 'svelte-query',
entryPoints: [resolve(__dirname, '../packages/svelte-query/src/index.ts')],
tsconfig: resolve(__dirname, '../packages/svelte-query/tsconfig.json'),
outputDir: resolve(__dirname, '../docs/framework/svelte/reference'),
exclude: [
'./packages/query-core/**/*',
'./packages/svelte-query/src/HydrationBoundary.svelte',
],
exclude: ['./packages/query-core/**/*'],
},
]

Expand Down

0 comments on commit c93bec4

Please sign in to comment.