@sveltejs/kit 1.0.0-next.323 → 1.0.0-next.326
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/dist/chunks/sync.js +12 -1
- package/dist/cli.js +4 -3
- package/package.json +1 -1
package/dist/chunks/sync.js
CHANGED
|
@@ -412,6 +412,10 @@ function trace(file, path, tree, extensions) {
|
|
|
412
412
|
|
|
413
413
|
let layout_id = base.includes('@') ? base.split('@')[1] : DEFAULT;
|
|
414
414
|
|
|
415
|
+
if (parts.findIndex((part) => part.indexOf('@') > -1) > -1) {
|
|
416
|
+
throw new Error(`Invalid route ${file} - named layouts are not allowed in directories`);
|
|
417
|
+
}
|
|
418
|
+
|
|
415
419
|
// walk up the tree, find which __layout and __error components
|
|
416
420
|
// apply to this page
|
|
417
421
|
// eslint-disable-next-line
|
|
@@ -811,7 +815,14 @@ function write_tsconfig(config) {
|
|
|
811
815
|
isolatedModules: true,
|
|
812
816
|
// TypeScript doesn't know about import usages in the template because it only sees the
|
|
813
817
|
// script of a Svelte file. Therefore preserve all value imports. Requires TS 4.5 or higher.
|
|
814
|
-
preserveValueImports: true
|
|
818
|
+
preserveValueImports: true,
|
|
819
|
+
|
|
820
|
+
// This is required for svelte-kit package to work as expected
|
|
821
|
+
// Can be overwritten
|
|
822
|
+
lib: ['esnext', 'DOM'],
|
|
823
|
+
moduleResolution: 'node',
|
|
824
|
+
module: 'esnext',
|
|
825
|
+
target: 'esnext'
|
|
815
826
|
},
|
|
816
827
|
include,
|
|
817
828
|
exclude: [config_relative('node_modules/**'), './**']
|
package/dist/cli.js
CHANGED
|
@@ -870,7 +870,7 @@ async function launch(port, https, base) {
|
|
|
870
870
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}${base}`);
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
873
|
+
const prog = sade('svelte-kit').version('1.0.0-next.326');
|
|
874
874
|
|
|
875
875
|
prog
|
|
876
876
|
.command('dev')
|
|
@@ -1049,7 +1049,7 @@ async function check_port(port) {
|
|
|
1049
1049
|
function welcome({ port, host, https, open, base, loose, allow, cwd }) {
|
|
1050
1050
|
if (open) launch(port, https, base);
|
|
1051
1051
|
|
|
1052
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1052
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.326'}\n`));
|
|
1053
1053
|
|
|
1054
1054
|
const protocol = https ? 'https:' : 'http:';
|
|
1055
1055
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|
|
@@ -1057,7 +1057,8 @@ function welcome({ port, host, https, open, base, loose, allow, cwd }) {
|
|
|
1057
1057
|
Object.values(networkInterfaces()).forEach((interfaces) => {
|
|
1058
1058
|
if (!interfaces) return;
|
|
1059
1059
|
interfaces.forEach((details) => {
|
|
1060
|
-
|
|
1060
|
+
// @ts-ignore node18 returns a number
|
|
1061
|
+
if (details.family !== 'IPv4' && details.family !== 4) return;
|
|
1061
1062
|
|
|
1062
1063
|
// prettier-ignore
|
|
1063
1064
|
if (details.internal) {
|