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.
@@ -1,4 +1,4 @@
1
- const version = "0.20.38";
1
+ const version = "0.20.39";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
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);
@@ -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: false,
568
- moduleCache: false
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: false,
902
+ fsCache: true,
903
903
  moduleCache: false,
904
904
  debug: silgi.options.debug,
905
905
  alias: silgi.options.alias
@@ -1,4 +1,4 @@
1
- const version = "0.20.38";
1
+ const version = "0.20.39";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.20.38";
1
+ const version = "0.20.39";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.20.38",
4
+ "version": "0.20.39",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {