silgi 0.23.8 → 0.23.9
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/kit/index.d.mts +2 -8
- package/dist/kit/index.d.ts +2 -8
- package/dist/kit/index.mjs +5 -8
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/kit/index.d.mts
CHANGED
|
@@ -156,12 +156,6 @@ declare const MODE_RE: RegExp;
|
|
|
156
156
|
declare function hasSilgiModule(moduleKey: string, silgi?: SilgiCLI): boolean;
|
|
157
157
|
declare function hasInstalledModule(moduleKey: string, silgi?: SilgiCLI): boolean;
|
|
158
158
|
declare const baseHeaderBannerComment: string[];
|
|
159
|
-
|
|
160
|
-
* Process file paths based on configuration settings
|
|
161
|
-
*
|
|
162
|
-
* @param path - The source file path to process
|
|
163
|
-
* @returns The processed path with extensions and trailing slashes handled
|
|
164
|
-
*/
|
|
165
|
-
declare function processFilePath(path: string): string;
|
|
159
|
+
declare function addFileExtension(src: string): string;
|
|
166
160
|
|
|
167
|
-
export { MODE_RE, addTemplate, applyEnv, baseHeaderBannerComment, createResolver, defineSilgiModule, defineSilgiPreset, directoryToURL, filterInPlace, genEnsureSafeVar, getAllEntries, getIpAddress, hasError, hasInstalledModule, hasSilgiModule, hash, initRuntimeConfig, ipAddress, isDirectory, isH3, isNitro, isNuxt, normalizeTemplate, parseServices, prettyPath,
|
|
161
|
+
export { MODE_RE, addFileExtension, addTemplate, applyEnv, baseHeaderBannerComment, createResolver, defineSilgiModule, defineSilgiPreset, directoryToURL, filterInPlace, genEnsureSafeVar, getAllEntries, getIpAddress, hasError, hasInstalledModule, hasSilgiModule, hash, initRuntimeConfig, ipAddress, isDirectory, isH3, isNitro, isNuxt, normalizeTemplate, parseServices, prettyPath, relativeWithDot, resolveAlias, resolvePath, resolveSilgiModule, resolveSilgiPath, serviceParseModule, toArray, tryResolveModule, useLogger, useRequest, useResponse, useSilgiRuntimeConfig, writeFile };
|
package/dist/kit/index.d.ts
CHANGED
|
@@ -156,12 +156,6 @@ declare const MODE_RE: RegExp;
|
|
|
156
156
|
declare function hasSilgiModule(moduleKey: string, silgi?: SilgiCLI): boolean;
|
|
157
157
|
declare function hasInstalledModule(moduleKey: string, silgi?: SilgiCLI): boolean;
|
|
158
158
|
declare const baseHeaderBannerComment: string[];
|
|
159
|
-
|
|
160
|
-
* Process file paths based on configuration settings
|
|
161
|
-
*
|
|
162
|
-
* @param path - The source file path to process
|
|
163
|
-
* @returns The processed path with extensions and trailing slashes handled
|
|
164
|
-
*/
|
|
165
|
-
declare function processFilePath(path: string): string;
|
|
159
|
+
declare function addFileExtension(src: string): string;
|
|
166
160
|
|
|
167
|
-
export { MODE_RE, addTemplate, applyEnv, baseHeaderBannerComment, createResolver, defineSilgiModule, defineSilgiPreset, directoryToURL, filterInPlace, genEnsureSafeVar, getAllEntries, getIpAddress, hasError, hasInstalledModule, hasSilgiModule, hash, initRuntimeConfig, ipAddress, isDirectory, isH3, isNitro, isNuxt, normalizeTemplate, parseServices, prettyPath,
|
|
161
|
+
export { MODE_RE, addFileExtension, addTemplate, applyEnv, baseHeaderBannerComment, createResolver, defineSilgiModule, defineSilgiPreset, directoryToURL, filterInPlace, genEnsureSafeVar, getAllEntries, getIpAddress, hasError, hasInstalledModule, hasSilgiModule, hash, initRuntimeConfig, ipAddress, isDirectory, isH3, isNitro, isNuxt, normalizeTemplate, parseServices, prettyPath, relativeWithDot, resolveAlias, resolvePath, resolveSilgiModule, resolveSilgiPath, serviceParseModule, toArray, tryResolveModule, useLogger, useRequest, useResponse, useSilgiRuntimeConfig, writeFile };
|
package/dist/kit/index.mjs
CHANGED
|
@@ -488,16 +488,13 @@ const baseHeaderBannerComment = [
|
|
|
488
488
|
"/* prettier-ignore */",
|
|
489
489
|
"/* tslint:disable */"
|
|
490
490
|
];
|
|
491
|
-
function
|
|
491
|
+
function addFileExtension(src) {
|
|
492
492
|
const silgi = useSilgiCLI();
|
|
493
|
-
const cleanPath = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
494
|
-
if (cleanPath.endsWith("/.ts")) {
|
|
495
|
-
return cleanPath;
|
|
496
|
-
}
|
|
497
493
|
if (silgi.options.typescript.removeFileExtension) {
|
|
498
|
-
|
|
494
|
+
src = src.replace(/\.ts$/, "");
|
|
495
|
+
return src;
|
|
499
496
|
}
|
|
500
|
-
return
|
|
497
|
+
return src;
|
|
501
498
|
}
|
|
502
499
|
|
|
503
500
|
function addTemplate(_template) {
|
|
@@ -630,4 +627,4 @@ function isValidIp(ip) {
|
|
|
630
627
|
return false;
|
|
631
628
|
}
|
|
632
629
|
|
|
633
|
-
export { MODE_RE, addTemplate, applyEnv, baseHeaderBannerComment, createResolver, defineSilgiModule, defineSilgiPreset, directoryToURL, filterInPlace, genEnsureSafeVar, getAllEntries, getIpAddress, hasError, hasInstalledModule, hasSilgiModule, hash, initRuntimeConfig, ipAddress, isDirectory$1 as isDirectory, isH3, isNitro, isNuxt, normalizeTemplate, parseServices, prettyPath,
|
|
630
|
+
export { MODE_RE, addFileExtension, addTemplate, applyEnv, baseHeaderBannerComment, createResolver, defineSilgiModule, defineSilgiPreset, directoryToURL, filterInPlace, genEnsureSafeVar, getAllEntries, getIpAddress, hasError, hasInstalledModule, hasSilgiModule, hash, initRuntimeConfig, ipAddress, isDirectory$1 as isDirectory, isH3, isNitro, isNuxt, normalizeTemplate, parseServices, prettyPath, relativeWithDot, resolveAlias, resolvePath, resolveSilgiModule, resolveSilgiPath, serviceParseModule, toArray, tryResolveModule, useLogger, useRequest, useResponse, useSilgiRuntimeConfig, writeFile };
|