@openpkg-ts/extract 0.14.2 → 0.14.4
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/README.md +77 -0
- package/dist/bin/tspec.js +1530 -29
- package/dist/shared/{chunk-khwn5myc.js → chunk-axmbd6k1.js} +2 -2
- package/dist/src/index.js +1 -1
- package/package.json +2 -1
|
@@ -1570,17 +1570,17 @@ async function extract(options) {
|
|
|
1570
1570
|
});
|
|
1571
1571
|
ctx.exportedIds = exportedIds;
|
|
1572
1572
|
for (const symbol of exportedSymbols) {
|
|
1573
|
+
const exportName = symbol.getName();
|
|
1573
1574
|
try {
|
|
1574
1575
|
const { declaration, targetSymbol } = resolveExportTarget(symbol, typeChecker);
|
|
1575
1576
|
if (!declaration)
|
|
1576
1577
|
continue;
|
|
1577
|
-
const exportName = symbol.getName();
|
|
1578
1578
|
const exp = serializeDeclaration(declaration, symbol, targetSymbol, exportName, ctx);
|
|
1579
1579
|
if (exp)
|
|
1580
1580
|
exports.push(exp);
|
|
1581
1581
|
} catch (err) {
|
|
1582
1582
|
diagnostics.push({
|
|
1583
|
-
message: `Failed to serialize ${
|
|
1583
|
+
message: `Failed to serialize ${exportName}: ${err}`,
|
|
1584
1584
|
severity: "warning"
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
package/dist/src/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
serializeTypeAlias,
|
|
27
27
|
serializeVariable,
|
|
28
28
|
withDescription
|
|
29
|
-
} from "../shared/chunk-
|
|
29
|
+
} from "../shared/chunk-axmbd6k1.js";
|
|
30
30
|
// src/schema/registry.ts
|
|
31
31
|
function isTypeReference(type) {
|
|
32
32
|
return !!(type.flags & 524288 && type.objectFlags && type.objectFlags & 4);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpkg-ts/extract",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "TypeScript export extraction to OpenPkg spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openpkg",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
+
"cli-utils": "workspace:*",
|
|
49
50
|
"@types/bun": "latest",
|
|
50
51
|
"@types/node": "^20.0.0",
|
|
51
52
|
"bunup": "latest"
|