[READ-ONLY] Mirror of https://github.com/danielroe/siroc. Zero-config build tooling for Node
bundle node package rollup typescript
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: use es build of cli

Daniel Roe (Jun 7, 2020, 2:10 PM +0100) 5a4db66d 2224c799

+78 -33
+1 -6
.eslintignore
··· 1 1 lib 2 - test/fixture 3 - test/e2e 4 - example 5 - .nuxt 6 2 ./dist 7 - docs 8 3 coverage 9 - src/plugin.js 4 + src/cli/pkg.js
+1
.gitignore
··· 2 2 !lib/.gitkeep 3 3 node_modules 4 4 coverage 5 + yarn-error.log 5 6 dist
+2 -1
package.json
··· 19 19 "main": "lib/index.js", 20 20 "types": "lib/index.d.ts", 21 21 "bin": { 22 - "packager": "lib/cli.js" 22 + "pkg": "lib/pkg.js" 23 23 }, 24 24 "files": [ 25 25 "lib/**/*", ··· 91 91 "prettier": "^2.0.5", 92 92 "release-it": "13.6.2", 93 93 "rollup": "^2.13.1", 94 + "rollup-plugin-copy": "^3.3.0", 94 95 "rollup-plugin-dts": "^1.4.7", 95 96 "rollup-plugin-esbuild": "^1.4.1", 96 97 "tsd": "^0.11.0",
+13 -8
rollup.config.js
··· 1 1 import jsonPlugin from '@rollup/plugin-json' 2 - import esbuild from 'rollup-plugin-esbuild' 2 + import copy from 'rollup-plugin-copy' 3 3 import dts from 'rollup-plugin-dts' 4 + import esbuild from 'rollup-plugin-esbuild' 4 5 5 6 import pkg from './package.json' 6 7 ··· 8 9 { 9 10 input: 'src/cli/index.ts', 10 11 output: { 11 - file: pkg.bin.packager, 12 - format: 'cjs', 12 + file: 'lib/cli.js', 13 + format: 'es', 13 14 }, 14 15 external: Object.keys(pkg.dependencies || {}), 15 16 plugins: [ ··· 19 20 minify: process.env.NODE_ENV === 'production', 20 21 target: 'es2018', 21 22 }), 23 + copy({ 24 + targets: [ 25 + { 26 + src: 'src/cli/pkg.js', 27 + dest: 'lib', 28 + }, 29 + ], 30 + }), 22 31 ], 23 32 }, 24 33 { ··· 27 36 file: pkg.main, 28 37 format: 'cjs', 29 38 }, 30 - external: [ 31 - ...Object.keys(pkg.dependencies || {}), 32 - ...Object.keys(pkg.peerDependencies || {}), 33 - ], 34 - 39 + external: [...Object.keys(pkg.dependencies || {})], 35 40 plugins: [ 36 41 esbuild({ 37 42 watch: process.argv.includes('--watch'),
+59 -18
yarn.lock
··· 1344 1344 resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" 1345 1345 integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== 1346 1346 1347 - "@types/cross-spawn@^6.0.2": 1348 - version "6.0.2" 1349 - resolved "https://registry.yarnpkg.com/@types/cross-spawn/-/cross-spawn-6.0.2.tgz#168309de311cd30a2b8ae720de6475c2fbf33ac7" 1350 - integrity sha512-KuwNhp3eza+Rhu8IFI5HUXRP0LIhqH5cAjubUvGXXthh4YYBuP2ntwEX+Cz8GJoZUHlKo247wPWOfA9LYEq4cw== 1351 - dependencies: 1352 - "@types/node" "*" 1353 - 1354 1347 "@types/eslint-visitor-keys@^1.0.0": 1355 1348 version "1.0.0" 1356 1349 resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" ··· 1365 1358 version "0.0.44" 1366 1359 resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.44.tgz#980cc5a29a3ef3bea6ff1f7d021047d7ea575e21" 1367 1360 integrity sha512-iaIVzr+w2ZJ5HkidlZ3EJM8VTZb2MJLCjw3V+505yVts0gRC4UMvjw0d1HPtGqI/HQC/KdsYtayfzl+AXY2R8g== 1361 + 1362 + "@types/fs-extra@^8.0.1": 1363 + version "8.1.1" 1364 + resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-8.1.1.tgz#1e49f22d09aa46e19b51c0b013cb63d0d923a068" 1365 + integrity sha512-TcUlBem321DFQzBNuz8p0CLLKp0VvF/XH9E4KHNmgwyp4E3AfgI5cjiIVZWlbfThBop2qxFIh4+LeY6hVWWZ2w== 1366 + dependencies: 1367 + "@types/node" "*" 1368 1368 1369 1369 "@types/fs-extra@^9.0.1": 1370 1370 version "9.0.1" ··· 1462 1462 version "4.0.0" 1463 1463 resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" 1464 1464 integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== 1465 - 1466 - "@types/pify@^3.0.2": 1467 - version "3.0.2" 1468 - resolved "https://registry.yarnpkg.com/@types/pify/-/pify-3.0.2.tgz#1bc75dac43e31dba981c37e0a08edddc1b49cd39" 1469 - integrity sha512-a5AKF1/9pCU3HGMkesgY6LsBdXHUY3WU+I2qgpU0J+I8XuJA1aFr59eS84/HP0+dxsyBSNbt+4yGI2adUpHwSg== 1470 1465 1471 1466 "@types/prettier@^2.0.0": 1472 1467 version "2.0.1" ··· 2356 2351 resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 2357 2352 integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 2358 2353 2354 + colorette@^1.1.0: 2355 + version "1.2.0" 2356 + resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.0.tgz#45306add826d196e8c87236ac05d797f25982e63" 2357 + integrity sha512-soRSroY+OF/8OdA3PTQXwaDJeMc7TfknKKrxeSCencL2a4+Tx5zhxmmv7hdpCjhKBjehzp8+bwe/T68K0hpIjw== 2358 + 2359 2359 combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: 2360 2360 version "1.0.8" 2361 2361 resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" ··· 2664 2664 shebang-command "^1.2.0" 2665 2665 which "^1.2.9" 2666 2666 2667 - cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: 2667 + cross-spawn@^7.0.0, cross-spawn@^7.0.2: 2668 2668 version "7.0.3" 2669 2669 resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" 2670 2670 integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== ··· 3564 3564 dependencies: 3565 3565 map-cache "^0.2.2" 3566 3566 3567 + fs-extra@^8.1.0: 3568 + version "8.1.0" 3569 + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" 3570 + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== 3571 + dependencies: 3572 + graceful-fs "^4.2.0" 3573 + jsonfile "^4.0.0" 3574 + universalify "^0.1.0" 3575 + 3567 3576 fs-extra@^9.0.1: 3568 3577 version "9.0.1" 3569 3578 resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc" ··· 3782 3791 version "10.0.0" 3783 3792 resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.0.tgz#abfcd0630037ae174a88590132c2f6804e291072" 3784 3793 integrity sha512-3LifW9M4joGZasyYPz2A1U74zbC/45fvpXUvO/9KbSa+VV0aGZarWkfdgKyR9sExNP0t0x0ss/UMJpNpcaTspw== 3794 + dependencies: 3795 + "@types/glob" "^7.1.1" 3796 + array-union "^2.1.0" 3797 + dir-glob "^3.0.1" 3798 + fast-glob "^3.0.3" 3799 + glob "^7.1.3" 3800 + ignore "^5.1.1" 3801 + merge2 "^1.2.3" 3802 + slash "^3.0.0" 3803 + 3804 + globby@10.0.1: 3805 + version "10.0.1" 3806 + resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.1.tgz#4782c34cb75dd683351335c5829cc3420e606b22" 3807 + integrity sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A== 3785 3808 dependencies: 3786 3809 "@types/glob" "^7.1.1" 3787 3810 array-union "^2.1.0" ··· 5066 5089 dependencies: 5067 5090 minimist "^1.2.5" 5068 5091 5092 + jsonfile@^4.0.0: 5093 + version "4.0.0" 5094 + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" 5095 + integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= 5096 + optionalDependencies: 5097 + graceful-fs "^4.1.6" 5098 + 5069 5099 jsonfile@^6.0.1: 5070 5100 version "6.0.1" 5071 5101 resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.0.1.tgz#98966cba214378c8c84b82e085907b40bf614179" ··· 6171 6201 resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" 6172 6202 integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== 6173 6203 6174 - pify@^5.0.0: 6175 - version "5.0.0" 6176 - resolved "https://registry.yarnpkg.com/pify/-/pify-5.0.0.tgz#1f5eca3f5e87ebec28cc6d54a0e4aaf00acc127f" 6177 - integrity sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA== 6178 - 6179 6204 pinkie-promise@^2.0.0: 6180 6205 version "2.0.1" 6181 6206 resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" ··· 6792 6817 integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== 6793 6818 dependencies: 6794 6819 glob "^7.1.3" 6820 + 6821 + rollup-plugin-copy@^3.3.0: 6822 + version "3.3.0" 6823 + resolved "https://registry.yarnpkg.com/rollup-plugin-copy/-/rollup-plugin-copy-3.3.0.tgz#5ba230047f86b9f703a29288f242948a5580e7b9" 6824 + integrity sha512-euDjCUSBXZa06nqnwCNADbkAcYDfzwowfZQkto9K/TFhiH+QG7I4PUsEMwM9tDgomGWJc//z7KLW8t+tZwxADA== 6825 + dependencies: 6826 + "@types/fs-extra" "^8.0.1" 6827 + colorette "^1.1.0" 6828 + fs-extra "^8.1.0" 6829 + globby "10.0.1" 6830 + is-plain-object "^3.0.0" 6795 6831 6796 6832 rollup-plugin-dts@^1.4.7: 6797 6833 version "1.4.7" ··· 7824 7860 integrity sha512-B5TPtzZleXyPrUMKCpEHFmVhMN6EhmJYjG5PQna9s7mXeSqGTLap4OpqLl5FCEFUI3UBmllkETwKf/db66Y54Q== 7825 7861 dependencies: 7826 7862 os-name "^3.1.0" 7863 + 7864 + universalify@^0.1.0: 7865 + version "0.1.2" 7866 + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" 7867 + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== 7827 7868 7828 7869 universalify@^1.0.0: 7829 7870 version "1.0.0"
+2
src/cli/pkg.js
··· 1 + const _require = require('esm')(module) 2 + module.exports = _require('./cli.js')