Files
flipper/desktop/scripts/resolve-plugin-dir.ts
Anton Nikolaev a8a16e24b3 Set exit code to 1 if script failed
Summary: Fixed scripts to return exit code 1 in case of error.

Reviewed By: passy

Differential Revision: D22357664

fbshipit-source-id: 1e067fe507e8f33cf21e70f3d15fd97175b9544e
2020-07-02 10:20:36 -07:00

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);
});