这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions examples/with-svelte/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "svelte-package --watch --input=src",
"build": "svelte-package --input=src",
"dev": "svelte-kit sync && svelte-package --watch --input=src",
"build": "svelte-kit sync && svelte-package --input=src",
"lint": "eslint .",
"check-types": "svelte-check --tsconfig ./tsconfig.json"
},
Expand All @@ -31,6 +31,7 @@
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@sveltejs/kit": "^2.20.0",
"@sveltejs/package": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^5.0.0",
"eslint": "^9.25.0",
Expand Down
10 changes: 10 additions & 0 deletions examples/with-svelte/packages/ui/svelte.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess()
};

export default config;
15 changes: 5 additions & 10 deletions examples/with-svelte/packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"extends": "@repo/typescript-config/svelte.json",
"extends": ["@repo/typescript-config/svelte.json", "./.svelte-kit/tsconfig.json"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.svelte-kit only gets generated after a build is run so running check-types before building will result in failure

"compilerOptions": {
"declaration": true,
"declarationMap": true,
"allowArbitraryExtensions": true
},
"include": [
"src"
],
"exclude": [
"node_modules",
"dist",
".svelte-kit"
]
}
"include": ["dist", "./src/**/*.svelte", "./src/**/*.ts"],
"exclude": ["node_modules", ".svelte-kit"]
}
3 changes: 3 additions & 0 deletions examples/with-svelte/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading