Skip to content

Commit 75300d9

Browse files
authored
Merge pull request #5559 from SchemaStore/hyperupcall-removedeprecate
2 parents cae4d45 + 689997a commit 75300d9

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

cli.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,13 @@ const SchemaDialects = [
100100
{ draftVersion: 'draft-03', url: 'http://json-schema.org/draft-03/schema#', isActive: false, isTooHigh: false },
101101
]
102102

103-
/** @type {{ _: string[], fix?: boolean, help?: boolean, SchemaName?: string, 'schema-name'?: string, 'unstable-check-with'?: string, 'build-xregistry'?: boolean, 'verify-xregistry'?: boolean }} */
103+
/** @type {{ _: string[], fix?: boolean, help?: boolean, 'schema-name'?: string, 'unstable-check-with'?: string, 'build-xregistry'?: boolean, 'verify-xregistry'?: boolean }} */
104104
const argv = /** @type {any} */ (
105105
minimist(process.argv.slice(2), {
106-
string: ['SchemaName', 'schema-name', 'unstable-check-with'],
106+
string: ['schema-name', 'unstable-check-with'],
107107
boolean: ['help', 'build-xregistry', 'verify-xregistry'],
108108
})
109109
)
110-
if (argv.SchemaName) {
111-
process.stderr.write(
112-
`WARNING: Please use "--schema-name" instead of "--SchemaName". The flag "--SchemaName" will be removed.\n`,
113-
)
114-
argv['schema-name'] = argv.SchemaName
115-
}
116110

117111
/**
118112
* @typedef {Object} JsonSchemaAny
@@ -2268,16 +2262,9 @@ EXAMPLES:
22682262
'build-website': taskBuildWebsite,
22692263
'build-xregistry': taskBuildXRegistry,
22702264
coverage: taskCoverage,
2271-
build: taskCheck, // Undocumented alias.
22722265
}
22732266
const taskOrFn = argv._[0]
22742267
if (taskOrFn in taskMap) {
2275-
if (taskOrFn === 'build') {
2276-
process.stdout.write(
2277-
`WARNING: Please use the "check" task instead of "build". The "build" task will be removed.\n`,
2278-
)
2279-
}
2280-
22812268
await taskMap[taskOrFn]()
22822269
} else {
22832270
eval(`${taskOrFn}()`)

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"prettier:fix": "prettier --config .prettierrc.cjs --ignore-path .gitignore --write .",
2222
"typecheck": "tsc --project ./jsconfig.json",
2323
"eslint": "eslint ./cli.js",
24-
"eslint:fix": "eslint --fix ./cli.js",
25-
"build": "echo \"WARNING: Please use 'node ./cli.js' instead of 'npm run'. This method for execution will be removed.\" && npm run eslint && node ./cli.js check && ./scripts/dirty_repository_check.sh"
24+
"eslint:fix": "eslint --fix ./cli.js"
2625
},
2726
"devDependencies": {
2827
"@eslint/js": "^9.26.0",

0 commit comments

Comments
 (0)