1 2 3 4 5 6 7 8 9 10
const process = require('process'); const { pipeThrough } = require('./package.js'); pipeThrough((pkg, done) => { pkg.files = process.argv.slice(2); done(pkg); });