dist/index.js
/**
 * Run npm-dependency-stats action. All outputs are set
 * at this level
 */
Run npm-dependency-stats action. All outputs are set
at this level
Run npm - dependency - stats action . All outputs are set at this level
async function run() {
    const depStats = await (0, getDependencyStats_1.getDependencyStats)();
    const outputFileConfig = core.getInput('output-file');
    if (outputFileConfig) {
        fs_1.default.writeFileSync(path_1.default.resolve(outputFileConfig), JSON.stringify(depStats, null, 2));
    }
    core.setOutput('dependencies', depStats.dependencies);
    core.setOutput('counts', depStats.counts);
    core.setOutput('percents', depStats.percents);
}
async function run ( ) { const depStats = await ( 0 , getDependencyStats_1 . getDependencyStats ) ( ) ; const outputFileConfig = core . getInput ( 'output-file' ) ; if ( outputFileConfig ) { fs_1 . default . writeFileSync ( path_1 . default . resolve ( outputFileConfig ) , JSON . stringify ( depStats , null , 2 ) ) ; } core . setOutput ( 'dependencies' , depStats . dependencies ) ; core . setOutput ( 'counts' , depStats . counts ) ; core . setOutput ( 'percents' , depStats . percents ) ; }
Run npm-dependency-stats action.
Run npm - dependency - stats action .