@salesforce/plugin-trust
Version:
validate a digital signature for a npm package
24 lines • 977 B
JavaScript
/*
* Copyright (c) 2025, 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 { SfCommand } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';
import { NpmCommand } from '../../shared/npmCommand.js';
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-trust', 'node.info');
export default class NodeInfo extends SfCommand {
static summary = messages.getMessage('summary');
static description = messages.getMessage('description');
static hidden = true;
// eslint-disable-next-line @typescript-eslint/require-await
async run() {
return {
nodePath: NpmCommand.findNode(this.config.root),
npxPath: NpmCommand.npxCli(),
};
}
}
//# sourceMappingURL=info.js.map