silgi 0.19.2 → 0.19.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/dist/_chunks/index.mjs
CHANGED
package/dist/cli/types.mjs
CHANGED
|
@@ -64,6 +64,8 @@ async function silgiGenerateType(silgi) {
|
|
|
64
64
|
esModuleInterop: true,
|
|
65
65
|
allowSyntheticDefaultImports: true,
|
|
66
66
|
skipLibCheck: true,
|
|
67
|
+
allowImportingTsExtensions: true,
|
|
68
|
+
/* Target options: */
|
|
67
69
|
target: "ESNext",
|
|
68
70
|
allowJs: true,
|
|
69
71
|
resolveJsonModule: true,
|
|
@@ -126,8 +128,6 @@ async function silgiGenerateType(silgi) {
|
|
|
126
128
|
allowSyntheticDefaultImports: true,
|
|
127
129
|
/* Base options: */
|
|
128
130
|
esModuleInterop: false,
|
|
129
|
-
// TODO: enable noUncheckedIndexedAccess in subsequent PR
|
|
130
|
-
// "noUncheckedIndexedAccess": true,
|
|
131
131
|
forceConsistentCasingInFileNames: true,
|
|
132
132
|
isolatedModules: true,
|
|
133
133
|
verbatimModuleSyntax: true,
|
|
@@ -351,11 +351,11 @@ async function loadSilgiModuleInstance(silgiModule) {
|
|
|
351
351
|
return { silgiModule };
|
|
352
352
|
}
|
|
353
353
|
async function installModules(silgi, prepare = false) {
|
|
354
|
-
|
|
355
|
-
silgi.options.isPreparingModules = true;
|
|
356
|
-
}
|
|
354
|
+
silgi.options.isPreparingModules = prepare;
|
|
357
355
|
const jiti = createJiti(silgi.options.rootDir, {
|
|
358
|
-
alias: silgi.options.alias
|
|
356
|
+
alias: silgi.options.alias,
|
|
357
|
+
fsCache: false,
|
|
358
|
+
moduleCache: false
|
|
359
359
|
});
|
|
360
360
|
for (const module of silgi.scanModules) {
|
|
361
361
|
if (hasInstalledModule(module.meta.configKey)) {
|
|
@@ -375,9 +375,7 @@ async function installModules(silgi, prepare = false) {
|
|
|
375
375
|
silgi.logger.error(err);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
|
|
379
|
-
silgi.options.isPreparingModules = false;
|
|
380
|
-
}
|
|
378
|
+
silgi.options.isPreparingModules = false;
|
|
381
379
|
}
|
|
382
380
|
async function installModule(moduleToInstall, silgi = useSilgiCLI(), inlineOptions, prepare = false) {
|
|
383
381
|
const { silgiModule } = await loadSilgiModuleInstance(moduleToInstall);
|
package/dist/kit/index.mjs
CHANGED
|
@@ -134,7 +134,7 @@ function _defineSilgiModule(definition) {
|
|
|
134
134
|
throw new TypeError("Cannot use module outside of Silgi context");
|
|
135
135
|
}
|
|
136
136
|
const uniqueKey = module.meta.configKey || module.meta.name;
|
|
137
|
-
if (uniqueKey) {
|
|
137
|
+
if (uniqueKey && !silgi.options.isPreparingModules) {
|
|
138
138
|
silgi._requiredModules ||= {};
|
|
139
139
|
if (silgi._requiredModules[uniqueKey]) {
|
|
140
140
|
return false;
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED