@silgi/module-builder 0.6.7 → 0.6.9
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
@@ -5,7 +5,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
5
5
|
import { defineCommand } from 'citty';
|
6
6
|
import { consola } from 'consola';
|
7
7
|
import defu from 'defu';
|
8
|
-
import { createJiti } from '
|
8
|
+
import { createJiti } from 'jiti';
|
9
9
|
import { createRegExp, anyOf } from 'magic-regexp';
|
10
10
|
import { resolvePath, findExports, findTypeExports } from 'mlly';
|
11
11
|
import { resolve, basename, normalize, dirname } from 'pathe';
|
@@ -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.CE3Tiqv_.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -295,6 +295,9 @@ async function writeTypes(options, _moduleMeta) {
|
|
295
295
|
if (hasTypeExport("RouteRules")) {
|
296
296
|
moduleImports.push("RouteRules");
|
297
297
|
}
|
298
|
+
if (hasTypeExport("MetaData")) {
|
299
|
+
moduleImports.push("MetaData");
|
300
|
+
}
|
298
301
|
const dtsContents = `${`
|
299
302
|
${moduleImports.length ? `import type { ${moduleImports.join(", ")} } from './module.mjs'` : ""}
|
300
303
|
|
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.CE3Tiqv_.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
@@ -6,7 +6,7 @@ import 'node:url';
|
|
6
6
|
import 'citty';
|
7
7
|
import 'consola';
|
8
8
|
import 'defu';
|
9
|
-
import '
|
9
|
+
import 'jiti';
|
10
10
|
import 'magic-regexp';
|
11
11
|
import 'mlly';
|
12
12
|
import 'pathe';
|
@@ -16,4 +16,4 @@ import 'silgi/runtime/meta';
|
|
16
16
|
import 'tsconfck';
|
17
17
|
import 'typescript';
|
18
18
|
import 'unimport';
|
19
|
-
import './shared/silgi-module-builder.
|
19
|
+
import './shared/silgi-module-builder.CE3Tiqv_.mjs';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@silgi/module-builder",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.6.
|
4
|
+
"version": "0.6.9",
|
5
5
|
"private": false,
|
6
6
|
"description": "Complete solution for building Silgi modules",
|
7
7
|
"exports": {
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"citty": "^0.1.6",
|
19
19
|
"consola": "^3.4.2",
|
20
20
|
"defu": "^6.1.4",
|
21
|
-
"
|
21
|
+
"jiti": "^2.4.2",
|
22
22
|
"magic-regexp": "^0.10.0",
|
23
23
|
"mlly": "^1.7.4",
|
24
24
|
"pathe": "^2.0.3",
|