UNPKG

@salesforce/dev-scripts

Version:

Standardize package.json scripts and config files for Salesforce projects.

19 lines (16 loc) 409 B
/* * Copyright (c) 2020, 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 */ const { accessSync } = require('fs'); module.exports = (path) => { try { accessSync(path); return true; } catch (err) { /* do nothing */ } return false; };