https://salsa.debian.org/js-team/node-lodash/blob/master/.travis.yml shows the way to build lodash-packages from lodash :
$ yarn $ git clone --depth=10 --branch=master git://github.com/lodash/lodash-cli ./node_modules/lodash-cli $ mkdir -p ./node_modules/lodash-cli/node_modules/lodash $ cd $_ $ cp ../../../../lodash.js ./lodash.js $ cp ../../../../package.json ./package.json $ cd ../../ $ npm i --production $ cd ../../ $ node ./node_modules/lodash-cli/bin/lodash core \ -o ./dist/lodash.core.js $ npm run build ... But last step does not work...