silgi 0.17.3 → 0.17.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
|
@@ -757,7 +757,7 @@ async function prepareServerFiles(silgi) {
|
|
|
757
757
|
const importsContent = [
|
|
758
758
|
...Object.entries(importItems).map(([_name, { from, import: imports }]) => {
|
|
759
759
|
if (silgi.options.typescript.removeFileExtension) {
|
|
760
|
-
from = from.replace(
|
|
760
|
+
from = from.replace(/\.(js|ts|mjs|cjs|jsx|tsx)$/, "");
|
|
761
761
|
}
|
|
762
762
|
return `import { ${imports.map(({ type, name }) => type ? `type ${name}` : name).join(", ")} } from '${from}'`;
|
|
763
763
|
}),
|
|
@@ -1698,7 +1698,7 @@ async function prepareCoreFile(data, frameworkContext, silgi) {
|
|
|
1698
1698
|
const importsContent = [
|
|
1699
1699
|
...Object.entries(importItems).map(([_name, { from, import: imports }]) => {
|
|
1700
1700
|
if (silgi.options.typescript.removeFileExtension) {
|
|
1701
|
-
from = from.replace(
|
|
1701
|
+
from = from.replace(/\.(js|ts|mjs|cjs|jsx|tsx)$/, "");
|
|
1702
1702
|
}
|
|
1703
1703
|
return `import { ${imports.map(({ type, name }) => type ? `type ${name}` : name).join(", ")} } from '${from}'`;
|
|
1704
1704
|
}),
|
|
@@ -1803,7 +1803,7 @@ async function createDTSFramework(silgi) {
|
|
|
1803
1803
|
...Object.entries(importItems).map(([_name, { from, import: imports }]) => {
|
|
1804
1804
|
const path = isAbsolute(from) ? relativeWithDot(silgi.options.build.typesDir, from) : from;
|
|
1805
1805
|
if (silgi.options.typescript.removeFileExtension) {
|
|
1806
|
-
from = from.replace(
|
|
1806
|
+
from = from.replace(/\.(js|ts|mjs|cjs|jsx|tsx)$/, "");
|
|
1807
1807
|
}
|
|
1808
1808
|
return `import { ${imports.map(({ type, name }) => type ? `type ${name}` : name).join(", ")} } from '${path}'`;
|
|
1809
1809
|
}),
|
|
@@ -1970,7 +1970,7 @@ async function prepareSchema(silgi) {
|
|
|
1970
1970
|
...Object.entries(importItems).map(([_name, { from, import: imports }]) => {
|
|
1971
1971
|
const path = isAbsolute(from) ? relativeWithDot(silgi.options.build.typesDir, from) : from;
|
|
1972
1972
|
if (silgi.options.typescript.removeFileExtension) {
|
|
1973
|
-
from = from.replace(
|
|
1973
|
+
from = from.replace(/\.(js|ts|mjs|cjs|jsx|tsx)$/, "");
|
|
1974
1974
|
}
|
|
1975
1975
|
return `import { ${imports.map(({ type, name }) => type ? `type ${name}` : name).join(", ")} } from '${path}'`;
|
|
1976
1976
|
}),
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED