Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 4b85e28

Browse files
author
Chris Portela
committed
Fixed argv in get-schema after changes from facebook#2913
1 parent 860ab83 commit 4b85e28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-scripts/scripts/get-schema.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function isURL(str) {
1515
return str.length < 2083 && url.test(str)
1616
}
1717

18-
const url = process.argv[2]
18+
const url = process.argv[3]
1919

20-
const saveJson = process.argv[3] === 'json'
20+
const saveJson = process.argv[4] === 'json'
2121

2222
if (!url) {
2323
console.log("Usage: get-schema " + chalk.green("url"))

0 commit comments

Comments
 (0)