UNPKG

@salesforce/plugin-packaging

Version:

SF plugin that support Salesforce Packaging Platform

20 lines 569 B
/* * Copyright (c) 2022, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ import { SfProject } from '@salesforce/core'; /* * Get the sfdx project from the current dir. * It will return `undefined` if there's no project. * */ export async function maybeGetProject() { try { return await SfProject.resolve(); } catch { return undefined; } } //# sourceMappingURL=getProject.js.map