@sveltejs/kit 1.0.0-next.331 → 1.0.0-next.332
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/index.js +3 -2
- package/dist/cli.js +6 -6
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -415,7 +415,7 @@ function find_deps(node, deps) {
|
|
|
415
415
|
* @typedef {{
|
|
416
416
|
* cwd: string,
|
|
417
417
|
* port: number,
|
|
418
|
-
* host
|
|
418
|
+
* host?: string,
|
|
419
419
|
* https: boolean,
|
|
420
420
|
* config: import('types').ValidatedConfig
|
|
421
421
|
* }} Options
|
|
@@ -439,7 +439,8 @@ async function dev({ cwd, port, host, https, config }) {
|
|
|
439
439
|
path__default.resolve(cwd, 'node_modules'),
|
|
440
440
|
path__default.resolve(vite.searchForWorkspaceRoot(cwd), 'node_modules')
|
|
441
441
|
])
|
|
442
|
-
]
|
|
442
|
+
],
|
|
443
|
+
port: 3000
|
|
443
444
|
},
|
|
444
445
|
strictPort: true
|
|
445
446
|
}
|
package/dist/cli.js
CHANGED
|
@@ -870,15 +870,15 @@ 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.332');
|
|
874
874
|
|
|
875
875
|
prog
|
|
876
876
|
.command('dev')
|
|
877
877
|
.describe('Start a development server')
|
|
878
|
-
.option('-p, --port', 'Port'
|
|
879
|
-
.option('-o, --open', 'Open a browser tab'
|
|
880
|
-
.option('--host', 'Host (only use this on trusted networks)'
|
|
881
|
-
.option('--https', 'Use self-signed HTTPS certificate'
|
|
878
|
+
.option('-p, --port', 'Port')
|
|
879
|
+
.option('-o, --open', 'Open a browser tab')
|
|
880
|
+
.option('--host', 'Host (only use this on trusted networks)')
|
|
881
|
+
.option('--https', 'Use self-signed HTTPS certificate')
|
|
882
882
|
.option('-H', 'no longer supported, use --https instead') // TODO remove for 1.0
|
|
883
883
|
.action(async ({ port, host, https, open, H }) => {
|
|
884
884
|
try {
|
|
@@ -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.332'}\n`));
|
|
1053
1053
|
|
|
1054
1054
|
const protocol = https ? 'https:' : 'http:';
|
|
1055
1055
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|