Skip to content

Commit f1b6d67

Browse files
src: rename config json schema
1 parent 779ab6a commit f1b6d67

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Makefile

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

810810
out/doc:
811811
mkdir -p $@
812-
cp doc/node_config_json_schema.json $@
812+
cp doc/node-config-schema.json $@
813813

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

doc/api/cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ with the following structure:
932932

933933
```json
934934
{
935-
"$schema": "https://nodejs.org/dist/REPLACEME/docs/node_config_json_schema.json",
935+
"$schema": "https://nodejs.org/dist/REPLACEME/docs/node-config-schema.json",
936936
"experimental-transform-types": true,
937937
"import": [
938938
"amaro/transform"
@@ -947,7 +947,7 @@ Only flags that are allowed in [`NODE_OPTIONS`][] are supported.
947947
No-op flags are not supported.
948948
Not all V8 flags are currently supported.
949949

950-
It is possible to use the [official JSON schema](../node_config_json_schema.json)
950+
It is possible to use the [official JSON schema](../node-config-schema.json)
951951
to validate the configuration file, which may vary depending on the Node.js version.
952952
Each key in the configuration file corresponds to a flag that can be passed
953953
as a command-line argument. The value of the key is the value that would be
File renamed without changes.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (!common.hasIntl) {
2424
const {
2525
generateConfigJsonSchema,
2626
} = require('internal/options');
27-
const schemaInDoc = require('../../doc/node_config_json_schema.json');
27+
const schemaInDoc = require('../../doc/node-config-schema.json');
2828
const assert = require('assert');
2929

3030
const schema = generateConfigJsonSchema();
@@ -35,6 +35,6 @@ const schema = generateConfigJsonSchema();
3535
// current JSON schema.
3636
// To regenerate the JSON schema, run:
3737
// out/Release/node --expose-internals tools/doc/generate-json-schema.mjs
38-
// And then run make doc to update the out/doc/node_config_json_schema.json file.
38+
// And then run make doc to update the out/doc/node-config-schema.json file.
3939
assert.strictEqual(JSON.stringify(schema), JSON.stringify(schemaInDoc), 'JSON schema is outdated.' +
4040
'Run `out/Release/node --expose-internals tools/doc/generate-json-schema.mjs` to update it.');

tools/doc/generate-json-schema.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import internal from 'internal/options';
44
import { writeFileSync } from 'fs';
55

66
const schema = internal.generateConfigJsonSchema();
7-
writeFileSync('doc/node_config_json_schema.json', `${JSON.stringify(schema, null, 2)}\n`);
7+
writeFileSync('doc/node-config-schema.json', `${JSON.stringify(schema, null, 2)}\n`);

0 commit comments

Comments
 (0)