@silgi/module-builder 0.4.0 → 0.4.2
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
@@ -7,7 +7,7 @@ import { consola } from 'consola';
|
|
7
7
|
import defu from 'defu';
|
8
8
|
import { createJiti } from 'dev-jiti';
|
9
9
|
import { createRegExp, anyOf } from 'magic-regexp';
|
10
|
-
import { resolvePath, findExports } from 'mlly';
|
10
|
+
import { resolvePath, findExports, findTypeExports } from 'mlly';
|
11
11
|
import { resolve, basename, normalize, dirname } from 'pathe';
|
12
12
|
import { filename } from 'pathe/utils';
|
13
13
|
import { readPackageJSON } from 'pkg-types';
|
@@ -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.Dq1Ki07P.mjs';
|
19
19
|
|
20
20
|
const srcDir = fileURLToPath(new URL("src", import.meta.url));
|
21
21
|
const subpaths = [
|
@@ -288,6 +288,9 @@ async function writeTypes(options, isStub, _moduleMeta) {
|
|
288
288
|
for (const e of findExports(normalisedModuleTypes)) {
|
289
289
|
moduleReExports.push(e);
|
290
290
|
}
|
291
|
+
for (const i of findTypeExports(normalisedModuleTypes)) {
|
292
|
+
moduleReExports.push(i);
|
293
|
+
}
|
291
294
|
}
|
292
295
|
const schemaShims = [];
|
293
296
|
const moduleImports = [];
|
@@ -309,7 +312,7 @@ async function writeTypes(options, isStub, _moduleMeta) {
|
|
309
312
|
}
|
310
313
|
if (hasTypeExport("ModuleRuntimeShareds")) {
|
311
314
|
moduleImports.push("ModuleRuntimeShareds");
|
312
|
-
schemaShims.push(" interface
|
315
|
+
schemaShims.push(" interface SilgiRuntimeSharedsExtend extends ModuleRuntimeShareds {}");
|
313
316
|
}
|
314
317
|
if (hasTypeExport("ModuleEvents")) {
|
315
318
|
moduleImports.push("ModuleEvents");
|
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.Dq1Ki07P.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.4.
|
4
|
+
"version": "0.4.2",
|
5
5
|
"private": false,
|
6
6
|
"description": "Complete solution for building Silgi modules",
|
7
7
|
"exports": {
|
@@ -19,20 +19,20 @@
|
|
19
19
|
"consola": "^3.4.2",
|
20
20
|
"defu": "^6.1.4",
|
21
21
|
"dev-jiti": "^2.4.2",
|
22
|
-
"magic-regexp": "^0.
|
22
|
+
"magic-regexp": "^0.9.0",
|
23
23
|
"mlly": "^1.7.4",
|
24
24
|
"pathe": "^2.0.3",
|
25
25
|
"pkg-types": "^2.1.0",
|
26
|
-
"silgi": "^0.
|
26
|
+
"silgi": "^0.27.9",
|
27
27
|
"tsconfck": "^3.1.5",
|
28
28
|
"unbuild": "^3.5.0",
|
29
|
-
"unimport": "^
|
29
|
+
"unimport": "^5.0.0"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
-
"@antfu/eslint-config": "^4.
|
33
|
-
"@types/node": "^22.
|
34
|
-
"eslint": "^9.
|
35
|
-
"typescript": "^5.8.
|
32
|
+
"@antfu/eslint-config": "^4.12.0",
|
33
|
+
"@types/node": "^22.14.1",
|
34
|
+
"eslint": "^9.24.0",
|
35
|
+
"typescript": "^5.8.3"
|
36
36
|
},
|
37
37
|
"publishConfig": {
|
38
38
|
"access": "public"
|