@silgi/module-builder 0.3.0 → 0.4.1

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.
@@ -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.BvJmrAWU.mjs';
18
+ import { v as version, n as name } from '../shared/silgi-module-builder.B3dUnesr.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 = [];
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.BvJmrAWU.mjs';
4
+ import { v as version, d as description, n as name } from './shared/silgi-module-builder.B3dUnesr.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
@@ -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.BvJmrAWU.mjs';
19
+ import './shared/silgi-module-builder.B3dUnesr.mjs';
@@ -1,5 +1,5 @@
1
1
  const name = "@silgi/module-builder";
2
- const version = "0.3.0";
2
+ const version = "0.4.1";
3
3
  const description = "Complete solution for building Silgi modules";
4
4
 
5
5
  export { description as d, name as n, version as v };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@silgi/module-builder",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.4.1",
5
5
  "private": false,
6
6
  "description": "Complete solution for building Silgi modules",
7
7
  "exports": {
@@ -14,10 +14,6 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
- "peerDependencies": {
18
- "silgi": ">=0.20.0",
19
- "typescript": ">=5.7.3"
20
- },
21
17
  "dependencies": {
22
18
  "citty": "^0.1.6",
23
19
  "consola": "^3.4.2",
@@ -27,15 +23,15 @@
27
23
  "mlly": "^1.7.4",
28
24
  "pathe": "^2.0.3",
29
25
  "pkg-types": "^2.1.0",
30
- "silgi": "^0.20.11",
26
+ "silgi": "^0.24.0",
31
27
  "tsconfck": "^3.1.5",
32
28
  "unbuild": "^3.5.0",
33
29
  "unimport": "^4.1.2"
34
30
  },
35
31
  "devDependencies": {
36
- "@antfu/eslint-config": "^4.10.1",
37
- "@types/node": "^22.13.10",
38
- "eslint": "^9.22.0",
32
+ "@antfu/eslint-config": "^4.11.0",
33
+ "@types/node": "^22.13.11",
34
+ "eslint": "^9.23.0",
39
35
  "typescript": "^5.8.2"
40
36
  },
41
37
  "publishConfig": {