Skip to content

Commit

Permalink
build: svelte-check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Apr 6, 2024
1 parent 00dc9ae commit 4c47b4d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
working-directory: ./packages/svelte-lexical
- run: pnpm build
working-directory: ./packages/svelte-lexical
- run: pnpm svelte-check
- run: pnpm check
working-directory: ./packages/svelte-lexical
- run: pnpm lint
working-directory: ./packages/svelte-lexical
Expand All @@ -45,7 +45,7 @@ jobs:
working-directory: ./demos/playground
- run: pnpm build
working-directory: ./demos/playground
- run: pnpm svelte-check
- run: pnpm check
working-directory: ./demos/playground
- run: pnpm lint
working-directory: ./demos/playground
Expand All @@ -56,7 +56,7 @@ jobs:
working-directory: ./demos/sveltekit
- run: pnpm build
working-directory: ./demos/sveltekit
- run: pnpm svelte-check
- run: pnpm check
working-directory: ./demos/sveltekit
- run: pnpm lint
working-directory: ./demos/sveltekit
Expand All @@ -65,7 +65,7 @@ jobs:
working-directory: ./demos/richtext-editor
- run: pnpm build
working-directory: ./demos/richtext-editor
- run: pnpm svelte-check
- run: pnpm check
working-directory: ./demos/richtext-editor
- run: pnpm lint
working-directory: ./demos/richtext-editor
Expand All @@ -76,7 +76,7 @@ jobs:
working-directory: ./demos/plaintext-editor
- run: pnpm build
working-directory: ./demos/plaintext-editor
- run: pnpm svelte-check
- run: pnpm check
working-directory: ./demos/plaintext-editor
- run: pnpm lint
working-directory: ./demos/plaintext-editor
Expand Down
3 changes: 2 additions & 1 deletion demos/plaintext-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "vite build",
"preview": "vite preview",
"lint": "eslint .",
"size": "pnpm build && size-limit"
"size": "pnpm build && size-limit",
"check": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings"
},
"devDependencies": {
"@size-limit/preset-app": "^8.2.6",
Expand Down
1 change: 1 addition & 0 deletions demos/plaintext-editor/src/PlainTextComposer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
const initialConfig = {
theme: PlaygroundEditorTheme,
namespace: 'Playground',
nodes: [],
onError: (error) => {
throw error;
Expand Down
2 changes: 1 addition & 1 deletion demos/richtext-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview",
"lint": "eslint .",
"size": "pnpm build && size-limit",
"svelte-check": "svelte-check --fail-on-warnings"
"check": "svelte-check --fail-on-warnings"
},
"devDependencies": {
"@size-limit/preset-app": "^8.2.6",
Expand Down
3 changes: 2 additions & 1 deletion demos/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint ."
"lint": "eslint .",
"check": "svelte-check --fail-on-warnings"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.1",
Expand Down

0 comments on commit 4c47b4d

Please sign in to comment.