@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 +1 -1
- package/src/core/adapt/builder.js +12 -1
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
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