diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 311ebce..b810e84 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/setup-node@v1 with: - node-version: "14.x" + node-version: "20.x" - name: Format run: | npm ci diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07ca5a0..ee7dbdf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/setup-node@v1 with: - node-version: "14.x" + node-version: "20.x" - name: Run tests run: | diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..6de89a8 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 20.0.0 diff --git a/demo/vite-ts-demo/README.md b/demo/vite-ts-demo/README.md index e6cd94f..a45e2a0 100644 --- a/demo/vite-ts-demo/README.md +++ b/demo/vite-ts-demo/README.md @@ -42,6 +42,6 @@ If you have state that's important to retain within a component, consider creati ```ts // store.ts // An extremely simple external store -import { writable } from 'svelte/store' -export default writable(0) +import { writable } from "svelte/store"; +export default writable(0); ``` diff --git a/demo/vite-ts-demo/svelte.config.js b/demo/vite-ts-demo/svelte.config.js index b0683fd..de2ddd6 100644 --- a/demo/vite-ts-demo/svelte.config.js +++ b/demo/vite-ts-demo/svelte.config.js @@ -1,7 +1,7 @@ -import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; export default { // Consult https://svelte.dev/docs#compile-time-svelte-preprocess // for more information about preprocessors preprocess: vitePreprocess(), -} +}; diff --git a/demo/vite-ts-demo/vite.config.ts b/demo/vite-ts-demo/vite.config.ts index d701969..5ac8ecf 100644 --- a/demo/vite-ts-demo/vite.config.ts +++ b/demo/vite-ts-demo/vite.config.ts @@ -1,7 +1,7 @@ -import { defineConfig } from 'vite' -import { svelte } from '@sveltejs/vite-plugin-svelte' +import { defineConfig } from "vite"; +import { svelte } from "@sveltejs/vite-plugin-svelte"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [svelte()], -}) +});