silgi 0.23.8 → 0.23.10

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.23.8";
1
+ const version = "0.23.10";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^3.0.0",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -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 processFilePath(src: string): string;
166
160
 
167
161
  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, processFilePath, relativeWithDot, resolveAlias, resolvePath, resolveSilgiModule, resolveSilgiPath, serviceParseModule, toArray, tryResolveModule, useLogger, useRequest, useResponse, useSilgiRuntimeConfig, writeFile };
@@ -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 processFilePath(src: string): string;
166
160
 
167
161
  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, processFilePath, relativeWithDot, resolveAlias, resolvePath, resolveSilgiModule, resolveSilgiPath, serviceParseModule, toArray, tryResolveModule, useLogger, useRequest, useResponse, useSilgiRuntimeConfig, writeFile };
@@ -488,16 +488,13 @@ const baseHeaderBannerComment = [
488
488
  "/* prettier-ignore */",
489
489
  "/* tslint:disable */"
490
490
  ];
491
- function processFilePath(path) {
491
+ function processFilePath(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
- return cleanPath.replace(/\.ts$/, "");
494
+ src = src.replace(/\.ts$/, "");
495
+ return src;
499
496
  }
500
- return cleanPath;
497
+ return src;
501
498
  }
502
499
 
503
500
  function addTemplate(_template) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.23.8",
4
+ "version": "0.23.10",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {