Skip to content

Commit ef508a1

Browse files
committed
tools: drop stale references to removed config schema file
1 parent ea82cc6 commit ef508a1

5 files changed

Lines changed: 1 addition & 73 deletions

File tree

.github/label-pr-config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ exlusiveLabels:
154154
# Specific map for typescript.md as it should be labeled 'strip-types'
155155
/^doc\/api\/typescript.md$/: doc, strip-types
156156

157-
/^doc\/node-config-schema.json$/: doc, config
158-
159157
/^doc\//: doc
160158

161159
# More specific benchmarks

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation wit
863863

864864
out/doc:
865865
mkdir -p $@
866-
$(NODE) tools/gen_node_config_schema.mjs --json-out $@/node-config-schema.json
867866

868867
# If it's a source tarball, doc/api already contains the generated docs.
869868
# Just copy everything under doc/api over.

test/parallel/test-config-json-schema.js

Lines changed: 0 additions & 52 deletions
This file was deleted.

tools/doc/generate-json-schema.mjs

Lines changed: 0 additions & 7 deletions
This file was deleted.

tools/gen_node_config_schema.mjs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Usage:
66
// node tools/gen_node_config_schema.mjs
77
// node tools/gen_node_config_schema.mjs --check
8-
// node tools/gen_node_config_schema.mjs --json-out PATH
98

109
import { spawnSync } from 'node:child_process';
1110
import { readFileSync, writeFileSync } from 'node:fs';
@@ -61,12 +60,7 @@ const stripped = stripAdditionalProperties(schema);
6160
const schemaJson = JSON.stringify(stripped, null, 2);
6261
const expectedHeader = buildHeader(schemaJson);
6362

64-
const args = process.argv.slice(2);
65-
const checkMode = args.includes('--check');
66-
const jsonOutIdx = args.indexOf('--json-out');
67-
const jsonOutPath = jsonOutIdx >= 0 ? args[jsonOutIdx + 1] : null;
68-
69-
if (checkMode) {
63+
if (process.argv.includes('--check')) {
7064
const actual = readFileSync(HEADER_PATH, 'utf8');
7165
if (actual !== expectedHeader) {
7266
console.error(
@@ -79,8 +73,4 @@ if (checkMode) {
7973
} else {
8074
writeFileSync(HEADER_PATH, expectedHeader);
8175
console.log(`Wrote ${relative(ROOT, HEADER_PATH)}`);
82-
if (jsonOutPath) {
83-
writeFileSync(jsonOutPath, schemaJson + '\n');
84-
console.log(`Wrote ${jsonOutPath}`);
85-
}
8676
}

0 commit comments

Comments
 (0)