rspress-plugin-api-extractor 0.3.4 → 0.3.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rspress-plugin-api-extractor",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "private": false,
5
5
  "description": "RSPress plugin for generating API documentation from TypeScript API Extractor models",
6
6
  "keywords": [
@@ -32,12 +32,16 @@
32
32
  "./package.json": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
+ "@effect/cluster": "^0.59.0",
36
+ "@effect/experimental": "^0.60.0",
35
37
  "@effect/platform": "^0.96.2",
36
38
  "@effect/platform-node": "^0.107.0",
39
+ "@effect/rpc": "^0.75.1",
37
40
  "@effect/sql": "^0.51.1",
38
41
  "@effect/sql-sqlite-node": "^0.52.0",
42
+ "@effect/workflow": "^0.18.2",
39
43
  "@microsoft/api-extractor-model": "^7.33.8",
40
- "@shikijs/twoslash": "^4.3.0",
44
+ "@shikijs/twoslash": "^4.3.1",
41
45
  "api-extractor-llms": "0.2.0",
42
46
  "clsx": "^2.1.1",
43
47
  "effect": "^3.21.4",
@@ -49,9 +53,9 @@
49
53
  "open": "^11.0.0",
50
54
  "prettier": "^3.9.4",
51
55
  "react-markdown": "^10.1.0",
52
- "semver-effect": "^0.2.1",
53
- "shiki": "^4.3.0",
54
- "type-registry-effect": "^1.0.0",
56
+ "semver-effect": "^0.3.1",
57
+ "shiki": "^4.3.1",
58
+ "type-registry-effect": "^1.0.2",
55
59
  "typescript": "^6.0.3",
56
60
  "unist-util-visit": "^5.1.0"
57
61
  },
@@ -58,14 +58,20 @@ function parseTsConfigWithMetadata(configPath, projectRoot) {
58
58
  const absolutePath = isAbsolute(configPath) ? configPath : resolve(projectRoot, configPath);
59
59
  if (!existsSync(absolutePath)) throw new TsConfigParseError(absolutePath, "File not found");
60
60
  const configFileContent = ts.readConfigFile(absolutePath, (path) => readFileSync(path, "utf-8"));
61
- if (configFileContent.error) throw new TsConfigParseError(absolutePath, ts.flattenDiagnosticMessageText(configFileContent.error.messageText, "\n"), configFileContent.error);
61
+ if (configFileContent.error) {
62
+ const message = ts.flattenDiagnosticMessageText(configFileContent.error.messageText, "\n");
63
+ throw new TsConfigParseError(absolutePath, message, configFileContent.error);
64
+ }
62
65
  const configDir = dirname(absolutePath);
63
66
  const parsedConfig = ts.parseJsonConfigFileContent(configFileContent.config, ts.sys, configDir, void 0, absolutePath);
64
67
  const significantErrors = parsedConfig.errors.filter((error) => {
65
68
  const message = ts.flattenDiagnosticMessageText(error.messageText, "\n");
66
69
  return error.code !== 18003 && !message.includes("No inputs were found");
67
70
  });
68
- if (significantErrors.length > 0) throw new TsConfigParseError(absolutePath, significantErrors.map((error) => ts.flattenDiagnosticMessageText(error.messageText, "\n")).join("; "), significantErrors);
71
+ if (significantErrors.length > 0) {
72
+ const errorMessages = significantErrors.map((error) => ts.flattenDiagnosticMessageText(error.messageText, "\n")).join("; ");
73
+ throw new TsConfigParseError(absolutePath, errorMessages, significantErrors);
74
+ }
69
75
  const extendedPaths = [absolutePath];
70
76
  collectExtendedPaths(configFileContent.config, configDir, extendedPaths);
71
77
  const tsOptions = parsedConfig.options;