@powerlines/deepkit 0.6.47 → 0.6.48

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.
Files changed (41) hide show
  1. package/dist/{chunk-MSAES6UX.cjs → chunk-27RKMKSF.cjs} +2 -2
  2. package/dist/{chunk-JE36RI7U.js → chunk-AOV2UYYO.js} +15 -3
  3. package/dist/{chunk-KGCRCOJQ.cjs → chunk-FZVCXNXZ.cjs} +5 -2
  4. package/dist/{chunk-YAEE7DDW.cjs → chunk-HPVJ6OV3.cjs} +3 -3
  5. package/dist/{chunk-GM2JSAMQ.js → chunk-JQUKKAFM.js} +1 -1
  6. package/dist/{chunk-CJMS4ES3.cjs → chunk-MYEAGBDY.cjs} +15 -3
  7. package/dist/{chunk-EJIBYA23.js → chunk-NPV2346T.js} +3 -3
  8. package/dist/{chunk-XHSSGKUT.js → chunk-R3XDGKHO.js} +5 -2
  9. package/dist/esbuild-plugin.cjs +3 -3
  10. package/dist/esbuild-plugin.d.cts +8 -3
  11. package/dist/esbuild-plugin.d.ts +8 -3
  12. package/dist/esbuild-plugin.js +2 -2
  13. package/dist/index.cjs +8 -8
  14. package/dist/index.d.cts +3 -2
  15. package/dist/index.d.ts +3 -2
  16. package/dist/index.js +4 -4
  17. package/dist/reflect-type.cjs +4 -4
  18. package/dist/reflect-type.js +3 -3
  19. package/dist/rolldown-plugin.cjs +3 -3
  20. package/dist/rolldown-plugin.js +2 -2
  21. package/dist/transpile.cjs +2 -2
  22. package/dist/transpile.d.cts +3 -1
  23. package/dist/transpile.d.ts +3 -1
  24. package/dist/transpile.js +1 -1
  25. package/dist/vendor/{chunk-AP2OERL5.cjs → chunk-GCGRDSTC.cjs} +3 -3
  26. package/dist/vendor/{chunk-V6JG7FNG.cjs → chunk-PL6SYVVY.cjs} +2 -2
  27. package/dist/vendor/{chunk-AFYCMCE2.cjs → chunk-PNWV4F7Z.cjs} +176 -176
  28. package/dist/vendor/core.cjs +130 -130
  29. package/dist/vendor/type-compiler/{chunk-QI4BKO3C.cjs → chunk-25S6WLWP.cjs} +2 -2
  30. package/dist/vendor/type-compiler/{chunk-KWBAELJ3.js → chunk-F2LAEO2G.js} +1 -1
  31. package/dist/vendor/type-compiler/{chunk-RLHQ4FKK.cjs → chunk-MGJW6PVQ.cjs} +505 -505
  32. package/dist/vendor/type-compiler/{chunk-UOVV44TQ.js → chunk-VP7MY2D5.js} +2 -2
  33. package/dist/vendor/type-compiler/compiler.cjs +12 -12
  34. package/dist/vendor/type-compiler/compiler.js +2 -2
  35. package/dist/vendor/type-compiler/config.cjs +9 -9
  36. package/dist/vendor/type-compiler/config.js +2 -2
  37. package/dist/vendor/type-compiler/index.cjs +24 -24
  38. package/dist/vendor/type-compiler/index.js +4 -4
  39. package/dist/vendor/type-spec.cjs +5 -5
  40. package/dist/vendor/type.cjs +776 -776
  41. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkYAEE7DDW_cjs = require('./chunk-YAEE7DDW.cjs');
3
+ var chunkHPVJ6OV3_cjs = require('./chunk-HPVJ6OV3.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var path = require('@stryke/path');
6
6
  var typeChecks = require('@stryke/type-checks');
@@ -23,7 +23,7 @@ var rolldownPlugin = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((context, filter =
23
23
  if (!contents) {
24
24
  return null;
25
25
  }
26
- const result = chunkYAEE7DDW_cjs.transpile(context, contents, path$1.id);
26
+ const result = chunkHPVJ6OV3_cjs.transpile(context, contents, path$1.id);
27
27
  if (result.diagnostics && result.diagnostics.length > 0) {
28
28
  if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Error)) {
29
29
  const errorMessage = `Deepkit Type reflection transpilation errors: ${id}
@@ -1,15 +1,25 @@
1
- import { transpile } from './chunk-EJIBYA23.js';
1
+ import { transpile } from './chunk-NPV2346T.js';
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import { isString } from '@stryke/type-checks';
4
4
  import { DiagnosticCategory } from 'typescript';
5
5
 
6
+ // ../../node_modules/.pnpm/@stryke+helpers@0.9.40/node_modules/@stryke/helpers/dist/omit.mjs
7
+ function omit(obj, keys) {
8
+ const result = { ...obj };
9
+ for (let i = 0; i < keys.length; i++) {
10
+ const key = keys[i];
11
+ if (key) delete result[key];
12
+ }
13
+ return result;
14
+ }
15
+ __name(omit, "omit");
6
16
  var esbuildPlugin = /* @__PURE__ */ __name((context, options = {}) => {
7
17
  return {
8
18
  name: "powerlines:deepkit",
9
19
  setup(build) {
10
20
  build.onLoad({
11
21
  filter: /\.(m|c)?tsx?$/,
12
- ...options
22
+ ...options.onLoad ?? {}
13
23
  }, async (args) => {
14
24
  const contents = await context.fs.read(args.path);
15
25
  if (!contents) {
@@ -24,7 +34,9 @@ var esbuildPlugin = /* @__PURE__ */ __name((context, options = {}) => {
24
34
  }
25
35
  };
26
36
  }
27
- const result = transpile(context, contents, args.path);
37
+ const result = transpile(context, contents, args.path, omit(options, [
38
+ "onLoad"
39
+ ]));
28
40
  if (result.diagnostics && result.diagnostics.length > 0) {
29
41
  if (result.diagnostics.some((d) => d.category === DiagnosticCategory.Error)) {
30
42
  const errorMessage = `Deepkit Type reflection transpilation errors: ${args.path}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCJMS4ES3_cjs = require('./chunk-CJMS4ES3.cjs');
3
+ var chunkMYEAGBDY_cjs = require('./chunk-MYEAGBDY.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var type = require('@powerlines/deepkit/vendor/type');
6
6
  var defu = require('defu');
@@ -13,7 +13,10 @@ var defu__default = /*#__PURE__*/_interopDefault(defu);
13
13
  async function reflectType(context, type$1, overrides = {}) {
14
14
  return type.reflect(await resolve.resolve(context, type$1, defu__default.default(overrides, {
15
15
  plugins: [
16
- chunkCJMS4ES3_cjs.esbuildPlugin(context)
16
+ chunkMYEAGBDY_cjs.esbuildPlugin(context, {
17
+ reflection: "default",
18
+ reflectionLevel: "verbose"
19
+ })
17
20
  ]
18
21
  })));
19
22
  }
@@ -8,9 +8,9 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
9
9
  var ts__default = /*#__PURE__*/_interopDefault(ts);
10
10
 
11
- function transpile(context, code, id) {
12
- const transformer = chunkBLLXF42T_cjs.createTransformer(context);
13
- const declarationTransformer = chunkBLLXF42T_cjs.createDeclarationTransformer(context);
11
+ function transpile(context, code, id, options = {}) {
12
+ const transformer = chunkBLLXF42T_cjs.createTransformer(context, options);
13
+ const declarationTransformer = chunkBLLXF42T_cjs.createDeclarationTransformer(context, options);
14
14
  return ts__default.default.transpileModule(code, {
15
15
  compilerOptions: {
16
16
  ...context.tsconfig.options
@@ -1,4 +1,4 @@
1
- import { transpile } from './chunk-EJIBYA23.js';
1
+ import { transpile } from './chunk-NPV2346T.js';
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import { findFileExtension } from '@stryke/path';
4
4
  import { isString } from '@stryke/type-checks';
@@ -1,17 +1,27 @@
1
1
  'use strict';
2
2
 
3
- var chunkYAEE7DDW_cjs = require('./chunk-YAEE7DDW.cjs');
3
+ var chunkHPVJ6OV3_cjs = require('./chunk-HPVJ6OV3.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var typeChecks = require('@stryke/type-checks');
6
6
  var typescript = require('typescript');
7
7
 
8
+ // ../../node_modules/.pnpm/@stryke+helpers@0.9.40/node_modules/@stryke/helpers/dist/omit.mjs
9
+ function omit(obj, keys) {
10
+ const result = { ...obj };
11
+ for (let i = 0; i < keys.length; i++) {
12
+ const key = keys[i];
13
+ if (key) delete result[key];
14
+ }
15
+ return result;
16
+ }
17
+ chunkUSNT2KNT_cjs.__name(omit, "omit");
8
18
  var esbuildPlugin = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((context, options = {}) => {
9
19
  return {
10
20
  name: "powerlines:deepkit",
11
21
  setup(build) {
12
22
  build.onLoad({
13
23
  filter: /\.(m|c)?tsx?$/,
14
- ...options
24
+ ...options.onLoad ?? {}
15
25
  }, async (args) => {
16
26
  const contents = await context.fs.read(args.path);
17
27
  if (!contents) {
@@ -26,7 +36,9 @@ var esbuildPlugin = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((context, options =
26
36
  }
27
37
  };
28
38
  }
29
- const result = chunkYAEE7DDW_cjs.transpile(context, contents, args.path);
39
+ const result = chunkHPVJ6OV3_cjs.transpile(context, contents, args.path, omit(options, [
40
+ "onLoad"
41
+ ]));
30
42
  if (result.diagnostics && result.diagnostics.length > 0) {
31
43
  if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Error)) {
32
44
  const errorMessage = `Deepkit Type reflection transpilation errors: ${args.path}
@@ -2,9 +2,9 @@ import { createTransformer, createDeclarationTransformer } from './chunk-23YNDVR
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import ts from 'typescript';
4
4
 
5
- function transpile(context, code, id) {
6
- const transformer = createTransformer(context);
7
- const declarationTransformer = createDeclarationTransformer(context);
5
+ function transpile(context, code, id, options = {}) {
6
+ const transformer = createTransformer(context, options);
7
+ const declarationTransformer = createDeclarationTransformer(context, options);
8
8
  return ts.transpileModule(code, {
9
9
  compilerOptions: {
10
10
  ...context.tsconfig.options
@@ -1,4 +1,4 @@
1
- import { esbuildPlugin } from './chunk-JE36RI7U.js';
1
+ import { esbuildPlugin } from './chunk-AOV2UYYO.js';
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import { reflect } from '@powerlines/deepkit/vendor/type';
4
4
  import defu from 'defu';
@@ -7,7 +7,10 @@ import { resolve } from 'powerlines/lib/utilities/resolve';
7
7
  async function reflectType(context, type, overrides = {}) {
8
8
  return reflect(await resolve(context, type, defu(overrides, {
9
9
  plugins: [
10
- esbuildPlugin(context)
10
+ esbuildPlugin(context, {
11
+ reflection: "default",
12
+ reflectionLevel: "verbose"
13
+ })
11
14
  ]
12
15
  })));
13
16
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkCJMS4ES3_cjs = require('./chunk-CJMS4ES3.cjs');
4
- require('./chunk-YAEE7DDW.cjs');
3
+ var chunkMYEAGBDY_cjs = require('./chunk-MYEAGBDY.cjs');
4
+ require('./chunk-HPVJ6OV3.cjs');
5
5
  require('./chunk-BLLXF42T.cjs');
6
6
  require('./chunk-USNT2KNT.cjs');
7
7
 
@@ -9,5 +9,5 @@ require('./chunk-USNT2KNT.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "esbuildPlugin", {
11
11
  enumerable: true,
12
- get: function () { return chunkCJMS4ES3_cjs.esbuildPlugin; }
12
+ get: function () { return chunkMYEAGBDY_cjs.esbuildPlugin; }
13
13
  });
@@ -1,13 +1,18 @@
1
+ import { ReflectionConfig } from '@deepkit/type-compiler/config';
1
2
  import { OnLoadOptions, Plugin } from 'esbuild';
2
3
  import { Context } from 'powerlines/types/context';
3
4
 
5
+ interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
6
+ onLoad?: Partial<OnLoadOptions>;
7
+ }
4
8
  /**
5
9
  * Esbuild plugin for Deepkit Type reflections.
6
10
  *
7
11
  * @param context - The Powerlines context.
8
- * @param options - Optional esbuild onLoad options.
12
+ * @param options - Optional esbuild onLoad options and reflection configuration.
9
13
  * @returns An esbuild plugin instance.
10
14
  */
11
- declare const esbuildPlugin: (context: Context, options?: Partial<OnLoadOptions>) => Plugin;
15
+ declare const esbuildPlugin: (context: Context, options?: ESBuildPluginOptions) => Plugin;
16
+ declare type __ΩESBuildPluginOptions = any[];
12
17
 
13
- export { esbuildPlugin };
18
+ export { type ESBuildPluginOptions, type __ΩESBuildPluginOptions, esbuildPlugin };
@@ -1,13 +1,18 @@
1
+ import { ReflectionConfig } from '@deepkit/type-compiler/config';
1
2
  import { OnLoadOptions, Plugin } from 'esbuild';
2
3
  import { Context } from 'powerlines/types/context';
3
4
 
5
+ interface ESBuildPluginOptions extends Partial<ReflectionConfig> {
6
+ onLoad?: Partial<OnLoadOptions>;
7
+ }
4
8
  /**
5
9
  * Esbuild plugin for Deepkit Type reflections.
6
10
  *
7
11
  * @param context - The Powerlines context.
8
- * @param options - Optional esbuild onLoad options.
12
+ * @param options - Optional esbuild onLoad options and reflection configuration.
9
13
  * @returns An esbuild plugin instance.
10
14
  */
11
- declare const esbuildPlugin: (context: Context, options?: Partial<OnLoadOptions>) => Plugin;
15
+ declare const esbuildPlugin: (context: Context, options?: ESBuildPluginOptions) => Plugin;
16
+ declare type __ΩESBuildPluginOptions = any[];
12
17
 
13
- export { esbuildPlugin };
18
+ export { type ESBuildPluginOptions, type __ΩESBuildPluginOptions, esbuildPlugin };
@@ -1,4 +1,4 @@
1
- export { esbuildPlugin } from './chunk-JE36RI7U.js';
2
- import './chunk-EJIBYA23.js';
1
+ export { esbuildPlugin } from './chunk-AOV2UYYO.js';
2
+ import './chunk-NPV2346T.js';
3
3
  import './chunk-23YNDVRG.js';
4
4
  import './chunk-SHUYVCID.js';
package/dist/index.cjs CHANGED
@@ -3,11 +3,11 @@
3
3
  require('./chunk-ORA4UQMU.cjs');
4
4
  var chunkEQOYOHOR_cjs = require('./chunk-EQOYOHOR.cjs');
5
5
  var chunk7FXYDYVQ_cjs = require('./chunk-7FXYDYVQ.cjs');
6
- var chunkKGCRCOJQ_cjs = require('./chunk-KGCRCOJQ.cjs');
7
- var chunkCJMS4ES3_cjs = require('./chunk-CJMS4ES3.cjs');
6
+ var chunkFZVCXNXZ_cjs = require('./chunk-FZVCXNXZ.cjs');
7
+ var chunkMYEAGBDY_cjs = require('./chunk-MYEAGBDY.cjs');
8
8
  var chunk7QZGCBH7_cjs = require('./chunk-7QZGCBH7.cjs');
9
- var chunkMSAES6UX_cjs = require('./chunk-MSAES6UX.cjs');
10
- var chunkYAEE7DDW_cjs = require('./chunk-YAEE7DDW.cjs');
9
+ var chunk27RKMKSF_cjs = require('./chunk-27RKMKSF.cjs');
10
+ var chunkHPVJ6OV3_cjs = require('./chunk-HPVJ6OV3.cjs');
11
11
  var chunkBLLXF42T_cjs = require('./chunk-BLLXF42T.cjs');
12
12
  require('./chunk-USNT2KNT.cjs');
13
13
 
@@ -223,11 +223,11 @@ Object.defineProperty(exports, "convertToCapnpUnion", {
223
223
  });
224
224
  Object.defineProperty(exports, "reflectType", {
225
225
  enumerable: true,
226
- get: function () { return chunkKGCRCOJQ_cjs.reflectType; }
226
+ get: function () { return chunkFZVCXNXZ_cjs.reflectType; }
227
227
  });
228
228
  Object.defineProperty(exports, "esbuildPlugin", {
229
229
  enumerable: true,
230
- get: function () { return chunkCJMS4ES3_cjs.esbuildPlugin; }
230
+ get: function () { return chunkMYEAGBDY_cjs.esbuildPlugin; }
231
231
  });
232
232
  Object.defineProperty(exports, "getReflectionsPath", {
233
233
  enumerable: true,
@@ -235,11 +235,11 @@ Object.defineProperty(exports, "getReflectionsPath", {
235
235
  });
236
236
  Object.defineProperty(exports, "rolldownPlugin", {
237
237
  enumerable: true,
238
- get: function () { return chunkMSAES6UX_cjs.rolldownPlugin; }
238
+ get: function () { return chunk27RKMKSF_cjs.rolldownPlugin; }
239
239
  });
240
240
  Object.defineProperty(exports, "transpile", {
241
241
  enumerable: true,
242
- get: function () { return chunkYAEE7DDW_cjs.transpile; }
242
+ get: function () { return chunkHPVJ6OV3_cjs.transpile; }
243
243
  });
244
244
  Object.defineProperty(exports, "createDeclarationTransformer", {
245
245
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { WithIndexAccessOrigin, WithTagsReflection, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from './capnp.cjs';
2
- export { esbuildPlugin } from './esbuild-plugin.cjs';
2
+ export { ESBuildPluginOptions, __ΩESBuildPluginOptions, esbuildPlugin } from './esbuild-plugin.cjs';
3
3
  export { reflectType } from './reflect-type.cjs';
4
4
  export { getReflectionsPath } from './resolve-reflections.cjs';
5
5
  export { rolldownPlugin } from './rolldown-plugin.cjs';
@@ -10,10 +10,11 @@ export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, string
10
10
  import '@powerlines/deepkit/vendor/type';
11
11
  import '@stryke/capnp';
12
12
  import './reflection-BHSdc6oZ.cjs';
13
+ import '@deepkit/type-compiler/config';
13
14
  import 'esbuild';
14
15
  import 'powerlines/types/context';
15
16
  import '@stryke/types/configuration';
16
17
  import 'powerlines/types/build';
17
18
  import 'rolldown';
18
- import '@deepkit/type-compiler/config';
19
19
  import 'typescript';
20
+ import '@powerlines/deepkit/vendor/type-compiler';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { WithIndexAccessOrigin, WithTagsReflection, __ΩWithIndexAccessOrigin, __ΩWithTagsReflection, convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from './capnp.js';
2
- export { esbuildPlugin } from './esbuild-plugin.js';
2
+ export { ESBuildPluginOptions, __ΩESBuildPluginOptions, esbuildPlugin } from './esbuild-plugin.js';
3
3
  export { reflectType } from './reflect-type.js';
4
4
  export { getReflectionsPath } from './resolve-reflections.js';
5
5
  export { rolldownPlugin } from './rolldown-plugin.js';
@@ -10,10 +10,11 @@ export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, string
10
10
  import '@powerlines/deepkit/vendor/type';
11
11
  import '@stryke/capnp';
12
12
  import './reflection-BHSdc6oZ.js';
13
+ import '@deepkit/type-compiler/config';
13
14
  import 'esbuild';
14
15
  import 'powerlines/types/context';
15
16
  import '@stryke/types/configuration';
16
17
  import 'powerlines/types/build';
17
18
  import 'rolldown';
18
- import '@deepkit/type-compiler/config';
19
19
  import 'typescript';
20
+ import '@powerlines/deepkit/vendor/type-compiler';
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import './chunk-OULCUN6I.js';
2
2
  export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-Z2UTHBWQ.js';
3
3
  export { convertFromCapnp, convertFromCapnpArray, convertFromCapnpBase, convertFromCapnpClassType, convertFromCapnpDefault, convertFromCapnpEnum, convertFromCapnpFunction, convertFromCapnpIndexAccessOrigin, convertFromCapnpInfer, convertFromCapnpIntersection, convertFromCapnpLiteral, convertFromCapnpMethodSignature, convertFromCapnpObjectLiteral, convertFromCapnpOther, convertFromCapnpParameter, convertFromCapnpProperty, convertFromCapnpPropertySignature, convertFromCapnpSimple, convertFromCapnpTagsReflection, convertFromCapnpTuple, convertFromCapnpTupleMember, convertFromCapnpUnion, convertToCapnp, convertToCapnpArray, convertToCapnpBase, convertToCapnpClassType, convertToCapnpDefault, convertToCapnpEnum, convertToCapnpFunction, convertToCapnpIndexAccessOrigin, convertToCapnpInfer, convertToCapnpIntersection, convertToCapnpLiteral, convertToCapnpMethod, convertToCapnpMethodSignature, convertToCapnpObjectLiteral, convertToCapnpOther, convertToCapnpParameter, convertToCapnpProperty, convertToCapnpPropertySignature, convertToCapnpSimple, convertToCapnpTagsReflection, convertToCapnpTuple, convertToCapnpTupleMember, convertToCapnpUnion } from './chunk-TDYIUJGY.js';
4
- export { reflectType } from './chunk-XHSSGKUT.js';
5
- export { esbuildPlugin } from './chunk-JE36RI7U.js';
4
+ export { reflectType } from './chunk-R3XDGKHO.js';
5
+ export { esbuildPlugin } from './chunk-AOV2UYYO.js';
6
6
  export { getReflectionsPath } from './chunk-ALM6UMVU.js';
7
- export { rolldownPlugin } from './chunk-GM2JSAMQ.js';
8
- export { transpile } from './chunk-EJIBYA23.js';
7
+ export { rolldownPlugin } from './chunk-JQUKKAFM.js';
8
+ export { transpile } from './chunk-NPV2346T.js';
9
9
  export { createDeclarationTransformer, createTransformer } from './chunk-23YNDVRG.js';
10
10
  import './chunk-SHUYVCID.js';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkKGCRCOJQ_cjs = require('./chunk-KGCRCOJQ.cjs');
4
- require('./chunk-CJMS4ES3.cjs');
5
- require('./chunk-YAEE7DDW.cjs');
3
+ var chunkFZVCXNXZ_cjs = require('./chunk-FZVCXNXZ.cjs');
4
+ require('./chunk-MYEAGBDY.cjs');
5
+ require('./chunk-HPVJ6OV3.cjs');
6
6
  require('./chunk-BLLXF42T.cjs');
7
7
  require('./chunk-USNT2KNT.cjs');
8
8
 
@@ -10,5 +10,5 @@ require('./chunk-USNT2KNT.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "reflectType", {
12
12
  enumerable: true,
13
- get: function () { return chunkKGCRCOJQ_cjs.reflectType; }
13
+ get: function () { return chunkFZVCXNXZ_cjs.reflectType; }
14
14
  });
@@ -1,5 +1,5 @@
1
- export { reflectType } from './chunk-XHSSGKUT.js';
2
- import './chunk-JE36RI7U.js';
3
- import './chunk-EJIBYA23.js';
1
+ export { reflectType } from './chunk-R3XDGKHO.js';
2
+ import './chunk-AOV2UYYO.js';
3
+ import './chunk-NPV2346T.js';
4
4
  import './chunk-23YNDVRG.js';
5
5
  import './chunk-SHUYVCID.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkMSAES6UX_cjs = require('./chunk-MSAES6UX.cjs');
4
- require('./chunk-YAEE7DDW.cjs');
3
+ var chunk27RKMKSF_cjs = require('./chunk-27RKMKSF.cjs');
4
+ require('./chunk-HPVJ6OV3.cjs');
5
5
  require('./chunk-BLLXF42T.cjs');
6
6
  require('./chunk-USNT2KNT.cjs');
7
7
 
@@ -9,5 +9,5 @@ require('./chunk-USNT2KNT.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "rolldownPlugin", {
11
11
  enumerable: true,
12
- get: function () { return chunkMSAES6UX_cjs.rolldownPlugin; }
12
+ get: function () { return chunk27RKMKSF_cjs.rolldownPlugin; }
13
13
  });
@@ -1,4 +1,4 @@
1
- export { rolldownPlugin } from './chunk-GM2JSAMQ.js';
2
- import './chunk-EJIBYA23.js';
1
+ export { rolldownPlugin } from './chunk-JQUKKAFM.js';
2
+ import './chunk-NPV2346T.js';
3
3
  import './chunk-23YNDVRG.js';
4
4
  import './chunk-SHUYVCID.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkYAEE7DDW_cjs = require('./chunk-YAEE7DDW.cjs');
3
+ var chunkHPVJ6OV3_cjs = require('./chunk-HPVJ6OV3.cjs');
4
4
  require('./chunk-BLLXF42T.cjs');
5
5
  require('./chunk-USNT2KNT.cjs');
6
6
 
@@ -8,5 +8,5 @@ require('./chunk-USNT2KNT.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "transpile", {
10
10
  enumerable: true,
11
- get: function () { return chunkYAEE7DDW_cjs.transpile; }
11
+ get: function () { return chunkHPVJ6OV3_cjs.transpile; }
12
12
  });
@@ -1,3 +1,4 @@
1
+ import { ReflectionConfig } from '@powerlines/deepkit/vendor/type-compiler';
1
2
  import { Context } from 'powerlines/types/context';
2
3
  import ts from 'typescript';
3
4
 
@@ -7,8 +8,9 @@ import ts from 'typescript';
7
8
  * @param context - The base context containing TypeScript configuration and options.
8
9
  * @param code - The TypeScript code to be transpiled.
9
10
  * @param id - The identifier for the TypeScript file being transpiled.
11
+ * @param options - Optional configuration for the reflection process.
10
12
  * @returns The transpiled output.
11
13
  */
12
- declare function transpile(context: Context, code: string, id: string): ts.TranspileOutput;
14
+ declare function transpile(context: Context, code: string, id: string, options?: Partial<ReflectionConfig>): ts.TranspileOutput;
13
15
 
14
16
  export { transpile };
@@ -1,3 +1,4 @@
1
+ import { ReflectionConfig } from '@powerlines/deepkit/vendor/type-compiler';
1
2
  import { Context } from 'powerlines/types/context';
2
3
  import ts from 'typescript';
3
4
 
@@ -7,8 +8,9 @@ import ts from 'typescript';
7
8
  * @param context - The base context containing TypeScript configuration and options.
8
9
  * @param code - The TypeScript code to be transpiled.
9
10
  * @param id - The identifier for the TypeScript file being transpiled.
11
+ * @param options - Optional configuration for the reflection process.
10
12
  * @returns The transpiled output.
11
13
  */
12
- declare function transpile(context: Context, code: string, id: string): ts.TranspileOutput;
14
+ declare function transpile(context: Context, code: string, id: string, options?: Partial<ReflectionConfig>): ts.TranspileOutput;
13
15
 
14
16
  export { transpile };
package/dist/transpile.js CHANGED
@@ -1,3 +1,3 @@
1
- export { transpile } from './chunk-EJIBYA23.js';
1
+ export { transpile } from './chunk-NPV2346T.js';
2
2
  import './chunk-23YNDVRG.js';
3
3
  import './chunk-SHUYVCID.js';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkV6JG7FNG_cjs = require('./chunk-V6JG7FNG.cjs');
3
+ var chunkPL6SYVVY_cjs = require('./chunk-PL6SYVVY.cjs');
4
4
 
5
5
  // ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/src/type.js
6
- chunkV6JG7FNG_cjs.init_cjs_shims();
6
+ chunkPL6SYVVY_cjs.init_cjs_shims();
7
7
  exports.TypeNumberBrand = void 0;
8
8
  (function(TypeNumberBrand2) {
9
9
  TypeNumberBrand2[TypeNumberBrand2["integer"] = 0] = "integer";
@@ -112,4 +112,4 @@ exports.ReflectionOp = void 0;
112
112
  })(exports.ReflectionOp || (exports.ReflectionOp = {}));
113
113
 
114
114
  // ../../node_modules/.pnpm/@deepkit+type-spec@1.0.1_patch_hash=f3c3a4fd486751022d78f17d39a5a79f493bca20b185964ca1aba41fbfc93244/node_modules/@deepkit/type-spec/dist/esm/index.js
115
- chunkV6JG7FNG_cjs.init_cjs_shims();
115
+ chunkPL6SYVVY_cjs.init_cjs_shims();
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  mod
31
31
  ));
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.56.0_@types+node@24.10.10__@swc+core@1.15.11_@swc_7030ff4ff45832788eb0b7a312c8fc11/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.56.2_@types+node@24.10.11__@swc+core@1.15.11_@swc_d9bdf0e80c5f06df9f7a5b5c6be0cdbe/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.56.0_@types+node@24.10.10__@swc+core@1.15.11_@swc_7030ff4ff45832788eb0b7a312c8fc11/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.56.2_@types+node@24.10.11__@swc+core@1.15.11_@swc_d9bdf0e80c5f06df9f7a5b5c6be0cdbe/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  }
37
37
  });
38
38