@sveltejs/kit 1.0.0-next.400 → 1.0.0-next.401
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/cli.js +7 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ function handle_error(e) {
|
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
22
|
+
const prog = sade('svelte-kit').version('1.0.0-next.401');
|
|
23
23
|
|
|
24
24
|
prog
|
|
25
25
|
.command('package')
|
|
@@ -55,16 +55,17 @@ prog
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
if (event === 'postinstall' && process.env.INIT_CWD) {
|
|
59
|
+
process.chdir(process.env.INIT_CWD);
|
|
60
|
+
}
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
console.warn(`Missing ${svelte_config_file} — skipping`);
|
|
62
|
+
if (!fs__default.existsSync('svelte.config.js')) {
|
|
63
|
+
console.warn(`Missing ${path__default.resolve('svelte.config.js')} — skipping`);
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
try {
|
|
67
|
-
const config = await load_config(
|
|
68
|
+
const config = await load_config();
|
|
68
69
|
const sync = await import('./chunks/sync.js').then(function (n) { return n.f; });
|
|
69
70
|
sync.all(config, mode);
|
|
70
71
|
} catch (error) {
|