silgi 0.20.38 → 0.20.40
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 +3 -3
- package/dist/cli/prepare.mjs +9 -5
- 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
|
@@ -67,7 +67,7 @@ const dev = defineCommand({
|
|
|
67
67
|
},
|
|
68
68
|
async run() {
|
|
69
69
|
await runCommand(prepare, {
|
|
70
|
-
rawArgs: ["--commands", "run"]
|
|
70
|
+
rawArgs: ["--commands", "run", "--dev", "true"]
|
|
71
71
|
});
|
|
72
72
|
const silgi = useSilgiCLI();
|
|
73
73
|
let watcher;
|
|
@@ -77,7 +77,7 @@ const dev = defineCommand({
|
|
|
77
77
|
const startTime = performance.now();
|
|
78
78
|
await reloadScan(path, stats);
|
|
79
79
|
await runCommand(prepare, {
|
|
80
|
-
rawArgs: ["--commands", "run"]
|
|
80
|
+
rawArgs: ["--commands", "run", "--dev", "true"]
|
|
81
81
|
});
|
|
82
82
|
silgi.errors = [];
|
|
83
83
|
const endTime = performance.now();
|
|
@@ -87,7 +87,7 @@ const dev = defineCommand({
|
|
|
87
87
|
const startTime = performance.now();
|
|
88
88
|
await reloadScan(path, stats);
|
|
89
89
|
await runCommand(prepare, {
|
|
90
|
-
rawArgs: ["--commands", "run"]
|
|
90
|
+
rawArgs: ["--commands", "run", "--dev", "true"]
|
|
91
91
|
});
|
|
92
92
|
silgi.errors = [];
|
|
93
93
|
const endTime = performance.now();
|
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
|
|
@@ -2624,6 +2624,10 @@ const prepare = defineCommand({
|
|
|
2624
2624
|
type: "boolean",
|
|
2625
2625
|
description: "Run in silgi development mode"
|
|
2626
2626
|
},
|
|
2627
|
+
dev: {
|
|
2628
|
+
type: "boolean",
|
|
2629
|
+
description: "Run in silgi development mode"
|
|
2630
|
+
},
|
|
2627
2631
|
env: {
|
|
2628
2632
|
type: "string",
|
|
2629
2633
|
description: "The environment to use"
|
|
@@ -2637,7 +2641,7 @@ const prepare = defineCommand({
|
|
|
2637
2641
|
const rootDir = resolve(args.dir || args._dir || ".");
|
|
2638
2642
|
const silgi = await createSilgiCLI({
|
|
2639
2643
|
rootDir,
|
|
2640
|
-
dev: args.stub,
|
|
2644
|
+
dev: args.dev || args.stub,
|
|
2641
2645
|
stub: args.stub,
|
|
2642
2646
|
preset: args.preset,
|
|
2643
2647
|
commandType: "prepare",
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED