@renr/parcel-reporter-docgen 0.1.0-beta.10 → 0.1.0-beta.11

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.
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1,66 @@
1
+ #!/usr/bin/env node
2
+ import { generateProps } from "./generate-props.mjs";
3
+ import path from "path";
4
+ import fs from "fs";
5
+ import { parseArgs } from "util";
6
+ //#region src/cli.ts
7
+ const origin = "@renr/parcel-reporter-docgen";
8
+ function loadParcelRcConfig(rootDir) {
9
+ const parcelRcPath = path.join(rootDir, ".parcelrc");
10
+ if (!fs.existsSync(parcelRcPath)) return;
11
+ try {
12
+ const raw = JSON.parse(fs.readFileSync(parcelRcPath, "utf-8"));
13
+ if (Array.isArray(raw.reporters)) {
14
+ for (const entry of raw.reporters) if (typeof entry === "object" && entry !== null && entry.plugin === origin && entry.config) return entry.config;
15
+ }
16
+ } catch (_unused) {}
17
+ }
18
+ function loadPackageConfig(rootDir) {
19
+ const pkgPath = path.join(rootDir, "package.json");
20
+ if (!fs.existsSync(pkgPath)) return;
21
+ try {
22
+ return JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
23
+ } catch (_unused2) {
24
+ return;
25
+ }
26
+ }
27
+ async function main() {
28
+ var _ref, _ref2, _pkgConfig$origin, _ref3, _ref4, _pkgConfig$origin2, _ref5, _ref6, _pkgConfig$origin3;
29
+ const { values } = parseArgs({
30
+ options: {
31
+ source: {
32
+ type: "string",
33
+ short: "s"
34
+ },
35
+ output: {
36
+ type: "string",
37
+ short: "o"
38
+ },
39
+ tsconfig: {
40
+ type: "string",
41
+ short: "t"
42
+ },
43
+ root: {
44
+ type: "string",
45
+ short: "r"
46
+ }
47
+ },
48
+ strict: false
49
+ });
50
+ const rootDir = typeof values.root === "string" ? path.resolve(process.cwd(), values.root) : process.cwd();
51
+ const rcConfig = loadParcelRcConfig(rootDir);
52
+ const pkgConfig = loadPackageConfig(rootDir);
53
+ const source = (_ref = (_ref2 = typeof values.source === "string" ? values.source : void 0) !== null && _ref2 !== void 0 ? _ref2 : rcConfig === null || rcConfig === void 0 ? void 0 : rcConfig.source) !== null && _ref !== void 0 ? _ref : pkgConfig === null || pkgConfig === void 0 || (_pkgConfig$origin = pkgConfig[origin]) === null || _pkgConfig$origin === void 0 ? void 0 : _pkgConfig$origin.source;
54
+ const output = (_ref3 = (_ref4 = typeof values.output === "string" ? values.output : void 0) !== null && _ref4 !== void 0 ? _ref4 : rcConfig === null || rcConfig === void 0 ? void 0 : rcConfig.output) !== null && _ref3 !== void 0 ? _ref3 : pkgConfig === null || pkgConfig === void 0 || (_pkgConfig$origin2 = pkgConfig[origin]) === null || _pkgConfig$origin2 === void 0 ? void 0 : _pkgConfig$origin2.output;
55
+ const tsconfig = (_ref5 = (_ref6 = typeof values.tsconfig === "string" ? values.tsconfig : void 0) !== null && _ref6 !== void 0 ? _ref6 : rcConfig === null || rcConfig === void 0 ? void 0 : rcConfig.tsconfig) !== null && _ref5 !== void 0 ? _ref5 : pkgConfig === null || pkgConfig === void 0 || (_pkgConfig$origin3 = pkgConfig[origin]) === null || _pkgConfig$origin3 === void 0 ? void 0 : _pkgConfig$origin3.tsconfig;
56
+ if (!source) throw new Error(`No "${origin}" source found in .parcelrc or package.json.`);
57
+ await generateProps(source, rootDir, output || "docgen", (...args) => console.info(args.join(" ")), tsconfig);
58
+ }
59
+ main().catch((error) => {
60
+ console.error(error instanceof Error ? error.message : String(error));
61
+ process.exit(1);
62
+ });
63
+ //#endregion
64
+ export {};
65
+
66
+ //# sourceMappingURL=cli.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.mjs","names":[],"sources":["../../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport fs from \"fs\";\nimport path from \"path\";\nimport { parseArgs } from \"util\";\nimport { generateProps } from \"./generate-props.js\";\n\nconst origin = \"@renr/parcel-reporter-docgen\";\n\ninterface DocgenPluginConfig {\n source?: string;\n output?: string;\n tsconfig?: string;\n}\n\ninterface PackageConfig {\n [origin]?: DocgenPluginConfig;\n}\n\nfunction loadParcelRcConfig(rootDir: string): DocgenPluginConfig | undefined {\n const parcelRcPath = path.join(rootDir, \".parcelrc\");\n if (!fs.existsSync(parcelRcPath)) {\n return undefined;\n }\n try {\n const raw = JSON.parse(fs.readFileSync(parcelRcPath, \"utf-8\")) as {\n reporters?: Array<\n string | { plugin?: string; config?: DocgenPluginConfig }\n >;\n };\n if (Array.isArray(raw.reporters)) {\n for (const entry of raw.reporters) {\n if (\n typeof entry === \"object\" &&\n entry !== null &&\n entry.plugin === origin &&\n entry.config\n ) {\n return entry.config;\n }\n }\n }\n } catch {\n // ignore parse errors\n }\n return undefined;\n}\n\nfunction loadPackageConfig(rootDir: string): PackageConfig | undefined {\n const pkgPath = path.join(rootDir, \"package.json\");\n if (!fs.existsSync(pkgPath)) {\n return undefined;\n }\n try {\n return JSON.parse(fs.readFileSync(pkgPath, \"utf-8\")) as PackageConfig;\n } catch {\n return undefined;\n }\n}\n\nasync function main() {\n const { values } = parseArgs({\n options: {\n source: { type: \"string\", short: \"s\" },\n output: { type: \"string\", short: \"o\" },\n tsconfig: { type: \"string\", short: \"t\" },\n root: { type: \"string\", short: \"r\" },\n },\n strict: false,\n });\n\n const rootDir =\n typeof values.root === \"string\"\n ? path.resolve(process.cwd(), values.root)\n : process.cwd();\n\n const rcConfig = loadParcelRcConfig(rootDir);\n const pkgConfig = loadPackageConfig(rootDir);\n\n const source =\n (typeof values.source === \"string\" ? values.source : undefined) ??\n rcConfig?.source ??\n pkgConfig?.[origin]?.source;\n\n const output =\n (typeof values.output === \"string\" ? values.output : undefined) ??\n rcConfig?.output ??\n pkgConfig?.[origin]?.output;\n\n const tsconfig =\n (typeof values.tsconfig === \"string\" ? values.tsconfig : undefined) ??\n rcConfig?.tsconfig ??\n pkgConfig?.[origin]?.tsconfig;\n\n if (!source) {\n throw new Error(\n `No \"${origin}\" source found in .parcelrc or package.json.`\n );\n }\n\n await generateProps(\n source,\n rootDir,\n output || \"docgen\",\n (...args) => console.info(args.join(\" \")),\n tsconfig\n );\n}\n\nmain().catch((error: unknown) => {\n console.error(error instanceof Error ? error.message : String(error));\n process.exit(1);\n});\n"],"mappings":";;;;;;AAMA,MAAM,SAAS;AAYf,SAAS,mBAAmB,SAAiD;CAC3E,MAAM,eAAe,KAAK,KAAK,SAAS,WAAW;CACnD,IAAI,CAAC,GAAG,WAAW,YAAY,GAC7B;CAEF,IAAI;EACF,MAAM,MAAM,KAAK,MAAM,GAAG,aAAa,cAAc,OAAO,CAAC;EAK7D,IAAI,MAAM,QAAQ,IAAI,SAAS,GACxB;QAAA,MAAM,SAAS,IAAI,WACtB,IACE,OAAO,UAAU,YACjB,UAAU,QACV,MAAM,WAAW,UACjB,MAAM,QAEN,OAAO,MAAM;EAAA;CAIrB,SAAA,SAAQ,CAER;AAEF;AAEA,SAAS,kBAAkB,SAA4C;CACrE,MAAM,UAAU,KAAK,KAAK,SAAS,cAAc;CACjD,IAAI,CAAC,GAAG,WAAW,OAAO,GACxB;CAEF,IAAI;EACF,OAAO,KAAK,MAAM,GAAG,aAAa,SAAS,OAAO,CAAC;CACrD,SAAA,UAAQ;EACN;CACF;AACF;AAEA,eAAe,OAAO;;CACpB,MAAM,EAAE,WAAW,UAAU;EAC3B,SAAS;GACP,QAAQ;IAAE,MAAM;IAAU,OAAO;GAAI;GACrC,QAAQ;IAAE,MAAM;IAAU,OAAO;GAAI;GACrC,UAAU;IAAE,MAAM;IAAU,OAAO;GAAI;GACvC,MAAM;IAAE,MAAM;IAAU,OAAO;GAAI;EACrC;EACA,QAAQ;CACV,CAAC;CAED,MAAM,UACJ,OAAO,OAAO,SAAS,WACnB,KAAK,QAAQ,QAAQ,IAAI,GAAG,OAAO,IAAI,IACvC,QAAQ,IAAI;CAElB,MAAM,WAAW,mBAAmB,OAAO;CAC3C,MAAM,YAAY,kBAAkB,OAAO;CAE3C,MAAM,UAAA,QAAA,QACH,OAAO,OAAO,WAAW,WAAW,OAAO,SAAS,KAAA,OAAA,QAAA,UAAA,KAAA,IAAA,QAAA,aAAA,QAAA,aAAA,KAAA,IAAA,KAAA,IACrD,SAAU,YAAA,QAAA,SAAA,KAAA,IAAA,OAAA,cAAA,QAAA,cAAA,KAAA,MAAA,oBACV,UAAY,aAAA,QAAA,sBAAA,KAAA,IAAA,KAAA,IAAA,kBAAS;CAEvB,MAAM,UAAA,SAAA,QACH,OAAO,OAAO,WAAW,WAAW,OAAO,SAAS,KAAA,OAAA,QAAA,UAAA,KAAA,IAAA,QAAA,aAAA,QAAA,aAAA,KAAA,IAAA,KAAA,IACrD,SAAU,YAAA,QAAA,UAAA,KAAA,IAAA,QAAA,cAAA,QAAA,cAAA,KAAA,MAAA,qBACV,UAAY,aAAA,QAAA,uBAAA,KAAA,IAAA,KAAA,IAAA,mBAAS;CAEvB,MAAM,YAAA,SAAA,QACH,OAAO,OAAO,aAAa,WAAW,OAAO,WAAW,KAAA,OAAA,QAAA,UAAA,KAAA,IAAA,QAAA,aAAA,QAAA,aAAA,KAAA,IAAA,KAAA,IACzD,SAAU,cAAA,QAAA,UAAA,KAAA,IAAA,QAAA,cAAA,QAAA,cAAA,KAAA,MAAA,qBACV,UAAY,aAAA,QAAA,uBAAA,KAAA,IAAA,KAAA,IAAA,mBAAS;CAEvB,IAAI,CAAC,QACH,MAAM,IAAI,MACR,OAAO,OAAO,6CAChB;CAGF,MAAM,cACJ,QACA,SACA,UAAU,WACT,GAAG,SAAS,QAAQ,KAAK,KAAK,KAAK,GAAG,CAAC,GACxC,QACF;AACF;AAEA,KAAK,CAAC,CAAC,OAAO,UAAmB;CAC/B,QAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;CACpE,QAAQ,KAAK,CAAC;AAChB,CAAC"}
@@ -0,0 +1,4 @@
1
+ //#region src/generate-props.d.ts
2
+ export declare function generateProps(pagesPattern: string, rootDir: string, outputPath?: string, log?: (...args: unknown[]) => void, customTsconfigPath?: string): Promise<void>;
3
+ //#endregion
4
+ //# sourceMappingURL=generate-props.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-props.d.mts","names":[],"sources":["../../src/generate-props.ts"],"mappings":";wBAasB,cACpB,sBACA,iBACA,qBACA,UAAS,0BACT,8BAA2B"}
@@ -1,9 +1,9 @@
1
- import path from "path";
2
- import { fileURLToPath } from "url";
3
1
  import fs from "fs/promises";
2
+ import path from "path";
4
3
  import { withCustomConfig } from "react-docgen-typescript";
5
4
  import { glob } from "tinyglobby";
6
5
  import ts from "typescript";
6
+ import { fileURLToPath } from "url";
7
7
  //#region src/generate-props.ts
8
8
  const __filename = fileURLToPath(import.meta.url);
9
9
  path.dirname(__filename);
@@ -1,6 +1,2 @@
1
- import { Reporter } from "@parcel/plugin";
2
- //#region src/index.d.ts
3
- declare const _default: Reporter;
4
- //#endregion
5
- export { _default as default };
6
- //# sourceMappingURL=index.d.mts.map
1
+ import { generateProps } from "./generate-props.mjs";
2
+ export { generateProps };
@@ -1,71 +1,2 @@
1
1
  import { generateProps } from "./generate-props.mjs";
2
- import { name } from "./package.mjs";
3
- import ThrowableDiagnostic from "@parcel/diagnostic";
4
- import { Reporter } from "@parcel/plugin";
5
- import path from "path";
6
- import { pathToFileURL } from "url";
7
- import dedent from "dedent";
8
- //#region src/index.ts
9
- const origin = name;
10
- var src_default = new Reporter({ async report({ event, options, logger }) {
11
- if (event.type === "buildStart") {
12
- try {
13
- var _config$origin, _config$origin2, _config$origin3;
14
- const projectPackageJSON = path.join(options.projectRoot, "package.json");
15
- const config = await import(pathToFileURL(projectPackageJSON).toString(), { with: { type: "json" } }).then((mod) => mod.default);
16
- const source = (_config$origin = config[origin]) === null || _config$origin === void 0 ? void 0 : _config$origin.source;
17
- const output = (_config$origin2 = config[origin]) === null || _config$origin2 === void 0 ? void 0 : _config$origin2.output;
18
- const tsconfig = (_config$origin3 = config[origin]) === null || _config$origin3 === void 0 ? void 0 : _config$origin3.tsconfig;
19
- if (!source) throw new ThrowableDiagnostic({ diagnostic: {
20
- origin,
21
- message: dedent`No "@renr/parcel-reporter-docgen" source found in package.json.
22
- NOTE: if you are using a monorepo, you need to run parcel from the package that contains your pages rather than the project root.
23
- See https://github.com/parcel-bundler/parcel/issues/7206 for a workaround.`,
24
- hints: ["Add a \"@renr/parcel-reporter-docgen\" source to your package.json with a source e.g `../packages/ui/src/**/*.{ts,tsx}`."],
25
- codeFrames: [{
26
- codeHighlights: [{
27
- start: {
28
- line: 3,
29
- column: 2
30
- },
31
- end: {
32
- line: 7,
33
- column: 44
34
- },
35
- message: "Add a \"@renr/parcel-reporter-docgen\" source to generate docs for your UI components."
36
- }],
37
- language: "json",
38
- filePath: projectPackageJSON,
39
- code: dedent`{
40
- "@renr/parcel-reporter-docgen": {
41
- "source": "../packages/ui/src/**/*.{ts,tsx}",
42
- "output": "docs/components"
43
- }
44
- } `
45
- }]
46
- } });
47
- try {
48
- await generateProps(source, options.projectRoot, output || "docgen", (...args) => logger.info({
49
- origin,
50
- message: args.join(" ")
51
- }), tsconfig);
52
- } catch (error) {
53
- throwError(error);
54
- }
55
- } catch (error) {
56
- throwError(error);
57
- }
58
- return;
59
- }
60
- } });
61
- function throwError(error) {
62
- throw new ThrowableDiagnostic({ diagnostic: {
63
- origin,
64
- message: error.message,
65
- stack: error.stack
66
- } });
67
- }
68
- //#endregion
69
- export { src_default as default };
70
-
71
- //# sourceMappingURL=index.mjs.map
2
+ export { generateProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@renr/parcel-reporter-docgen",
3
- "version": "0.1.0-beta.10",
3
+ "version": "0.1.0-beta.11",
4
4
  "author": "Ren Rizzolo",
5
5
  "license": "MIT",
6
6
  "description": "Parcel reporter that generates ui docs via react-docgen-typescript",
@@ -16,8 +16,14 @@
16
16
  "main": "./dist/esm/index.mjs",
17
17
  "module": "./dist/esm/index.mjs",
18
18
  "types": "./dist/esm/index.d.mts",
19
+ "bin": {
20
+ "parcel-docgen": "./dist/esm/cli.mjs"
21
+ },
19
22
  "files": [
20
- "dist"
23
+ "dist",
24
+ "target/release/libparcel_reporter_docgen.so",
25
+ "target/release/libparcel_reporter_docgen.dylib",
26
+ "target/release/parcel_reporter_docgen.dll"
21
27
  ],
22
28
  "sideEffects": false,
23
29
  "exports": {
@@ -27,10 +33,30 @@
27
33
  "default": "./dist/esm/index.mjs"
28
34
  }
29
35
  },
36
+ "engines": {
37
+ "parcel": "^3.0.0-alpha.3"
38
+ },
39
+ "parcel": {
40
+ "abi": 1,
41
+ "artifacts": {
42
+ "aarch64-apple-darwin": "@renr/parcel-reporter-docgen-darwin-arm64",
43
+ "x86_64-apple-darwin": "@renr/parcel-reporter-docgen-darwin-x64",
44
+ "x86_64-pc-windows-msvc": "@renr/parcel-reporter-docgen-win32-x64-msvc",
45
+ "aarch64-pc-windows-msvc": "@renr/parcel-reporter-docgen-win32-arm64-msvc",
46
+ "x86_64-unknown-linux-gnu": "@renr/parcel-reporter-docgen-linux-x64-gnu",
47
+ "aarch64-unknown-linux-gnu": "@renr/parcel-reporter-docgen-linux-arm64-gnu",
48
+ "x86_64-unknown-linux-musl": "@renr/parcel-reporter-docgen-linux-x64-musl",
49
+ "aarch64-unknown-linux-musl": "@renr/parcel-reporter-docgen-linux-arm64-musl"
50
+ }
51
+ },
52
+ "scripts": {
53
+ "build": "node ../../scripts/build-rust.mjs && tsdown",
54
+ "build:rust": "node ../../scripts/build-rust.mjs",
55
+ "test:rust": "node ../../scripts/build-rust.mjs --test",
56
+ "prepack": "node ../../scripts/prepack-plugin.mjs",
57
+ "type-check": "tsc --noEmit"
58
+ },
30
59
  "dependencies": {
31
- "@parcel/diagnostic": "^2.16.4",
32
- "@parcel/plugin": "^2.16.4",
33
- "dedent": "^1.7.2",
34
60
  "react-docgen-typescript": "^2.4.0",
35
61
  "tinyglobby": "^0.2.17",
36
62
  "typescript": "npm:@typescript/typescript6@^6.0.2"
@@ -41,8 +67,14 @@
41
67
  "publishConfig": {
42
68
  "access": "public"
43
69
  },
44
- "scripts": {
45
- "build": "tsdown",
46
- "type-check": "tsc --noEmit"
70
+ "optionalDependencies": {
71
+ "@renr/parcel-reporter-docgen-darwin-arm64": "0.1.0-beta.11",
72
+ "@renr/parcel-reporter-docgen-darwin-x64": "0.1.0-beta.11",
73
+ "@renr/parcel-reporter-docgen-win32-x64-msvc": "0.1.0-beta.11",
74
+ "@renr/parcel-reporter-docgen-win32-arm64-msvc": "0.1.0-beta.11",
75
+ "@renr/parcel-reporter-docgen-linux-x64-gnu": "0.1.0-beta.11",
76
+ "@renr/parcel-reporter-docgen-linux-arm64-gnu": "0.1.0-beta.11",
77
+ "@renr/parcel-reporter-docgen-linux-x64-musl": "0.1.0-beta.11",
78
+ "@renr/parcel-reporter-docgen-linux-arm64-musl": "0.1.0-beta.11"
47
79
  }
48
- }
80
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Ren
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../src/index.ts"],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["packageJSON.name"],"sources":["../../src/index.ts"],"sourcesContent":["import ThrowableDiagnostic from \"@parcel/diagnostic\";\nimport { Reporter } from \"@parcel/plugin\";\nimport path from \"path\";\nimport { pathToFileURL } from \"url\";\nimport { generateProps } from \"./generate-props.js\";\nimport packageJSON from \"../package.json\" with { type: \"json\" };\nimport dedent from \"dedent\";\n\nconst origin = packageJSON.name;\n\nexport default new Reporter({\n async report({ event, options, logger }) {\n if (event.type === \"buildStart\") {\n try {\n const projectPackageJSON = path.join(\n options.projectRoot,\n \"package.json\"\n );\n\n const fileURL = pathToFileURL(projectPackageJSON).toString();\n\n const config = (await import(fileURL, {\n with: {\n type: \"json\",\n },\n }).then((mod) => mod.default)) as {\n [origin]?: {\n source: string;\n output?: string;\n tsconfig?: string;\n };\n };\n\n const source = config[origin]?.source;\n const output = config[origin]?.output;\n const tsconfig = config[origin]?.tsconfig;\n\n if (!source) {\n throw new ThrowableDiagnostic({\n diagnostic: {\n origin,\n message: dedent`No \"@renr/parcel-reporter-docgen\" source found in package.json. \n NOTE: if you are using a monorepo, you need to run parcel from the package that contains your pages rather than the project root.\n See https://github.com/parcel-bundler/parcel/issues/7206 for a workaround.`,\n hints: [\n 'Add a \"@renr/parcel-reporter-docgen\" source to your package.json with a source e.g `../packages/ui/src/**/*.{ts,tsx}`.',\n ],\n\n codeFrames: [\n {\n codeHighlights: [\n {\n start: { line: 3, column: 2 },\n end: { line: 7, column: 44 },\n message:\n 'Add a \"@renr/parcel-reporter-docgen\" source to generate docs for your UI components.',\n },\n ],\n language: \"json\",\n filePath: projectPackageJSON,\n code: dedent`{\n \"@renr/parcel-reporter-docgen\": {\n \"source\": \"../packages/ui/src/**/*.{ts,tsx}\",\n \"output\": \"docs/components\"\n }\n } `,\n },\n ],\n },\n });\n }\n try {\n await generateProps(\n source,\n options.projectRoot,\n output || \"docgen\",\n (...args) => logger.info({ origin, message: args.join(\" \") }),\n tsconfig\n );\n } catch (error) {\n throwError(error as Error);\n }\n } catch (error) {\n throwError(error as Error);\n }\n return;\n }\n },\n});\n\nfunction throwError(error: Error) {\n throw new ThrowableDiagnostic({\n diagnostic: {\n origin,\n message: error.message,\n stack: error.stack,\n },\n });\n}\n"],"mappings":";;;;;;;;AAQA,MAAM,SAASA;AAEf,IAAA,cAAe,IAAI,SAAS,EAC1B,MAAM,OAAO,EAAE,OAAO,SAAS,UAAU;CACvC,IAAI,MAAM,SAAS,cAAc;EAC/B,IAAI;;GACF,MAAM,qBAAqB,KAAK,KAC9B,QAAQ,aACR,cACF;GAIA,MAAM,SAAU,MAAM,OAFN,cAAc,kBAAkB,CAAC,CAAC,SAEf,GAAG,EACpC,MAAM,EACJ,MAAM,OACR,EACF,EAAE,CAAC,MAAM,QAAQ,IAAI,OAAO;GAQ5B,MAAM,UAAA,iBAAS,OAAO,aAAA,QAAA,mBAAA,KAAA,IAAA,KAAA,IAAA,eAAS;GAC/B,MAAM,UAAA,kBAAS,OAAO,aAAA,QAAA,oBAAA,KAAA,IAAA,KAAA,IAAA,gBAAS;GAC/B,MAAM,YAAA,kBAAW,OAAO,aAAA,QAAA,oBAAA,KAAA,IAAA,KAAA,IAAA,gBAAS;GAEjC,IAAI,CAAC,QACH,MAAM,IAAI,oBAAoB,EAC5B,YAAY;IACV;IACA,SAAS,MAAM;;;IAGf,OAAO,CACL,0HACF;IAEA,YAAY,CACV;KACE,gBAAgB,CACd;MACE,OAAO;OAAE,MAAM;OAAG,QAAQ;MAAE;MAC5B,KAAK;OAAE,MAAM;OAAG,QAAQ;MAAG;MAC3B,SACE;KACJ,CACF;KACA,UAAU;KACV,UAAU;KACV,MAAM,MAAM;;;;;;IAMd,CACF;GACF,EACF,CAAC;GAEH,IAAI;IACF,MAAM,cACJ,QACA,QAAQ,aACR,UAAU,WACT,GAAG,SAAS,OAAO,KAAK;KAAE;KAAQ,SAAS,KAAK,KAAK,GAAG;IAAE,CAAC,GAC5D,QACF;GACF,SAAS,OAAO;IACd,WAAW,KAAc;GAC3B;EACF,SAAS,OAAO;GACd,WAAW,KAAc;EAC3B;EACA;CACF;AACF,EACF,CAAC;AAED,SAAS,WAAW,OAAc;CAChC,MAAM,IAAI,oBAAoB,EAC5B,YAAY;EACV;EACA,SAAS,MAAM;EACf,OAAO,MAAM;CACf,EACF,CAAC;AACH"}
@@ -1,6 +0,0 @@
1
- //#region package.json
2
- var name = "@renr/parcel-reporter-docgen";
3
- //#endregion
4
- export { name };
5
-
6
- //# sourceMappingURL=package.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package.mjs","names":[],"sources":["../../package.json"],"sourcesContent":[""],"mappings":""}