@cyph/sdk
Version:
Cyph SDK
30 lines (26 loc) • 609 B
JavaScript
import {program} from 'commander';
import {pack} from '../../../websign/pack.js';
program
.name('websign internal pack')
.arguments('<inputPath> <outputPath>')
.option('--minify', 'minify output')
.option('--sri', 'split out subresources with integrity verification')
.action(
async (
inputPath,
outputPath,
{minify: enableMinify = false, sri: enableSRI = false}
) =>
pack({
enableMinify,
enableSRI,
inputPath,
outputPath,
rootDirectoryPath: process.cwd()
})
)
.hook('postAction', () => {
process.exit();
});
await program.parseAsync();