@silgi/module-builder 0.0.1 → 0.0.3

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.
@@ -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.NYdklG1f.mjs';
18
+ import { v as version, n as name } from '../shared/silgi-module-builder.r9aEbG8b.mjs';
19
19
 
20
20
  const srcDir = fileURLToPath(new URL("src", import.meta.url));
21
21
  const subpaths = [
@@ -107,7 +107,7 @@ const build = defineCommand({
107
107
  outDir,
108
108
  // eslint-disable-next-line ts/ban-ts-comment
109
109
  // @ts-ignore
110
- ignoreConditions: ["silgi", "silgiTypes"],
110
+ ignoreConditions: ["silgi", "silgiTypes", "pckSilgi", "pckSilgiTypes"],
111
111
  entries: [
112
112
  "src/module",
113
113
  {
@@ -313,6 +313,10 @@ async function writeTypes(options, isStub, moduleMeta) {
313
313
  moduleImports.push("ModuleRuntimeActions");
314
314
  schemaShims.push(` interface SilgiRuntimeActions { ${moduleMeta.configKey}: ModuleRuntimeActions }`);
315
315
  }
316
+ if (hasTypeExport("ModuleRuntimeMethods")) {
317
+ moduleImports.push("ModuleRuntimeMethods");
318
+ schemaShims.push(` interface SilgiRuntimeMethods { ${moduleMeta.configKey}: ModuleRuntimeMethods }`);
319
+ }
316
320
  const dtsContents = `${`
317
321
  ${schemaImports.length ? `import type { ${schemaImports.join(", ")} } from 'silgi/types'` : ""}
318
322
 
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.NYdklG1f.mjs';
4
+ import { v as version, d as description, n as name } from './shared/silgi-module-builder.r9aEbG8b.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.NYdklG1f.mjs';
19
+ import './shared/silgi-module-builder.r9aEbG8b.mjs';
@@ -1,5 +1,5 @@
1
1
  const name = "@silgi/module-builder";
2
- const version = "0.0.1";
2
+ const version = "0.0.3";
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.0.1",
4
+ "version": "0.0.3",
5
5
  "private": false,
6
6
  "description": "Complete solution for building Silgi modules",
7
7
  "exports": {