microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
6a465861663d7c6f9433e89c6f6619df320dcef3

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/common/codepush/codePushProjectHelper.ts

17lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import * as Q from "q";
5import * as fs from "fs";
6import * as path from "path";
7
8export default class CodePushProjectHelper {
9
10 public static isCodePushProject(projectRoot: string): Q.Promise<boolean> {
11 if (!projectRoot || !fs.existsSync(path.join(projectRoot, "package.json"))) {
12 return Q<boolean>(false);
13 }
14
15 return Q<boolean>(true);
16 }
17}