Skip to content

Commit ae65fc0

Browse files
authored
fix: preserve generated version documentation (#4777)
1 parent 677f230 commit ae65fc0

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

resources/gen-version.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ if (!versionMatch) {
99
const [, major, minor, patch, preReleaseTag] = versionMatch;
1010

1111
const body = `
12+
/** @category Version */
13+
1214
// Note: This file is autogenerated using "resources/gen-version.js" script and
1315
// automatically updated by "npm version" command.
1416
15-
/**
16-
* A string containing the version of the GraphQL.js library
17-
*/
17+
/** A string containing the version of the GraphQL.js library */
1818
export const version = '${version}' as string;
1919
20-
/**
21-
* An object containing the components of the GraphQL.js version string
22-
*/
20+
/** An object containing the components of the GraphQL.js version string */
2321
export const versionInfo: Readonly<{
2422
major: number;
2523
minor: number;

0 commit comments

Comments
 (0)