@powerlines/deepkit 0.4.91 → 0.5.0
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/bin/deepkit-install.cjs +1 -1
- package/dist/chunk-6IQVU53O.cjs +24 -0
- package/dist/chunk-KYFUOGZ6.cjs +57 -0
- package/dist/chunk-TVDEXHJN.js +55 -0
- package/dist/{chunk-MERFAWZE.js → chunk-YUO4MCOI.js} +8 -2
- package/dist/esbuild-plugin.cjs +13 -0
- package/dist/esbuild-plugin.d.cts +12 -0
- package/dist/esbuild-plugin.d.ts +12 -0
- package/dist/esbuild-plugin.js +4 -0
- package/dist/index.cjs +36 -31
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -2
- package/dist/reflect-type.cjs +5 -2
- package/dist/reflect-type.js +4 -1
- package/dist/vendor/core.d.cts +827 -1
- package/dist/vendor/core.d.ts +827 -1
- package/dist/vendor/type-spec.d.cts +192 -1
- package/dist/vendor/type-spec.d.ts +192 -1
- package/dist/vendor/type.d.cts +3425 -1
- package/dist/vendor/type.d.ts +3425 -1
- package/package.json +7 -5
- package/dist/chunk-FX2P4HL7.cjs +0 -14
package/bin/deepkit-install.cjs
CHANGED
|
@@ -27,7 +27,7 @@ function getCode(deepkitDistPath, varName, id) {
|
|
|
27
27
|
var typeTransformer;
|
|
28
28
|
|
|
29
29
|
try {
|
|
30
|
-
typeTransformer = require("@powerlines/
|
|
30
|
+
typeTransformer = require("@powerlines/deepkit/vendor/type-compiler");
|
|
31
31
|
} catch (error) {
|
|
32
32
|
typeTransformer = require(${JSON.stringify(deepkitDistPath)});
|
|
33
33
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKYFUOGZ6_cjs = require('./chunk-KYFUOGZ6.cjs');
|
|
4
|
+
var chunkWVKPC33H_cjs = require('./chunk-WVKPC33H.cjs');
|
|
5
|
+
var type = require('@powerlines/deepkit/vendor/type');
|
|
6
|
+
var defu = require('defu');
|
|
7
|
+
var resolve = require('powerlines/lib/utilities/resolve');
|
|
8
|
+
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
12
|
+
|
|
13
|
+
// src/reflect-type.ts
|
|
14
|
+
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
15
|
+
async function reflectType(context, type$1, overrides = {}) {
|
|
16
|
+
return type.reflect(await resolve.resolve(context, type$1, defu__default.default(overrides, {
|
|
17
|
+
plugins: [
|
|
18
|
+
chunkKYFUOGZ6_cjs.esbuildPlugin(context)
|
|
19
|
+
]
|
|
20
|
+
})));
|
|
21
|
+
}
|
|
22
|
+
chunkWVKPC33H_cjs.__name(reflectType, "reflectType");
|
|
23
|
+
|
|
24
|
+
exports.reflectType = reflectType;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk55HOZO7D_cjs = require('./chunk-55HOZO7D.cjs');
|
|
4
|
+
var chunkWVKPC33H_cjs = require('./chunk-WVKPC33H.cjs');
|
|
5
|
+
var typeChecks = require('@stryke/type-checks');
|
|
6
|
+
var typescript = require('typescript');
|
|
7
|
+
|
|
8
|
+
// src/esbuild-plugin.ts
|
|
9
|
+
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
10
|
+
var esbuildPlugin = /* @__PURE__ */ chunkWVKPC33H_cjs.__name((context) => {
|
|
11
|
+
return {
|
|
12
|
+
name: "powerlines:deepkit",
|
|
13
|
+
setup(build) {
|
|
14
|
+
build.onLoad({
|
|
15
|
+
filter: /\.tsx?$/
|
|
16
|
+
}, async (args) => {
|
|
17
|
+
const contents = await context.fs.read(args.path);
|
|
18
|
+
if (!contents) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
if (args.pluginData?.isReflected) {
|
|
22
|
+
return {
|
|
23
|
+
contents,
|
|
24
|
+
loader: "ts",
|
|
25
|
+
pluginData: {
|
|
26
|
+
isReflected: true
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const result = chunk55HOZO7D_cjs.transpile(context, contents, args.path);
|
|
31
|
+
if (result.diagnostics && result.diagnostics.length > 0) {
|
|
32
|
+
if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Error)) {
|
|
33
|
+
const errorMessage = `Deepkit Type reflection transpilation errors in file: ${args.path}
|
|
34
|
+
${result.diagnostics.filter((d) => d.category === typescript.DiagnosticCategory.Error).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${typeChecks.isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`;
|
|
35
|
+
context.error(errorMessage);
|
|
36
|
+
throw new Error(errorMessage);
|
|
37
|
+
} else if (result.diagnostics.some((d) => d.category === typescript.DiagnosticCategory.Warning)) {
|
|
38
|
+
context.warn(`Deepkit Type reflection transpilation warnings in file: ${args.path}
|
|
39
|
+
${result.diagnostics.filter((d) => d.category === typescript.DiagnosticCategory.Warning).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${typeChecks.isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
40
|
+
} else {
|
|
41
|
+
context.debug(`Deepkit Type reflection transpilation info in file: ${args.path}
|
|
42
|
+
${result.diagnostics.map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${typeChecks.isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
contents: result.outputText,
|
|
47
|
+
loader: "ts",
|
|
48
|
+
pluginData: {
|
|
49
|
+
isReflected: true
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}, "esbuildPlugin");
|
|
56
|
+
|
|
57
|
+
exports.esbuildPlugin = esbuildPlugin;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { transpile } from './chunk-BTXPY3B4.js';
|
|
2
|
+
import { init_esm_shims, __name } from './chunk-QQ7GKXIS.js';
|
|
3
|
+
import { isString } from '@stryke/type-checks';
|
|
4
|
+
import { DiagnosticCategory } from 'typescript';
|
|
5
|
+
|
|
6
|
+
// src/esbuild-plugin.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
var esbuildPlugin = /* @__PURE__ */ __name((context) => {
|
|
9
|
+
return {
|
|
10
|
+
name: "powerlines:deepkit",
|
|
11
|
+
setup(build) {
|
|
12
|
+
build.onLoad({
|
|
13
|
+
filter: /\.tsx?$/
|
|
14
|
+
}, async (args) => {
|
|
15
|
+
const contents = await context.fs.read(args.path);
|
|
16
|
+
if (!contents) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
if (args.pluginData?.isReflected) {
|
|
20
|
+
return {
|
|
21
|
+
contents,
|
|
22
|
+
loader: "ts",
|
|
23
|
+
pluginData: {
|
|
24
|
+
isReflected: true
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const result = transpile(context, contents, args.path);
|
|
29
|
+
if (result.diagnostics && result.diagnostics.length > 0) {
|
|
30
|
+
if (result.diagnostics.some((d) => d.category === DiagnosticCategory.Error)) {
|
|
31
|
+
const errorMessage = `Deepkit Type reflection transpilation errors in file: ${args.path}
|
|
32
|
+
${result.diagnostics.filter((d) => d.category === DiagnosticCategory.Error).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`;
|
|
33
|
+
context.error(errorMessage);
|
|
34
|
+
throw new Error(errorMessage);
|
|
35
|
+
} else if (result.diagnostics.some((d) => d.category === DiagnosticCategory.Warning)) {
|
|
36
|
+
context.warn(`Deepkit Type reflection transpilation warnings in file: ${args.path}
|
|
37
|
+
${result.diagnostics.filter((d) => d.category === DiagnosticCategory.Warning).map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
38
|
+
} else {
|
|
39
|
+
context.debug(`Deepkit Type reflection transpilation info in file: ${args.path}
|
|
40
|
+
${result.diagnostics.map((d) => `-${d.file ? `${d.file.fileName}:` : ""} ${isString(d.messageText) ? d.messageText : d.messageText.messageText} (at ${d.start}:${d.length})`).join("\n")}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
contents: result.outputText,
|
|
45
|
+
loader: "ts",
|
|
46
|
+
pluginData: {
|
|
47
|
+
isReflected: true
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}, "esbuildPlugin");
|
|
54
|
+
|
|
55
|
+
export { esbuildPlugin };
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import { esbuildPlugin } from './chunk-TVDEXHJN.js';
|
|
1
2
|
import { init_esm_shims, __name } from './chunk-QQ7GKXIS.js';
|
|
2
3
|
import { reflect } from '@powerlines/deepkit/vendor/type';
|
|
4
|
+
import defu from 'defu';
|
|
3
5
|
import { resolve } from 'powerlines/lib/utilities/resolve';
|
|
4
6
|
|
|
5
7
|
// src/reflect-type.ts
|
|
6
8
|
init_esm_shims();
|
|
7
|
-
async function reflectType(context, type, overrides) {
|
|
8
|
-
return reflect(await resolve(context, type, overrides
|
|
9
|
+
async function reflectType(context, type, overrides = {}) {
|
|
10
|
+
return reflect(await resolve(context, type, defu(overrides, {
|
|
11
|
+
plugins: [
|
|
12
|
+
esbuildPlugin(context)
|
|
13
|
+
]
|
|
14
|
+
})));
|
|
9
15
|
}
|
|
10
16
|
__name(reflectType, "reflectType");
|
|
11
17
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKYFUOGZ6_cjs = require('./chunk-KYFUOGZ6.cjs');
|
|
4
|
+
require('./chunk-55HOZO7D.cjs');
|
|
5
|
+
require('./chunk-6OXPIOZY.cjs');
|
|
6
|
+
require('./chunk-WVKPC33H.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "esbuildPlugin", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkKYFUOGZ6_cjs.esbuildPlugin; }
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from 'esbuild';
|
|
2
|
+
import { Context } from 'powerlines/types/context';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Esbuild plugin for Deepkit Type reflections.
|
|
6
|
+
*
|
|
7
|
+
* @param context - The Powerlines context.
|
|
8
|
+
* @returns An esbuild plugin instance.
|
|
9
|
+
*/
|
|
10
|
+
declare const esbuildPlugin: (context: Context) => Plugin;
|
|
11
|
+
|
|
12
|
+
export { esbuildPlugin };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from 'esbuild';
|
|
2
|
+
import { Context } from 'powerlines/types/context';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Esbuild plugin for Deepkit Type reflections.
|
|
6
|
+
*
|
|
7
|
+
* @param context - The Powerlines context.
|
|
8
|
+
* @returns An esbuild plugin instance.
|
|
9
|
+
*/
|
|
10
|
+
declare const esbuildPlugin: (context: Context) => Plugin;
|
|
11
|
+
|
|
12
|
+
export { esbuildPlugin };
|
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkQPSZUUB6_cjs = require('./chunk-QPSZUUB6.cjs');
|
|
3
4
|
var chunkSKYW5GV2_cjs = require('./chunk-SKYW5GV2.cjs');
|
|
4
|
-
var
|
|
5
|
+
var chunk6IQVU53O_cjs = require('./chunk-6IQVU53O.cjs');
|
|
6
|
+
var chunkKYFUOGZ6_cjs = require('./chunk-KYFUOGZ6.cjs');
|
|
5
7
|
var chunkJHEBLHYK_cjs = require('./chunk-JHEBLHYK.cjs');
|
|
6
8
|
var chunk55HOZO7D_cjs = require('./chunk-55HOZO7D.cjs');
|
|
7
9
|
var chunk6OXPIOZY_cjs = require('./chunk-6OXPIOZY.cjs');
|
|
8
10
|
require('./chunk-PANPZ6S6.cjs');
|
|
9
|
-
var chunkQPSZUUB6_cjs = require('./chunk-QPSZUUB6.cjs');
|
|
10
11
|
var chunkWVKPC33H_cjs = require('./chunk-WVKPC33H.cjs');
|
|
11
12
|
|
|
12
13
|
// src/index.ts
|
|
13
14
|
chunkWVKPC33H_cjs.init_cjs_shims();
|
|
14
15
|
|
|
16
|
+
Object.defineProperty(exports, "getEnumReflectionType", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkQPSZUUB6_cjs.getEnumReflectionType; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "getUnionTypes", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkQPSZUUB6_cjs.getUnionTypes; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "isStringUnion", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkQPSZUUB6_cjs.isStringUnion; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "kindToName", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkQPSZUUB6_cjs.kindToName; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "stringifyDefaultValue", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkQPSZUUB6_cjs.stringifyDefaultValue; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "stringifyStringValue", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkQPSZUUB6_cjs.stringifyStringValue; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "stringifyValue", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkQPSZUUB6_cjs.stringifyValue; }
|
|
43
|
+
});
|
|
15
44
|
Object.defineProperty(exports, "convertFromCapnp", {
|
|
16
45
|
enumerable: true,
|
|
17
46
|
get: function () { return chunkSKYW5GV2_cjs.convertFromCapnp; }
|
|
@@ -194,7 +223,11 @@ Object.defineProperty(exports, "convertToCapnpUnion", {
|
|
|
194
223
|
});
|
|
195
224
|
Object.defineProperty(exports, "reflectType", {
|
|
196
225
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk6IQVU53O_cjs.reflectType; }
|
|
227
|
+
});
|
|
228
|
+
Object.defineProperty(exports, "esbuildPlugin", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: function () { return chunkKYFUOGZ6_cjs.esbuildPlugin; }
|
|
198
231
|
});
|
|
199
232
|
Object.defineProperty(exports, "getReflectionsPath", {
|
|
200
233
|
enumerable: true,
|
|
@@ -212,31 +245,3 @@ Object.defineProperty(exports, "createTransformer", {
|
|
|
212
245
|
enumerable: true,
|
|
213
246
|
get: function () { return chunk6OXPIOZY_cjs.createTransformer; }
|
|
214
247
|
});
|
|
215
|
-
Object.defineProperty(exports, "getEnumReflectionType", {
|
|
216
|
-
enumerable: true,
|
|
217
|
-
get: function () { return chunkQPSZUUB6_cjs.getEnumReflectionType; }
|
|
218
|
-
});
|
|
219
|
-
Object.defineProperty(exports, "getUnionTypes", {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function () { return chunkQPSZUUB6_cjs.getUnionTypes; }
|
|
222
|
-
});
|
|
223
|
-
Object.defineProperty(exports, "isStringUnion", {
|
|
224
|
-
enumerable: true,
|
|
225
|
-
get: function () { return chunkQPSZUUB6_cjs.isStringUnion; }
|
|
226
|
-
});
|
|
227
|
-
Object.defineProperty(exports, "kindToName", {
|
|
228
|
-
enumerable: true,
|
|
229
|
-
get: function () { return chunkQPSZUUB6_cjs.kindToName; }
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(exports, "stringifyDefaultValue", {
|
|
232
|
-
enumerable: true,
|
|
233
|
-
get: function () { return chunkQPSZUUB6_cjs.stringifyDefaultValue; }
|
|
234
|
-
});
|
|
235
|
-
Object.defineProperty(exports, "stringifyStringValue", {
|
|
236
|
-
enumerable: true,
|
|
237
|
-
get: function () { return chunkQPSZUUB6_cjs.stringifyStringValue; }
|
|
238
|
-
});
|
|
239
|
-
Object.defineProperty(exports, "stringifyValue", {
|
|
240
|
-
enumerable: true,
|
|
241
|
-
get: function () { return chunkQPSZUUB6_cjs.stringifyValue; }
|
|
242
|
-
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +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
3
|
export { reflectType } from './reflect-type.cjs';
|
|
3
4
|
export { getReflectionsPath } from './resolve-reflections.cjs';
|
|
4
5
|
export { createDeclarationTransformer, createTransformer } from './transformer.cjs';
|
|
@@ -8,8 +9,9 @@ export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, string
|
|
|
8
9
|
import '@powerlines/deepkit/vendor/type';
|
|
9
10
|
import '@stryke/capnp';
|
|
10
11
|
import './reflection-DTM1oT21.cjs';
|
|
12
|
+
import 'esbuild';
|
|
13
|
+
import 'powerlines/types/context';
|
|
11
14
|
import '@stryke/types/configuration';
|
|
12
15
|
import 'powerlines/types/build';
|
|
13
|
-
import 'powerlines/types/context';
|
|
14
16
|
import '@deepkit/type-compiler/config';
|
|
15
17
|
import 'typescript';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +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
3
|
export { reflectType } from './reflect-type.js';
|
|
3
4
|
export { getReflectionsPath } from './resolve-reflections.js';
|
|
4
5
|
export { createDeclarationTransformer, createTransformer } from './transformer.js';
|
|
@@ -8,8 +9,9 @@ export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, string
|
|
|
8
9
|
import '@powerlines/deepkit/vendor/type';
|
|
9
10
|
import '@stryke/capnp';
|
|
10
11
|
import './reflection-DTM1oT21.js';
|
|
12
|
+
import 'esbuild';
|
|
13
|
+
import 'powerlines/types/context';
|
|
11
14
|
import '@stryke/types/configuration';
|
|
12
15
|
import 'powerlines/types/build';
|
|
13
|
-
import 'powerlines/types/context';
|
|
14
16
|
import '@deepkit/type-compiler/config';
|
|
15
17
|
import 'typescript';
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-LBHO5BRF.js';
|
|
1
2
|
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-DGXATHAN.js';
|
|
2
|
-
export { reflectType } from './chunk-
|
|
3
|
+
export { reflectType } from './chunk-YUO4MCOI.js';
|
|
4
|
+
export { esbuildPlugin } from './chunk-TVDEXHJN.js';
|
|
3
5
|
export { getReflectionsPath } from './chunk-FEBG7WWO.js';
|
|
4
6
|
export { transpile } from './chunk-BTXPY3B4.js';
|
|
5
7
|
export { createDeclarationTransformer, createTransformer } from './chunk-U4JSDAXK.js';
|
|
6
8
|
import './chunk-B4PTD5KQ.js';
|
|
7
|
-
export { getEnumReflectionType, getUnionTypes, isStringUnion, kindToName, stringifyDefaultValue, stringifyStringValue, stringifyValue } from './chunk-LBHO5BRF.js';
|
|
8
9
|
import { init_esm_shims } from './chunk-QQ7GKXIS.js';
|
|
9
10
|
|
|
10
11
|
// src/index.ts
|
package/dist/reflect-type.cjs
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6IQVU53O_cjs = require('./chunk-6IQVU53O.cjs');
|
|
4
|
+
require('./chunk-KYFUOGZ6.cjs');
|
|
5
|
+
require('./chunk-55HOZO7D.cjs');
|
|
6
|
+
require('./chunk-6OXPIOZY.cjs');
|
|
4
7
|
require('./chunk-WVKPC33H.cjs');
|
|
5
8
|
|
|
6
9
|
|
|
7
10
|
|
|
8
11
|
Object.defineProperty(exports, "reflectType", {
|
|
9
12
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6IQVU53O_cjs.reflectType; }
|
|
11
14
|
});
|
package/dist/reflect-type.js
CHANGED