@silgi/module-builder 0.0.18 → 0.1.0
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/build.mjs
CHANGED
@@ -15,7 +15,7 @@ import { pkgDir } from 'silgi/runtime/meta';
|
|
15
15
|
import { parse } from 'tsconfck';
|
16
16
|
import { convertCompilerOptionsFromJson } from 'typescript';
|
17
17
|
import { scanExports } from 'unimport';
|
18
|
-
import { v as version, n as name } from '../shared/silgi-module-builder.
|
18
|
+
import { v as version, n as name } from '../shared/silgi-module-builder.Bjzck-RO.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -335,6 +335,10 @@ async function writeTypes(options, isStub, moduleMeta) {
|
|
335
335
|
moduleImports.push("ModuleRuntimeMethods");
|
336
336
|
schemaShims.push(` interface SilgiRuntimeMethods extends ModuleRuntimeMethods {}`);
|
337
337
|
}
|
338
|
+
if (hasTypeExport("ModuleRuntimeRouteRules")) {
|
339
|
+
moduleImports.push("ModuleRuntimeRouteRules");
|
340
|
+
schemaShims.push(` interface SilgiRuntimeRouteRules { ${moduleMeta.configKey}: ModuleRuntimeRouteRules }`);
|
341
|
+
}
|
338
342
|
const dtsContents = `${`
|
339
343
|
${schemaImports.length ? `import type { ${schemaImports.join(", ")} } from 'silgi/types'` : ""}
|
340
344
|
|
package/dist/cli.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { defineCommand, runMain } from 'citty';
|
3
3
|
import { consola } from 'consola';
|
4
|
-
import { v as version, d as description, n as name } from './shared/silgi-module-builder.
|
4
|
+
import { v as version, d as description, n as name } from './shared/silgi-module-builder.Bjzck-RO.mjs';
|
5
5
|
|
6
6
|
const _rDefault = (r) => r && typeof r === "object" && "default" in r ? r.default : r;
|
7
7
|
const main = defineCommand({
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@silgi/module-builder",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0
|
4
|
+
"version": "0.1.0",
|
5
5
|
"private": false,
|
6
6
|
"description": "Complete solution for building Silgi modules",
|
7
7
|
"exports": {
|
@@ -26,17 +26,17 @@
|
|
26
26
|
"magic-regexp": "^0.8.0",
|
27
27
|
"mlly": "^1.7.4",
|
28
28
|
"pathe": "^2.0.3",
|
29
|
-
"pkg-types": "^2.
|
30
|
-
"silgi": "^0.
|
29
|
+
"pkg-types": "^2.1.0",
|
30
|
+
"silgi": "^0.14.4",
|
31
31
|
"tsconfck": "^3.1.5",
|
32
|
-
"unbuild": "^3.
|
32
|
+
"unbuild": "^3.5.0",
|
33
33
|
"unimport": "^4.1.2"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@antfu/eslint-config": "^4.
|
37
|
-
"@types/node": "^22.13.
|
36
|
+
"@antfu/eslint-config": "^4.7.0",
|
37
|
+
"@types/node": "^22.13.9",
|
38
38
|
"eslint": "^9.21.0",
|
39
|
-
"typescript": "^5.
|
39
|
+
"typescript": "^5.8.2"
|
40
40
|
},
|
41
41
|
"publishConfig": {
|
42
42
|
"access": "public"
|