@graphql-markdown/docusaurus 1.32.1 → 1.34.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/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +41 -4
- package/dist/mdx/category.d.ts +9 -0
- package/dist/mdx/category.d.ts.map +1 -1
- package/dist/mdx/category.js +10 -1
- package/dist/mdx/components.d.ts +11 -0
- package/dist/mdx/components.d.ts.map +1 -1
- package/dist/mdx/components.js +11 -20
- package/dist/mdx/index.d.ts +4 -3
- package/dist/mdx/index.d.ts.map +1 -1
- package/dist/mdx/index.js +21 -14
- package/package.json +19 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docusaurus integration for running GraphQL-Markdown and wiring CLI commands.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
1
6
|
import type { LoadContext, Plugin, PluginOptions } from "@docusaurus/types";
|
|
2
7
|
import type { GraphQLMarkdownCliOptions } from "@graphql-markdown/types";
|
|
3
8
|
/**
|
|
9
|
+
* Docusaurus plugin wrapper that wires GraphQL-Markdown into the build,
|
|
10
|
+
* optionally running the CLI during `docusaurus build` and registering
|
|
11
|
+
* the `graphql-to-doc` command on the local CLI.
|
|
4
12
|
*
|
|
13
|
+
* @param _ - Load context (unused).
|
|
14
|
+
* @param options - GraphQL-Markdown CLI options plus Docusaurus plugin options.
|
|
15
|
+
* @returns A configured Docusaurus plugin instance.
|
|
5
16
|
*/
|
|
6
17
|
export default function pluginGraphQLDocGenerator(_: LoadContext, options: GraphQLMarkdownCliOptions & Partial<PluginOptions>): Promise<Plugin>;
|
|
7
18
|
export { createMDXFormatter } from "./mdx";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAczE;;;;;;;;GAQG;AACH,wBAA8B,yBAAyB,CACrD,CAAC,EAAE,WAAW,EACd,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC,GAC1D,OAAO,CAAC,MAAM,CAAC,CA6CjB;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
5
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
36
|
exports.createMDXFormatter = void 0;
|
|
7
37
|
exports.default = pluginGraphQLDocGenerator;
|
|
8
38
|
const utils_1 = require("@docusaurus/utils");
|
|
9
39
|
const cli_1 = require("@graphql-markdown/cli");
|
|
10
|
-
const logger_1 =
|
|
40
|
+
const logger_1 = __importStar(require("@graphql-markdown/logger"));
|
|
11
41
|
const NAME = "docusaurus-graphql-doc-generator";
|
|
12
42
|
const LOGGER_MODULE = "@docusaurus/logger";
|
|
13
43
|
const MDX_PACKAGE = "@graphql-markdown/docusaurus/mdx";
|
|
14
44
|
/**
|
|
45
|
+
* Docusaurus plugin wrapper that wires GraphQL-Markdown into the build,
|
|
46
|
+
* optionally running the CLI during `docusaurus build` and registering
|
|
47
|
+
* the `graphql-to-doc` command on the local CLI.
|
|
15
48
|
*
|
|
49
|
+
* @param _ - Load context (unused).
|
|
50
|
+
* @param options - GraphQL-Markdown CLI options plus Docusaurus plugin options.
|
|
51
|
+
* @returns A configured Docusaurus plugin instance.
|
|
16
52
|
*/
|
|
17
53
|
async function pluginGraphQLDocGenerator(_, options) {
|
|
18
54
|
await (0, logger_1.default)(LOGGER_MODULE);
|
|
@@ -25,6 +61,7 @@ async function pluginGraphQLDocGenerator(_, options) {
|
|
|
25
61
|
if (options.runOnBuild !== true) {
|
|
26
62
|
return;
|
|
27
63
|
}
|
|
64
|
+
(0, logger_1.log)("`runOnBuild` option is deprecated and will be removed in a future release. Use the `graphql-to-doc` CLI command instead.", logger_1.LogLevel.warn);
|
|
28
65
|
await (0, cli_1.runGraphQLMarkdown)(options, {}, LOGGER_MODULE);
|
|
29
66
|
},
|
|
30
67
|
/**
|
package/dist/mdx/category.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module mdx
|
|
3
3
|
* This module provides utilities for generating MDX index files in Docusaurus format.
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Hook that materializes a `_category_.yml` file before Docusaurus indexes
|
|
9
|
+
* a directory, ensuring generated bundles have labels, ordering, and
|
|
10
|
+
* optional generated-index metadata even when the folder was produced by the CLI.
|
|
11
|
+
*
|
|
12
|
+
* @param event - Hook payload containing the target directory, category name, and generator options.
|
|
4
13
|
*/
|
|
5
14
|
export declare const beforeGenerateIndexMetafileHook: (event: {
|
|
6
15
|
data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/mdx/category.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/mdx/category.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkBH;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;mBAiC3C,CAAC"}
|
package/dist/mdx/category.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @module mdx
|
|
4
4
|
* This module provides utilities for generating MDX index files in Docusaurus format.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
5
7
|
*/
|
|
6
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
9
|
exports.beforeGenerateIndexMetafileHook = void 0;
|
|
@@ -13,6 +15,13 @@ var SidebarPosition;
|
|
|
13
15
|
SidebarPosition[SidebarPosition["FIRST"] = 1] = "FIRST";
|
|
14
16
|
SidebarPosition[SidebarPosition["LAST"] = 999] = "LAST";
|
|
15
17
|
})(SidebarPosition || (SidebarPosition = {}));
|
|
18
|
+
/**
|
|
19
|
+
* Hook that materializes a `_category_.yml` file before Docusaurus indexes
|
|
20
|
+
* a directory, ensuring generated bundles have labels, ordering, and
|
|
21
|
+
* optional generated-index metadata even when the folder was produced by the CLI.
|
|
22
|
+
*
|
|
23
|
+
* @param event - Hook payload containing the target directory, category name, and generator options.
|
|
24
|
+
*/
|
|
16
25
|
const beforeGenerateIndexMetafileHook = async (event) => {
|
|
17
26
|
const { dirPath, category, options } = event.data;
|
|
18
27
|
const filePath = (0, node_path_1.join)(dirPath, CATEGORY_YAML);
|
|
@@ -31,7 +40,7 @@ const beforeGenerateIndexMetafileHook = async (event) => {
|
|
|
31
40
|
const position = typeof options?.sidebarPosition === "number"
|
|
32
41
|
? options.sidebarPosition
|
|
33
42
|
: SidebarPosition.FIRST;
|
|
34
|
-
const content = `label: ${label}\nposition: ${position}\n${className}link: ${link}\ncollapsible: ${options?.collapsible ?? true}\ncollapsed: ${options?.collapsed ?? true}\n`;
|
|
43
|
+
const content = `label: ${label}\nposition: ${position}\n${className}link: ${link}\ncollapsible: ${Boolean(options?.collapsible ?? true)}\ncollapsed: ${Boolean(options?.collapsed ?? true)}\n`;
|
|
35
44
|
await (0, utils_1.ensureDir)(dirPath);
|
|
36
45
|
await (0, utils_1.saveFile)(filePath, content);
|
|
37
46
|
};
|
package/dist/mdx/components.d.ts
CHANGED
|
@@ -3,5 +3,16 @@
|
|
|
3
3
|
* This module provides MDX React components.
|
|
4
4
|
*/
|
|
5
5
|
import type { MDXString } from "@graphql-markdown/types";
|
|
6
|
+
/**
|
|
7
|
+
* MDX helper components injected into generated documents so Docusaurus
|
|
8
|
+
* can render badges, bullets, details, and SpecifiedBy links without
|
|
9
|
+
* requiring manual component registration in every project.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* String literal that declares the React helpers (`Bullet`, `SpecifiedBy`, etc.)
|
|
15
|
+
* which GraphQL-Markdown prepends to every generated MDX file.
|
|
16
|
+
*/
|
|
6
17
|
export declare const mdxDeclaration: MDXString;
|
|
7
18
|
//# sourceMappingURL=components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/mdx/components.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/mdx/components.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;;;;GAMG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAQf,CAAC"}
|
package/dist/mdx/components.js
CHANGED
|
@@ -5,6 +5,17 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.mdxDeclaration = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* MDX helper components injected into generated documents so Docusaurus
|
|
10
|
+
* can render badges, bullets, details, and SpecifiedBy links without
|
|
11
|
+
* requiring manual component registration in every project.
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* String literal that declares the React helpers (`Bullet`, `SpecifiedBy`, etc.)
|
|
17
|
+
* which GraphQL-Markdown prepends to every generated MDX file.
|
|
18
|
+
*/
|
|
8
19
|
exports.mdxDeclaration = `
|
|
9
20
|
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}> ● </span></>
|
|
10
21
|
|
|
@@ -12,25 +23,5 @@ export const SpecifiedBy = (props) => <>Specification<a className="link" style={
|
|
|
12
23
|
|
|
13
24
|
export const Badge = (props) => <><span className={props.class}>{props.text}</span></>
|
|
14
25
|
|
|
15
|
-
import { useState } from 'react';
|
|
16
|
-
|
|
17
|
-
export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => {
|
|
18
|
-
const [open, setOpen] = useState(startOpen);
|
|
19
|
-
return (
|
|
20
|
-
<details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
|
|
21
|
-
<summary
|
|
22
|
-
onClick={(e) => {
|
|
23
|
-
e.preventDefault();
|
|
24
|
-
setOpen((open) => !open);
|
|
25
|
-
}}
|
|
26
|
-
style={{ listStyle:'none' }}
|
|
27
|
-
>
|
|
28
|
-
{open ? dataOpen : dataClose}
|
|
29
|
-
</summary>
|
|
30
|
-
{open && children}
|
|
31
|
-
</details>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
26
|
|
|
36
27
|
`;
|
package/dist/mdx/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* specification links, and other MDX-specific formatting for GraphQL documentation.
|
|
6
6
|
*
|
|
7
7
|
* @primaryExport
|
|
8
|
+
* @packageDocumentation
|
|
8
9
|
*/
|
|
9
10
|
import type { AdmonitionType, Badge, CollapsibleOption, Formatter, FrontMatterOptions, Maybe, MDXString, MetaInfo, TypeLink } from "@graphql-markdown/types";
|
|
10
11
|
export { mdxDeclaration } from "./components";
|
|
@@ -64,9 +65,9 @@ export declare const formatMDXFrontmatter: (_props: Maybe<FrontMatterOptions>, f
|
|
|
64
65
|
/**
|
|
65
66
|
* Creates an MDX formatter for Docusaurus documentation.
|
|
66
67
|
*
|
|
67
|
-
* The MDX formatter produces
|
|
68
|
-
*
|
|
69
|
-
*
|
|
68
|
+
* The MDX formatter produces MDX/HTML markup compatible with Docusaurus.
|
|
69
|
+
* It uses helper components like `<Badge>`, `<Bullet>`, and `<SpecifiedBy>`,
|
|
70
|
+
* and emits native `<details>/<summary>` blocks for collapsible sections.
|
|
70
71
|
*
|
|
71
72
|
* @param meta - Optional metadata for framework-specific formatting
|
|
72
73
|
* @returns A complete Formatter implementation for MDX output
|
package/dist/mdx/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mdx/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mdx/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,KAAK,EACL,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACT,MAAM,yBAAyB,CAAC;AAWjC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,cAAc,2CAI1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,6EAU/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,8BAE3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,4DAO5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,4BAEpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,yDAM/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,uCAKzB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,8EAShC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,kBAAkB,uCAgB9B,CAAC"}
|
package/dist/mdx/index.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* specification links, and other MDX-specific formatting for GraphQL documentation.
|
|
7
7
|
*
|
|
8
8
|
* @primaryExport
|
|
9
|
+
* @packageDocumentation
|
|
9
10
|
*/
|
|
10
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
12
|
exports.createMDXFormatter = exports.formatMDXFrontmatter = exports.formatMDXLink = exports.formatMDXNameEntity = exports.formatMDXSpecifiedByLink = exports.formatMDXDetails = exports.formatMDXBullet = exports.formatMDXAdmonition = exports.formatMDXBadge = exports.beforeGenerateIndexMetafileHook = exports.mdxDeclaration = void 0;
|
|
@@ -56,7 +57,9 @@ exports.formatMDXBullet = formatMDXBullet;
|
|
|
56
57
|
* @returns Formatted MDX string for the collapsible section
|
|
57
58
|
*/
|
|
58
59
|
const formatMDXDetails = ({ dataOpen, dataClose, }) => {
|
|
59
|
-
|
|
60
|
+
const openLabel = (0, utils_1.escapeMDX)(`Hide ${dataOpen}`);
|
|
61
|
+
const closeLabel = (0, utils_1.escapeMDX)(`Show ${dataClose}`);
|
|
62
|
+
return `${utils_1.MARKDOWN_EOP}<details class="graphql-markdown-details">${utils_1.MARKDOWN_EOL}<summary>${utils_1.MARKDOWN_EOL}<span class="graphql-markdown-details-label-closed">${closeLabel}</span>${utils_1.MARKDOWN_EOL}<span class="graphql-markdown-details-label-open">${openLabel}</span>${utils_1.MARKDOWN_EOL}</summary>${utils_1.MARKDOWN_EOP}\r${utils_1.MARKDOWN_EOP}</details>${utils_1.MARKDOWN_EOP}`;
|
|
60
63
|
};
|
|
61
64
|
exports.formatMDXDetails = formatMDXDetails;
|
|
62
65
|
/**
|
|
@@ -107,9 +110,9 @@ exports.formatMDXFrontmatter = formatMDXFrontmatter;
|
|
|
107
110
|
/**
|
|
108
111
|
* Creates an MDX formatter for Docusaurus documentation.
|
|
109
112
|
*
|
|
110
|
-
* The MDX formatter produces
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
+
* The MDX formatter produces MDX/HTML markup compatible with Docusaurus.
|
|
114
|
+
* It uses helper components like `<Badge>`, `<Bullet>`, and `<SpecifiedBy>`,
|
|
115
|
+
* and emits native `<details>/<summary>` blocks for collapsible sections.
|
|
113
116
|
*
|
|
114
117
|
* @param meta - Optional metadata for framework-specific formatting
|
|
115
118
|
* @returns A complete Formatter implementation for MDX output
|
|
@@ -123,14 +126,18 @@ exports.formatMDXFrontmatter = formatMDXFrontmatter;
|
|
|
123
126
|
* // '<Badge class="badge badge--secondary " text="Required"/>'
|
|
124
127
|
* ```
|
|
125
128
|
*/
|
|
126
|
-
const createMDXFormatter = (meta) =>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
129
|
+
const createMDXFormatter = (meta) => {
|
|
130
|
+
return {
|
|
131
|
+
formatMDXBadge: exports.formatMDXBadge,
|
|
132
|
+
formatMDXAdmonition: (admonition, _meta) => {
|
|
133
|
+
return (0, exports.formatMDXAdmonition)(admonition, meta ?? _meta);
|
|
134
|
+
},
|
|
135
|
+
formatMDXBullet: exports.formatMDXBullet,
|
|
136
|
+
formatMDXDetails: exports.formatMDXDetails,
|
|
137
|
+
formatMDXFrontmatter: exports.formatMDXFrontmatter,
|
|
138
|
+
formatMDXLink: exports.formatMDXLink,
|
|
139
|
+
formatMDXNameEntity: exports.formatMDXNameEntity,
|
|
140
|
+
formatMDXSpecifiedByLink: exports.formatMDXSpecifiedByLink,
|
|
141
|
+
};
|
|
142
|
+
};
|
|
136
143
|
exports.createMDXFormatter = createMDXFormatter;
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/graphql-markdown/graphql-markdown/issues"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.34.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -60,18 +60,29 @@
|
|
|
60
60
|
"scripts": {
|
|
61
61
|
"stryker": "stryker run",
|
|
62
62
|
"clean": "tsgo --build --clean && rm -rf ./dist",
|
|
63
|
-
"docs": "typedoc",
|
|
64
|
-
"build": "tsgo --build"
|
|
63
|
+
"docs": "typedoc --options typedoc.config.mjs",
|
|
64
|
+
"build": "tsgo --build",
|
|
65
|
+
"lint": "eslint --config ../../packages/tooling-config/eslint/config.ts \"{src,tests}/**/*.{ts,js,json,gql}\"",
|
|
66
|
+
"lint:fix": "eslint --config ../../packages/tooling-config/eslint/config.ts \"{src,tests}/**/*.{ts,js,json,gql}\" --fix",
|
|
67
|
+
"prettier": "prettier \"{src,tests,assets}/**/*.{ts,js,json,md,gql}\" --check",
|
|
68
|
+
"prettier:fix": "prettier \"{src,tests,assets}/**/*.{ts,js,json,md,gql}\" --write",
|
|
69
|
+
"ts:check": "tsgo --noEmit",
|
|
70
|
+
"test": "jest",
|
|
71
|
+
"test:unit": "jest --passWithNoTests --testPathPatterns=tests/unit",
|
|
72
|
+
"test:integration": "jest --passWithNoTests --testPathPatterns=tests/integration",
|
|
73
|
+
"test:ci": "jest --passWithNoTests --ci --silent --randomize --runInBand",
|
|
74
|
+
"test:watch": "jest --watch"
|
|
65
75
|
},
|
|
66
76
|
"dependencies": {
|
|
67
|
-
"@graphql-markdown/cli": "^0.
|
|
68
|
-
"@graphql-markdown/logger": "^1.0.
|
|
69
|
-
"@graphql-markdown/
|
|
77
|
+
"@graphql-markdown/cli": "^0.7.1",
|
|
78
|
+
"@graphql-markdown/logger": "^1.0.6",
|
|
79
|
+
"@graphql-markdown/types": "^1.12.0",
|
|
80
|
+
"@graphql-markdown/utils": "^1.11.0",
|
|
70
81
|
"@docusaurus/utils": ">=3.9.2"
|
|
71
82
|
},
|
|
72
83
|
"devDependencies": {
|
|
73
84
|
"@docusaurus/types": "^3.7.0",
|
|
74
|
-
"@graphql-markdown/
|
|
85
|
+
"@graphql-markdown/tooling-config": "^1.0.0"
|
|
75
86
|
},
|
|
76
87
|
"peerDependencies": {
|
|
77
88
|
"@docusaurus/logger": "*"
|
|
@@ -83,9 +94,7 @@
|
|
|
83
94
|
"node": ">=20"
|
|
84
95
|
},
|
|
85
96
|
"publishConfig": {
|
|
86
|
-
"
|
|
87
|
-
"access": "public",
|
|
88
|
-
"scripts": {}
|
|
97
|
+
"access": "public"
|
|
89
98
|
},
|
|
90
99
|
"typescript": {
|
|
91
100
|
"definition": "dist/index.d.ts"
|