silgi 0.20.9 → 0.20.11
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/cli/common.mjs +20 -9
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/common.mjs
CHANGED
|
@@ -884,8 +884,7 @@ async function prepareServerFiles(silgi) {
|
|
|
884
884
|
"silgi/types": {
|
|
885
885
|
import: [
|
|
886
886
|
{ name: "SilgiRuntimeOptions", type: true, key: "SilgiRuntimeOptions" },
|
|
887
|
-
{ name: "FrameworkContext", type: true, key: "FrameworkContext" }
|
|
888
|
-
{ name: "ExtendShared", type: true, key: "ExtendShared" }
|
|
887
|
+
{ name: "FrameworkContext", type: true, key: "FrameworkContext" }
|
|
889
888
|
],
|
|
890
889
|
from: "silgi/types"
|
|
891
890
|
},
|
|
@@ -907,7 +906,11 @@ async function prepareServerFiles(silgi) {
|
|
|
907
906
|
const scanned = {
|
|
908
907
|
uris: {},
|
|
909
908
|
services: [],
|
|
910
|
-
shareds: [
|
|
909
|
+
shareds: [
|
|
910
|
+
`createShared({
|
|
911
|
+
modulesURIs,
|
|
912
|
+
})`
|
|
913
|
+
],
|
|
911
914
|
schemas: [],
|
|
912
915
|
modulesURIs: {},
|
|
913
916
|
customImports: [],
|
|
@@ -966,12 +969,7 @@ async function prepareServerFiles(silgi) {
|
|
|
966
969
|
}),
|
|
967
970
|
scanned.services.length > 0 ? "])" : "}",
|
|
968
971
|
"",
|
|
969
|
-
"export interface ScanShared extends ExtendShared {",
|
|
970
|
-
" modulesURIs: typeof modulesURIs",
|
|
971
|
-
"}",
|
|
972
|
-
"",
|
|
973
972
|
scanned.shareds.length > 0 ? "export const shareds = mergeShared([" : "export const shareds = {",
|
|
974
|
-
" modulesURIs,",
|
|
975
973
|
...scanned.shareds.map((name) => {
|
|
976
974
|
return ` ${name},`;
|
|
977
975
|
}),
|
|
@@ -2127,6 +2125,14 @@ async function prepareSchema(silgi) {
|
|
|
2127
2125
|
}
|
|
2128
2126
|
],
|
|
2129
2127
|
from: "silgi/types"
|
|
2128
|
+
},
|
|
2129
|
+
"silgi/scan": {
|
|
2130
|
+
import: [{
|
|
2131
|
+
key: "modulesURIs",
|
|
2132
|
+
name: "modulesURIs",
|
|
2133
|
+
type: false
|
|
2134
|
+
}],
|
|
2135
|
+
from: relativeWithDot(silgi.options.build.typesDir, `${silgi.options.silgi.serverDir}/scan.ts`)
|
|
2130
2136
|
}
|
|
2131
2137
|
};
|
|
2132
2138
|
const data = {
|
|
@@ -2135,7 +2141,12 @@ async function prepareSchema(silgi) {
|
|
|
2135
2141
|
options: [],
|
|
2136
2142
|
contexts: [],
|
|
2137
2143
|
actions: [],
|
|
2138
|
-
shareds: [
|
|
2144
|
+
shareds: [
|
|
2145
|
+
{
|
|
2146
|
+
key: "modulesURIs",
|
|
2147
|
+
value: "{ modulesURIs: typeof modulesURIs }"
|
|
2148
|
+
}
|
|
2149
|
+
],
|
|
2139
2150
|
events: [],
|
|
2140
2151
|
storeBase: [],
|
|
2141
2152
|
hooks: [],
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED