Skip to content

Commit

Permalink
build: switch back to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Sep 18, 2023
1 parent b101e1c commit 491756e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"devDependencies": {
"@playwright/test": "1.37.1",
"@sveltejs/adapter-auto": "2.1.0",
"@sveltejs/adapter-node": "1.3.1",
"@sveltejs/adapter-vercel": "3.0.3",
"@sveltejs/kit": "1.25.0",
"@tailwindcss/container-queries": "0.1.1",
"@vercel/analytics": "1.0.2",
Expand Down
2 changes: 2 additions & 0 deletions apps/offline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"@skeletonlabs/skeleton": "2.1.0",
"@skeletonlabs/tw-plugin": "0.2.0",
"@sveltejs/adapter-auto": "2.1.0",
"@sveltejs/adapter-node": "1.3.1",
"@sveltejs/adapter-vercel": "3.0.3",
"@sveltejs/kit": "1.25.0",
"@tailwindcss/forms": "0.5.6",
"@tailwindcss/typography": "0.5.10",
Expand Down
12 changes: 10 additions & 2 deletions apps/offline/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import adapter from '@sveltejs/adapter-auto';
import adapterNode from '@sveltejs/adapter-node';
import adapterAuto from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -15,7 +16,14 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: process.env.VERCEL ? adapterAuto() : adapterNode(),
prerender: { crawl: false }, // FIXME: remove after all links are corrected.
output: {
preloadStrategy: 'preload-mjs'
},
version: {
name: process.env.npm_package_version
}
}
};
export default config;
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 491756e

Please sign in to comment.