silgi 0.36.4 → 0.36.5
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/cli/index.mjs +1 -1
- package/dist/cli/types.mjs +25 -0
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/types.mjs
CHANGED
|
@@ -659,6 +659,10 @@ async function silgiGenerateType(silgi) {
|
|
|
659
659
|
noEmit: true,
|
|
660
660
|
/* If NOT transpiling with TypeScript: */
|
|
661
661
|
module: "Preserve",
|
|
662
|
+
moduleResolution: "bundler",
|
|
663
|
+
useDefineForClassFields: true,
|
|
664
|
+
noImplicitThis: true,
|
|
665
|
+
jsx: "preserve",
|
|
662
666
|
customConditions: silgi.options.typescript.customConditions,
|
|
663
667
|
paths: {
|
|
664
668
|
// '#silgiImports': [
|
|
@@ -720,6 +724,27 @@ async function silgiGenerateType(silgi) {
|
|
|
720
724
|
exclude: [...exclude]
|
|
721
725
|
});
|
|
722
726
|
}
|
|
727
|
+
if (isPresents(["next"])) {
|
|
728
|
+
tsConfig = defu(tsConfig, {
|
|
729
|
+
compilerOptions: {
|
|
730
|
+
incremental: true,
|
|
731
|
+
plugins: [
|
|
732
|
+
{ name: "next" }
|
|
733
|
+
],
|
|
734
|
+
paths: {
|
|
735
|
+
"@/*": [
|
|
736
|
+
relativeWithDot(tsconfigDir, join(silgi.options.rootDir, "src", "*"))
|
|
737
|
+
]
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
include: [
|
|
741
|
+
relativeWithDot(tsconfigDir, join(silgi.options.rootDir, "next-env.d.ts")),
|
|
742
|
+
relativeWithDot(tsconfigDir, join(silgi.options.rootDir, "**", "*.ts")),
|
|
743
|
+
relativeWithDot(tsconfigDir, join(silgi.options.rootDir, "**", "*.tsx")),
|
|
744
|
+
relativeWithDot(tsconfigDir, join(silgi.options.rootDir, ".next", "types", "**", "*.ts"))
|
|
745
|
+
]
|
|
746
|
+
});
|
|
747
|
+
}
|
|
723
748
|
tsConfig.compilerOptions ||= {};
|
|
724
749
|
tsConfig.compilerOptions.paths ||= {};
|
|
725
750
|
tsConfig.include ||= [];
|