Summary: Fixed scripts to return exit code 1 in case of error. Reviewed By: passy Differential Revision: D22357664 fbshipit-source-id: 1e067fe507e8f33cf21e70f3d15fd97175b9544e
20 lines
408 B
TypeScript
20 lines
408 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
import {resolvePluginDir} from './workspaces';
|
|
|
|
resolvePluginDir(process.argv[2])
|
|
.then((dir) => {
|
|
console.log(dir);
|
|
})
|
|
.catch((err: any) => {
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|