Skip to content

Commit d2fbc65

Browse files
react-native: use basename of the script
Co-authored-by: Sebastian Alex <sebapotok@gmail.com>
1 parent f973bb7 commit d2fbc65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native/addDebugIdToSourceMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function includeDebugIdInSourceMap(sourceMapPath, debugId) {
2020

2121
const args = process.argv.slice(2);
2222
if (args.length < 2) {
23-
console.error('Usage: node update-json.js <sourcemapPath> <debugId>');
23+
console.error(`Usage: node ${path.basename(args[1])} <sourcemapPath> <debugId>`);
2424
process.exit(1);
2525
}
2626

0 commit comments

Comments
 (0)