silgi 0.23.7 → 0.23.8
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.mjs +3 -0
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/kit/index.mjs
CHANGED
|
@@ -491,6 +491,9 @@ const baseHeaderBannerComment = [
|
|
|
491
491
|
function processFilePath(path) {
|
|
492
492
|
const silgi = useSilgiCLI();
|
|
493
493
|
const cleanPath = path.endsWith("/") ? path.slice(0, -1) : path;
|
|
494
|
+
if (cleanPath.endsWith("/.ts")) {
|
|
495
|
+
return cleanPath;
|
|
496
|
+
}
|
|
494
497
|
if (silgi.options.typescript.removeFileExtension) {
|
|
495
498
|
return cleanPath.replace(/\.ts$/, "");
|
|
496
499
|
}
|