@sveltejs/kit 2.3.4 → 2.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "The fastest way to build Svelte apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,4 +1,5 @@
1
- import { existsSync, statSync, createReadStream, createWriteStream } from 'node:fs';
1
+ import colors from 'kleur';
2
+ import { createReadStream, createWriteStream, existsSync, statSync } from 'node:fs';
2
3
  import { extname, resolve } from 'node:path';
3
4
  import { pipeline } from 'node:stream';
4
5
  import { promisify } from 'node:util';
@@ -153,6 +154,16 @@ export function create_builder({
153
154
  env: { ...env.private, ...env.public }
154
155
  });
155
156
 
157
+ if (existsSync(dest)) {
158
+ console.log(
159
+ colors
160
+ .bold()
161
+ .yellow(
162
+ `Overwriting ${dest} with fallback page. Consider using a different name for the fallback.`
163
+ )
164
+ );
165
+ }
166
+
156
167
  write(dest, fallback);
157
168
  },
158
169
 
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.3.4';
4
+ export const VERSION = '2.3.5';