@sveltejs/kit 1.20.3 → 1.20.4
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/postinstall.js +5 -5
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import glob from 'tiny-glob/sync.js';
|
|
4
3
|
import { load_config } from './src/core/config/index.js';
|
|
4
|
+
import { list_files } from './src/core/utils.js';
|
|
5
5
|
import * as sync from './src/core/sync/sync.js';
|
|
6
6
|
|
|
7
7
|
try {
|
|
@@ -18,7 +18,7 @@ try {
|
|
|
18
18
|
const packages = Array.isArray(pkg.workspaces) ? pkg.workspaces : pkg.workspaces.packages;
|
|
19
19
|
|
|
20
20
|
for (const directory of packages) {
|
|
21
|
-
directories.push(...
|
|
21
|
+
directories.push(...list_files(directory).map((dir) => path.resolve(cwd, dir)));
|
|
22
22
|
}
|
|
23
23
|
} else {
|
|
24
24
|
directories.push(cwd);
|
|
@@ -37,11 +37,11 @@ try {
|
|
|
37
37
|
const config = await load_config();
|
|
38
38
|
await sync.all(config, 'development');
|
|
39
39
|
} catch (error) {
|
|
40
|
-
console.
|
|
41
|
-
console.
|
|
40
|
+
console.error('Error while trying to sync SvelteKit config');
|
|
41
|
+
console.error(error);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
} catch (error) {
|
|
46
|
-
console.error(error
|
|
46
|
+
console.error(error);
|
|
47
47
|
}
|