UNPKG

@cyph/sdk

Version:
30 lines (26 loc) 609 B
#!/usr/bin/env node 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();