Skip to content

Commit

Permalink
feat: package type target config for resolve cli
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Sep 26, 2023
1 parent 84ce307 commit fd651c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cli/cmds/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ exports.builder = {
describe: 'The path to the application to audit',
type: 'string',
},
pt: {
alias: 'package-type',
demandOption: false,
describe: 'The type of package to search for at the given path',
type: 'string',
},
o: {
alias: 'output-path',
demandOption: false,
Expand All @@ -55,7 +61,7 @@ exports.handler = async (argv) => {
try {
logger.logCliHeader();
const {issueId} = argv;
const manifest = loadManifest(appPath);
const manifest = loadManifest(appPath, argv.pt);
const fileConfig = loadConfig(appPath)?.audit || {};
const outputPath = path.join(appPath, fileConfig.outputPath || argv.o);
const filenames = outputFilenames(manifest.name, manifest.version);
Expand Down

0 comments on commit fd651c3

Please sign in to comment.