@sveltejs/adapter-cloudflare
Advanced tools
Comparing version 4.4.1 to 4.5.0
@@ -1,2 +0,2 @@ | ||
import { writeFileSync } from 'node:fs'; | ||
import { existsSync, writeFileSync } from 'node:fs'; | ||
import * as path from 'node:path'; | ||
@@ -27,2 +27,8 @@ import { fileURLToPath } from 'node:url'; | ||
async adapt(builder) { | ||
if (existsSync('_routes.json')) { | ||
throw new Error( | ||
'Cloudflare routes should be configured in svelte.config.js rather than _routes.json' | ||
); | ||
} | ||
const files = fileURLToPath(new URL('./files', import.meta.url).href); | ||
@@ -29,0 +35,0 @@ const dest = builder.getBuildDirectory('cloudflare'); |
{ | ||
"name": "@sveltejs/adapter-cloudflare", | ||
"version": "4.4.1", | ||
"version": "4.5.0", | ||
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
"typescript": "^5.3.3", | ||
"@sveltejs/kit": "^2.5.11" | ||
"@sveltejs/kit": "^2.5.17" | ||
}, | ||
@@ -47,0 +47,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15106
365