silgi 0.20.38 → 0.20.39
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.mjs +1 -1
- package/dist/cli/dev.mjs +1 -0
- package/dist/cli/prepare.mjs +4 -4
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/dev.mjs
CHANGED
|
@@ -70,6 +70,7 @@ const dev = defineCommand({
|
|
|
70
70
|
rawArgs: ["--commands", "run"]
|
|
71
71
|
});
|
|
72
72
|
const silgi = useSilgiCLI();
|
|
73
|
+
silgi.options.dev = true;
|
|
73
74
|
let watcher;
|
|
74
75
|
if (silgi.options.devServer.watch.length > 0) {
|
|
75
76
|
watcher = watch(silgi.options.devServer.watch, silgi.options.watchOptions);
|
package/dist/cli/prepare.mjs
CHANGED
|
@@ -564,11 +564,11 @@ async function installModules(silgi, prepare = false) {
|
|
|
564
564
|
silgi.options.isPreparingModules = prepare;
|
|
565
565
|
const jiti = createJiti(silgi.options.rootDir, {
|
|
566
566
|
alias: silgi.options.alias,
|
|
567
|
-
fsCache:
|
|
568
|
-
moduleCache:
|
|
567
|
+
fsCache: true,
|
|
568
|
+
moduleCache: true
|
|
569
569
|
});
|
|
570
570
|
for (const module of silgi.scanModules) {
|
|
571
|
-
if (hasInstalledModule(module.meta.configKey)) {
|
|
571
|
+
if (hasInstalledModule(module.meta.configKey) && !silgi.options.dev) {
|
|
572
572
|
silgi.logger.info(`Module ${module.meta.configKey} installed`);
|
|
573
573
|
}
|
|
574
574
|
try {
|
|
@@ -899,7 +899,7 @@ async function readScanFile(silgi) {
|
|
|
899
899
|
throw new Error("Failed to inject imports");
|
|
900
900
|
}
|
|
901
901
|
const jiti = createJiti(silgi.options.rootDir, {
|
|
902
|
-
fsCache:
|
|
902
|
+
fsCache: true,
|
|
903
903
|
moduleCache: false,
|
|
904
904
|
debug: silgi.options.debug,
|
|
905
905
|
alias: silgi.options.alias
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED