{"_id":"@0bdx/build-helpers","_rev":"3-1909ffae8314373a1c1aa4cbf7d23b6b","name":"@0bdx/build-helpers","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@0bdx/build-helpers","version":"0.0.1","description":"Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience","type":"module","engines":{"node":">= 14.0.0"},"main":"build-helpers.js","scripts":{"build:prod":"rollup -c","build:types":"tsc build-helpers.js --allowJs --declaration --emitDeclarationOnly","build":"for s in {prod,types};do npm run build:$s;done","preflight:test":"echo \"🧬 test.js\" && node test.js","preflight:types":"tsc build-helpers.js --allowJs --checkJs --noEmit","preflight":"for s in {test,types};do npm run preflight:$s;done","test":"echo \"🧪 src/test.js\" && node src/test.js"},"repository":{"type":"git","url":"git+https://github.com/0bdx/build-helpers.git"},"keywords":["build","rollup"],"author":{"name":"0bdx","email":"0@0bdx.com","url":"0bdx.com"},"license":"MIT","types":"./build-helpers.d.ts","bugs":{"url":"https://github.com/0bdx/build-helpers/issues"},"homepage":"https://github.com/0bdx/build-helpers#readme","devDependencies":{"@types/node":"^18.11.19","rollup":"^3.14.0"},"gitHead":"bc4b1f36a9b9fbe366e23156407d26e593e1909a","_id":"@0bdx/build-helpers@0.0.1","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-rDgTdIGsttNVXVr+RBEdiTuVm7gJLAbrlNeYm5uoLu88RQI0JiZP6CMtc3haM8qgGK67FDl01OywIk7mt4vrgQ==","shasum":"4f66aa33ac096baf1087e038374d8a444a0ff21b","tarball":"https://registry.npmjs.org/@0bdx/build-helpers/-/build-helpers-0.0.1.tgz","fileCount":5,"unpackedSize":20484,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOEqkc/s1JJin1zh5aBiLfe6i+rVed4oSOS3N7MGaJWQIhAJ804DHNdSV8u7hxcHlJePlbWq+01TEGbDKa8HHo3wWS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4tYvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpxXQ/9Gvi4TKMAT7E6RvEGYxWDP909M5qQFS6sObB+a0wF58i4DDhL\r\n6vr4DR8JlEPq1+w1AdJByhrCMrb0VCQM/p50QyEPQKb/vk3B+quSli8MkKvs\r\n2li+SDG/lKgpetrPVkdhoWWm1JB/ULxiPglvyk0Fw/Ruah7kHd5CCmd/QyZe\r\nmii2wxmI08a8JHcWOI7XxCVET3hQhks1heRNemYISgKTbmDWq9+Pn43gpDO4\r\nkoDdEr3MsOTRgEpIl3s6sYcoGUgFzFVMHQqAV60Q0etyDExIVHSiZnuEIn56\r\np/U4lfnzwktVvbgJEzQRf++yYMbQHgibEPjWSeiXu7SrQPh0rOsfNBrrU1cR\r\ndCFK1g/E0QoqLx4Y1xgLocbIgVc8ojW+P7OGVSAQl6RTTOaBR4k7fjZYXDRR\r\n2Dd6HDmoDDbNTNZTHX7f24YSXTWgKWFJ7JSvsaiQb7RBoCs8lgia1ceUAHUY\r\n5ast8RS6pyNbCP8iy5GQNBwpaVYPL4GSQyFrFmvfZXX4JhPNXTHh3pW/g6/A\r\nAz+g+IYBBEqCf9Vh0tuWcYJxD62LVpbaxzvpOtLlcBBw6QAdtAePRXJzLou0\r\nOE3CKs47epmmsWb9O54m9mZHO9v/enpXtnrQE0lkFX+1Kzx3rhXCuSDJEMhT\r\nedxHuH7m/r21bAsnXp5c/1fNMKup4vBgQYU=\r\n=rRam\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"0bdx","email":"0bdx.com@gmail.com"},"directories":{},"maintainers":[{"name":"0bdx","email":"0bdx.com@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/build-helpers_0.0.1_1675810350813_0.7082205181177972"},"_hasShrinkwrap":false},"0.0.2":{"name":"@0bdx/build-helpers","version":"0.0.2","description":"Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience","type":"module","engines":{"node":">= 14.0.0"},"main":"build-helpers.js","scripts":{"build:prod":"rollup -c","build:types":"tsc build-helpers.js --allowJs --declaration --emitDeclarationOnly","build":"for s in {prod,types};do npm run build:$s;done","preflight:test":"echo \"🧬 test.js\" && node test.js","preflight:types":"tsc build-helpers.js --allowJs --checkJs --noEmit","preflight":"for s in {test,types};do npm run preflight:$s;done","test":"echo \"🧪 src/test.js\" && node src/test.js"},"repository":{"type":"git","url":"git+https://github.com/0bdx/build-helpers.git"},"keywords":["build","rollup"],"author":{"name":"0bdx","email":"0@0bdx.com","url":"0bdx.com"},"license":"MIT","types":"./build-helpers.d.ts","bugs":{"url":"https://github.com/0bdx/build-helpers/issues"},"homepage":"https://github.com/0bdx/build-helpers#readme","devDependencies":{"@types/node":"^18.11.19","rollup":"^3.14.0"},"gitHead":"be99c237e2ff0675d52c2899f2ccf7a2fc0acc95","_id":"@0bdx/build-helpers@0.0.2","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-f3HCi4CCgZxnyQbiW/uJW9JpYkbWfRsYaYv6SrkwybVSGaObhG1NYWkvQKs1uLhmVRX5zmdkoHhr5pxYn6Dk3A==","shasum":"d673f9a3be7886c4aec148af7f882d0997eec3bc","tarball":"https://registry.npmjs.org/@0bdx/build-helpers/-/build-helpers-0.0.2.tgz","fileCount":5,"unpackedSize":21432,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7G5URp/HxxQ1ZarMtt7DMSk91H6Ymeoujrt6w7cd6ZAIhAIx0oq/OJ5K4XdV1stDkYkq77SvHrDnkXOygazOJbfL7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5op7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpl1g//csYUUeu0duM/SSn7tb3eQzQlNSwxcENkQTm8DND6GRrw+0+M\r\nOtae0SXDO2ZJJErxEnJswi1WOaJki6BAyPvlYBlv415JtzEzMB82SMeFSfWu\r\nATW5Amd+4oUCWS3+ddQ5T8LyLbxSmbVl/vw7IWXRx4yPGtOT1GMd4azpnac8\r\nsVc+73hnrMS+dPRY1xEZ2uCzXsEalV/M4CyENDzEmxyq7dGNWT+x8Fz3gq9f\r\nhK040bwtoK3BATcHlZOnEi1hx6helEO/vYX2K+qNsYVJ8c3W/AaGPTIx1Zvf\r\n01Xg3aZw91DRJaAA6Sq+vsqbN0qrMr7DTiNVKO/5lj6g9YXA11M7LdiadO78\r\n6KfUIHHeb5RCEnAdXoUO1P1KdpEl6qXwBK5y7PfGGIq65KTYQmWKR1OOihVh\r\npYZJBCRaFcPsJamiV7SROoJNCAb/JPDETsSZUWeAWjBUMbRjc+gykipDXfG7\r\n26mfLeFXeYnas18WCURCvWdn2mnFfDs0lHQNJnIkiFhJUVeI2S7Td3ih06ZW\r\nJasF9Hifqs87nNAHEvwirH5VLg/ahnopb+mr6lsFITLlZej20HAKpD5EXgK2\r\nPfugOHZBQFY/dfrAW9c3J5TqZEqZGN7qLNOBNzqeeUYDujFJXAN6A8N7TM2f\r\nYqg9yufnHLzKpKROGtnZPkqKfr4t8d9oJjo=\r\n=hFcs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"0bdx","email":"0bdx.com@gmail.com"},"directories":{},"maintainers":[{"name":"0bdx","email":"0bdx.com@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/build-helpers_0.0.2_1676053115434_0.06967132651917218"},"_hasShrinkwrap":false},"0.0.3":{"name":"@0bdx/build-helpers","version":"0.0.3","description":"Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience","type":"module","engines":{"node":">= 14.0.0"},"main":"build-helpers.js","scripts":{"build:prod":"rollup -c","build:types":"tsc build-helpers.js --allowJs --declaration --emitDeclarationOnly","build":"for s in {prod,types};do npm run build:$s;done","preflight:test":"echo \"🧬 test.js\" && node test.js","preflight:types":"tsc build-helpers.js --allowJs --checkJs --noEmit","preflight":"for s in {test,types};do npm run preflight:$s;done","test":"echo \"🧪 src/test.js\" && node src/test.js"},"repository":{"type":"git","url":"git+https://github.com/0bdx/build-helpers.git"},"keywords":["build","rollup"],"author":{"name":"0bdx","email":"0@0bdx.com","url":"0bdx.com"},"license":"MIT","types":"./build-helpers.d.ts","bugs":{"url":"https://github.com/0bdx/build-helpers/issues"},"homepage":"https://github.com/0bdx/build-helpers#readme","devDependencies":{"@types/node":"^18.11.19","rollup":"^3.14.0"},"gitHead":"bc55c06a3fd2d39e622c3d3120a0d66e82aff6a9","_id":"@0bdx/build-helpers@0.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-EOlOvKl1xxvLufGnk3jzGBWIWG1cQks4O43LUba+oMUbotXkalDxSwaozoCEExRrDXzKgfOxS8vEK+O/iO+0Ww==","shasum":"9bbeb394fd2e74f2505f3eaff28920f9ddd8e31c","tarball":"https://registry.npmjs.org/@0bdx/build-helpers/-/build-helpers-0.0.3.tgz","fileCount":5,"unpackedSize":21442,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcI6AzFR+sHoOn4PaPSBxDpJOHM2I9ZBlCIKcgmoiD0QIgMYOpDFRUJR52h35CMW/9H77flRN24pxNl1VZZjSxkCc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5o1JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmod5g//VGZ3Xv/ev2t9SvOPnmtxTDkgqLHah6ZF1xt+6MFujG9kFIje\r\nDy3kcPth81uoIR+NG9t3Lzpof6ViuBmMxYv7WTYw7Gu4WKiyYtfSFqWY/76N\r\nrl2OW/eqpCctJrLl9qjZsvuIplKSqu44fbj9Dz4wQCPXe0nWXu3UAnboEJyo\r\ntYxAUO5vctDeB8skV/uXtrmI9YITjZhxFzs2h4HTlWSJqocivl+pU53oboCA\r\npx7NBO8rasoHUHUvG8TkOO+EF7NELGgDiFwj8sm9IIBGdyYsZqrEaL8xdIfw\r\nuINWAStEuyB4sK8PXtK5BLsGkaoaN+wd6KOk/ae41qpXLksAaWBcwtuaJ0Vv\r\nK+KoFSuJRW5I7OnQ1A99uFL0kLegwBFJdTcNHvhYU/7kPpJYm90yu+hJ5iXa\r\nXNhQhqAfAntsjmmzlPQmbEEenQ0B8KZiaY5sNmBH6dhrHo9Rf52EjyIOb/GA\r\nYoSH/PIkk3JU7f2Jae1ZVEMTu7QNkfN1ZwO8Dz/JaDSe036+vqQaE9w2xSsQ\r\nvpIYfi5CQTWV1d5T87TA62M3f3trlaiKeNRWteBXV7ObCLgvRx5St5jC1aLy\r\nIxIdnynRKtdhjUVnWJniDWTtOi496RRaqntZf/yhmwwQffOZIwDr23G/vKjq\r\nZxw7tNLx0TplhU0lwuoLSyKmAazHnezWXmA=\r\n=qLwc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"0bdx","email":"0bdx.com@gmail.com"},"directories":{},"maintainers":[{"name":"0bdx","email":"0bdx.com@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/build-helpers_0.0.3_1676053833071_0.13256350542834472"},"_hasShrinkwrap":false},"0.0.4":{"name":"@0bdx/build-helpers","version":"0.0.4","description":"Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience","type":"module","engines":{"node":">= 14.0.0"},"main":"build-helpers.js","scripts":{"build:prod":"rollup -c","build:types":"tsc build-helpers.js --allowJs --declaration --emitDeclarationOnly","build":"for s in {prod,types};do npm run build:$s;done","preflight:test":"echo \"🧬 test.js\" && node test.js","preflight:types":"tsc build-helpers.js --allowJs --checkJs --noEmit","preflight":"for s in {test,types};do npm run preflight:$s;done","test":"echo \"🧪 src/test.js\" && node src/test.js"},"repository":{"type":"git","url":"git+https://github.com/0bdx/build-helpers.git"},"keywords":["build","rollup"],"author":{"name":"0bdx","email":"0@0bdx.com","url":"0bdx.com"},"license":"MIT","types":"./build-helpers.d.ts","bugs":{"url":"https://github.com/0bdx/build-helpers/issues"},"homepage":"https://github.com/0bdx/build-helpers#readme","devDependencies":{"@types/node":"^18.11.19","rollup":"^3.14.0"},"gitHead":"087eb1903346311753bacb4bcdabaeccc22e4a47","_id":"@0bdx/build-helpers@0.0.4","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Uro0Mpdhhwi9bAYuPP/SAPnbB/y0le4xwYcEJiBvOlaetiEyGoLeGNROobUYTpx/8qmIQDCszBU65k8vCqepnA==","shasum":"cbd9ece5541552e5bf2f810a9ccab2409741454d","tarball":"https://registry.npmjs.org/@0bdx/build-helpers/-/build-helpers-0.0.4.tgz","fileCount":5,"unpackedSize":21599,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwveSwkFiC6AOqht9S7MUm4+nNxv7QlEZMaAMI6gpLTgIhAN9wvQ71RX6YcchVYyyHWGml5NdVO4OwlQ3VZG+el5w3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj51dGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrlww//aTOOj9J4krO67OekjkprKCnTMd/TPaKXtksnInDkiW7hDjs+\r\nrjchWKOfqypAS0UB4/bJL3WzNFtOVxKcVq5MMdJFuViFWBRBVS3BwrffHp02\r\ndtOf96aJWHCFnSDvxDbFajcBf+2IQ7Dp//47BVxBGkEsvwoGBVmsS4lKeCoo\r\nVtYdSxFj2kNPcyq03x2qifnRdpM+g+aTr4GY6w5CJXwlV4nS3oG4q4SRZPUs\r\n5OuL+TgdaDCjt3BmFJg+Ij6nA5Mh71k38wui0gqROCRkq3ZJAs6XFqqLenfW\r\nwPlKMQ2vpvgVKBkoXLMW1Y5sqhid9/GpLMwsiczh1IQId5cEG0LXkBNYY1Uv\r\nK9t0uiii00yIBnmVfv370x7czfVPgBYjk73N6nFl9c8pxzvzyQEXuAC6XBc5\r\n6FPBaW8GPTdw2BN7cowvp2/p3Obvt4s+LR/BPTG31/JMp3qbqOssvd8vp8ff\r\nLHg9SaZc5ftTGXwEtTlqj0p5ucnP2lRcz+FvTo//EtwWRResDMr/cSh4zopY\r\nk/Me8HbaYlFAS+JAxv7Pf8odXzWRi/WgoSO426EZZTGToJL6c+5qgbV0yGa/\r\nUK0c0UyOBE41uQ66bs4LA66GC5WUcmIWARmDrSfHUXeMwSScrwPeqtupfa3q\r\nrg/xhltt3m5s6DF9zIMd26eLVf0Pt5l6kLA=\r\n=r3U6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"0bdx","email":"0bdx.com@gmail.com"},"directories":{},"maintainers":[{"name":"0bdx","email":"0bdx.com@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/build-helpers_0.0.4_1676105542226_0.7151115603657341"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-07T22:52:30.725Z","0.0.1":"2023-02-07T22:52:31.001Z","modified":"2023-02-11T08:52:22.465Z","0.0.2":"2023-02-10T18:18:35.599Z","0.0.3":"2023-02-10T18:30:33.248Z","0.0.4":"2023-02-11T08:52:22.385Z"},"maintainers":[{"name":"0bdx","email":"0bdx.com@gmail.com"}],"description":"Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience","homepage":"https://github.com/0bdx/build-helpers#readme","keywords":["build","rollup"],"repository":{"type":"git","url":"git+https://github.com/0bdx/build-helpers.git"},"author":{"name":"0bdx","email":"0@0bdx.com","url":"0bdx.com"},"bugs":{"url":"https://github.com/0bdx/build-helpers/issues"},"license":"MIT","readme":"# @0bdx/build-helpers\n\n__Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience.__\n\n∅&nbsp; __Version:__ 0.0.4  \n∅&nbsp; __NPM:__ <https://www.npmjs.com/package/@0bdx/build-helpers>  \n∅&nbsp; __Repo:__ <https://github.com/0bdx/build-helpers>  \n∅&nbsp; __Homepage:__ <https://0bdx.com/build-helpers>\n\n@TODO add an overview\n\n---\n\n## Contributing\n\n### __Set up your development machine__\n\n1.  Check your __Git__ version:  \n    `git --version # should be 'git version 2.20.1' or greater`\n2.  Check your __Node__ version:  \n    `node --version # should be 'v14.0.0' or greater`\n3.  Check your global __TypeScript__ version:  \n    `tsc --version # should be 'Version 4.9.4' or greater`  \n    There is no actual TypeScript code in this project, but TypeScript can infer\n    types from the JavaScript code and JSDoc comments.\n    - VS Code uses `tsserver` to highlight errors in __src/__ JavaScript files\n    - `tsc` is needed to generate the __build-helpers.d.ts__ type declaration\n\n### __Set up VS Code__\n\n1.  Check your __VS Code__ version:  \n    `code --version # should be '1.74.3' or greater`\n2.  Install and enable the [`jeremyljackson.vs-docblock`\n    ](https://marketplace.visualstudio.com/items?itemName=jeremyljackson.vs-docblock)\n    extension.\n3.  Install and enable the [`dnamsons.kimbie-dark-plus`\n    ](https://marketplace.visualstudio.com/items?itemName=dnamsons.kimbie-dark-plus)\n    theme.  \n\n### __Set up the repo locally__\n\nClone the repository, and `cd` into it:  \n`git clone git@github.com:0bdx/build-helpers.git && cd build-helpers`\n\nInstall the two dev-dependencies:  \n`npm i`  \n@types/node 18.11.19, 1 package, 3.6 MB for 126 items.  \nRollup 3.14.0, 2 packages, 2.5 MB for 31 items.  \n\nOpen `build-helpers` in VS Code:  \n`code .`\n\n### __Handy dev commands__\n\nRun all tests on the in-development source code:  \n`npm test`\n\nBuild __build-helpers.js__ and __build-helpers.d.ts__:  \n`npm run build:prod`  \n`npm run build:types`\n\nRun all tests on the built __build-helpers.js__ file:  \n`npm run preflight:test`\n\nCheck that __build-helpers.js__ uses all types correctly:  \n`npm run preflight:types` @TODO fix this\n\nOr run all the build and preflight steps in one line, eg before committing:  \n`npm run build && npm run preflight`\n\nDisplay what will be published:  \n`npm publish --dry-run`\n\nPublish to [npmjs.com/package/@0bdx/build-helpers](\nhttps://www.npmjs.com/package/@0bdx/build-helpers):  \n`npm publish`\n\n---\n\n## How to create a repo like this, from scratch\n\n### __1. Create the initial repo__\n\n1. At GitHub, click the ‘+’ icon, and ‘New repository’\n2. Name it, describe it, tick ‘Add a README file’, choose MIT license\n3. Click ‘Create repository’\n4. Click the ‘Code’ button, ‘Local’ tab, ‘SSH’, and the copy icon\n5. In your Terminal, `cd` to wherever you work\n6. `git clone ` and paste something like ‘git@github.com:kim/my-app.git’\n7. `cd` into the new directory, eg `cd my-app`\n\n### __2. Add the .gitignore file__\n\n```\n.DS_Store\nnode_modules\nnode_modules.zip\n```\n\n### __3. Add placeholders for the type declarations and main files__\n\nIn stage 4. below, `npm init` will use the presence of these files to populate\nthe `\"types\"` and `\"main\"` fields of __package.json__.\n\n```sh\ntouch build-helpers.d.ts build-helpers.js\n```\n\n### __4. Add the initial package.json file__\n\n```sh\nnpm init --yes\nsed -ix 's/: \"1.0.0\",/: \"0.0.1\",/' *e.json\nsed -ix 's/keywords\": \\[/keywords\": [ \"build\", \"rollup\" /' *e.json\nsed -ix 's/: \"ISC\",/: \"MIT\",/' *e.json\nA=(§{1..3},\\\\n·);sed -ix \"s/\\\"main/${A[*]}·\\\"main/;s/·/ /g\" *e.json\nA=(§{a..f},\\\\n···);sed -ix \"s/\\\"test/${A[*]}·\\\"test/;s/·/ /g\" *e.json\nsed -ix 's/§1/\"type\": \"module\"/' *e.json\nsed -ix 's/§2/\"files\": [ \"§0d.ts\", \"§0js\" ]/' *e.json\nsed -ix 's/§3/\"engines\": { \"node\": \">= 14.0.0\" }/' *e.json\nsed -ix 's/§a/\"§Z:§A\": \"rollup -c\"/' *e.json` \nsed -ix 's/§b/\"§Z:§B\": \"tsc §0js §_\"/' *e.json` \nsed -ix 's/§_/--allowJs --declaration --emitDeclarationOnly/' *e.json` \nsed -ix 's/§c/\"§Z\": \"for s in {§A,§B};do npm run §Z:$s;done\"/' *e.json\nsed -ix 's/§A/prod/g;s/§B/types/g;s/§Z/build/g;' *e.json` \nsed -ix 's/§d/\"§Z:§D\": \"echo \\\"🧬 test.js\\\" && node test.js\"/' *e.json` \nsed -ix 's/§e/\"§Z:§E\": \"tsc §0js §_\"/' *e.json` \nsed -ix 's/§_/--allowJs --checkJs --noEmit/' *e.json` \nsed -ix 's/§f/\"§Z\": \"for s in {§D,§E};do npm run §Z:$s;done\"/' *e.json\nsed -ix 's/§D/test/g;s/§E/types/g;s/§Z/preflight/g;' *e.json` \nsed -ix 's|Error: no test specified|🧪 src/test.js|' *e.json\nsed -ix 's|exit 1|node src/test.js|' *e.json\nsed -ix 's/§0/build-helpers./g' *e.json\nsed -ix 's/author\": \"/author\": \"0bdx <0@0bdx.com> (0bdx.com)/' *e.json\nrm package.jsonx\nnpm install @types/node -D\nnpm install rollup -D\n```\n\n1. Create a default __package.json__ file:  \n   `npm init --yes`\n2. Change the version to 0.0.1:  \n   `sed -ix 's/: \"1.0.0\",/: \"0.0.1\",/' *e.json`\n3. Add keywords, for better [npmjs.org](http://npmjs.org) searchability:  \n   `sed -ix 's/keywords\": \\[/keywords\": [ \"build\", \"rollup\" /' *e.json`\n4. Change the license to MIT:  \n   `sed -ix 's/: \"ISC\",/: \"MIT\",/' *e.json`\n5. Insert three top-level placeholder properties before `\"main\"`, and then  \n   insert six placeholder `\"script\"` properties before `\"test\"`:  \n   `A=(§{1..3},\\\\n·);sed -ix \"s/\\\"main/${A[*]}·\\\"main/;s/·/ /g\" *e.json`  \n   `A=(§{a..f},\\\\n···);sed -ix \"s/\\\"test/${A[*]}·\\\"test/;s/·/ /g\" *e.json`\n6. Tell Node to use `import` not `require()` (avoids needing .mjs):  \n   `sed -ix 's/§1/\"type\": \"module\"/' *e.json`\n7. Tell NPM which files to include as part of the published package:  \n   `sed -ix 's/§2/\"files\": [ \"§0d.ts\", \"§0js\" ]/' *e.json`\n8. Specify the minimum supported Node.js version:  \n   `sed -ix 's/§3/\"engines\": { \"node\": \">= 14.0.0\" }/' *e.json`\n9. The first script generates the main file, __build-helpers.js__, and then  \n   the second script generates the type declarations, __build-helpers.d.ts__.  \n   The third script is a shortcut to run both `\"build:...\"` scripts:  \n   `sed -ix 's/§a/\"§Z:§A\": \"rollup -c\"/' *e.json`  \n   `sed -ix 's/§b/\"§Z:§B\": \"tsc §0js §_\"/' *e.json`  \n   `sed -ix 's/§_/--allowJs --declaration --emitDeclarationOnly/' *e.json`  \n   `sed -ix 's/§c/\"§Z\": \"for s in {§A,§B};do npm run §Z:$s;done\"/' *e.json`  \n   `sed -ix 's/§A/prod/g;s/§B/types/g;s/§Z/build/g;' *e.json`  \n10. The fourth script runs unit tests on the main file, __build-helpers.js__,  \n    and the fifth script checks it against the type declarations.  \n    The sixth script is a shortcut to run both `\"preflight:...\"` scripts:  \n    `sed -ix 's/§d/\"§Z:§D\": \"echo \\\"🧬 test.js\\\" && \"/' *e.json`  \n    `sed -ix 's/§e/\"§Z:§E\": \"tsc §0js §_\"/' *e.json`  \n    `sed -ix 's/§_/--allowJs --checkJs --noEmit/' *e.json`  \n    `sed -ix 's/§f/\"§Z\": \"for s in {§D,§E};do npm run §Z:$s;done\"/' *e.json`  \n    `sed -ix 's/§D/test/g;s/§E/types/g;s/§Z/preflight/g;' *e.json`  \n11. The seventh script runs unit tests on the source code:  \n    `sed -ix 's|Error: no test specified|🧪 src/test.js|' *e.json`  \n    `sed -ix 's|exit 1|node src/test.js|' *e.json`\n12. Replace `§0` with `build-helpers.`:  \n    `sed -ix 's/§0/build-helpers./g' *e.json`\n13. Insert the author’s name, email and domain:  \n    `sed -ix 's/author\": \"/author\": \"0bdx <0@0bdx.com> (0bdx.com)/' *e.json`\n14. Delete the temporary __package.jsonx__ file:  \n    `rm package.jsonx`\n15. Install two dev-dependencies:  \n    `npm install @types/node -D` 18.11.19, 1 package, 3.6 MB for 126 items  \n    `npm install rollup -D` 3.14.0, 2 packages, 2.5 MB for 31 items  \n","readmeFilename":"README.md"}