
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@0bdx/build-helpers
Advanced tools
Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience
Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience.
∅ Version: 0.0.4
∅ NPM: https://www.npmjs.com/package/@0bdx/build-helpers
∅ Repo: https://github.com/0bdx/build-helpers
∅ Homepage: https://0bdx.com/build-helpers
@TODO add an overview
git --version # should be 'git version 2.20.1' or greaternode --version # should be 'v14.0.0' or greatertsc --version # should be 'Version 4.9.4' or greatertsserver to highlight errors in src/ JavaScript filestsc is needed to generate the build-helpers.d.ts type declarationcode --version # should be '1.74.3' or greaterjeremyljackson.vs-docblock
extension.dnamsons.kimbie-dark-plus
theme.Clone the repository, and cd into it:
git clone git@github.com:0bdx/build-helpers.git && cd build-helpers
Install the two dev-dependencies:
npm i
@types/node 18.11.19, 1 package, 3.6 MB for 126 items.
Rollup 3.14.0, 2 packages, 2.5 MB for 31 items.
Open build-helpers in VS Code:
code .
Run all tests on the in-development source code:
npm test
Build build-helpers.js and build-helpers.d.ts:
npm run build:prod
npm run build:types
Run all tests on the built build-helpers.js file:
npm run preflight:test
Check that build-helpers.js uses all types correctly:
npm run preflight:types @TODO fix this
Or run all the build and preflight steps in one line, eg before committing:
npm run build && npm run preflight
Display what will be published:
npm publish --dry-run
Publish to npmjs.com/package/@0bdx/build-helpers:
npm publish
cd to wherever you workgit clone and paste something like ‘git@github.com:kim/my-app.git’cd into the new directory, eg cd my-app.DS_Store
node_modules
node_modules.zip
In stage 4. below, npm init will use the presence of these files to populate
the "types" and "main" fields of package.json.
touch build-helpers.d.ts build-helpers.js
npm init --yes
sed -ix 's/: "1.0.0",/: "0.0.1",/' *e.json
sed -ix 's/keywords": \[/keywords": [ "build", "rollup" /' *e.json
sed -ix 's/: "ISC",/: "MIT",/' *e.json
A=(§{1..3},\\n·);sed -ix "s/\"main/${A[*]}·\"main/;s/·/ /g" *e.json
A=(§{a..f},\\n···);sed -ix "s/\"test/${A[*]}·\"test/;s/·/ /g" *e.json
sed -ix 's/§1/"type": "module"/' *e.json
sed -ix 's/§2/"files": [ "§0d.ts", "§0js" ]/' *e.json
sed -ix 's/§3/"engines": { "node": ">= 14.0.0" }/' *e.json
sed -ix 's/§a/"§Z:§A": "rollup -c"/' *e.json`
sed -ix 's/§b/"§Z:§B": "tsc §0js §_"/' *e.json`
sed -ix 's/§_/--allowJs --declaration --emitDeclarationOnly/' *e.json`
sed -ix 's/§c/"§Z": "for s in {§A,§B};do npm run §Z:$s;done"/' *e.json
sed -ix 's/§A/prod/g;s/§B/types/g;s/§Z/build/g;' *e.json`
sed -ix 's/§d/"§Z:§D": "echo \"🧬 test.js\" && node test.js"/' *e.json`
sed -ix 's/§e/"§Z:§E": "tsc §0js §_"/' *e.json`
sed -ix 's/§_/--allowJs --checkJs --noEmit/' *e.json`
sed -ix 's/§f/"§Z": "for s in {§D,§E};do npm run §Z:$s;done"/' *e.json
sed -ix 's/§D/test/g;s/§E/types/g;s/§Z/preflight/g;' *e.json`
sed -ix 's|Error: no test specified|🧪 src/test.js|' *e.json
sed -ix 's|exit 1|node src/test.js|' *e.json
sed -ix 's/§0/build-helpers./g' *e.json
sed -ix 's/author": "/author": "0bdx <0@0bdx.com> (0bdx.com)/' *e.json
rm package.jsonx
npm install @types/node -D
npm install rollup -D
npm init --yessed -ix 's/: "1.0.0",/: "0.0.1",/' *e.jsonsed -ix 's/keywords": \[/keywords": [ "build", "rollup" /' *e.jsonsed -ix 's/: "ISC",/: "MIT",/' *e.json"main", and then"script" properties before "test":A=(§{1..3},\\n·);sed -ix "s/\"main/${A[*]}·\"main/;s/·/ /g" *e.jsonA=(§{a..f},\\n···);sed -ix "s/\"test/${A[*]}·\"test/;s/·/ /g" *e.jsonimport not require() (avoids needing .mjs):sed -ix 's/§1/"type": "module"/' *e.jsonsed -ix 's/§2/"files": [ "§0d.ts", "§0js" ]/' *e.jsonsed -ix 's/§3/"engines": { "node": ">= 14.0.0" }/' *e.json"build:..." scripts:sed -ix 's/§a/"§Z:§A": "rollup -c"/' *e.jsonsed -ix 's/§b/"§Z:§B": "tsc §0js §_"/' *e.jsonsed -ix 's/§_/--allowJs --declaration --emitDeclarationOnly/' *e.jsonsed -ix 's/§c/"§Z": "for s in {§A,§B};do npm run §Z:$s;done"/' *e.jsonsed -ix 's/§A/prod/g;s/§B/types/g;s/§Z/build/g;' *e.json"preflight:..." scripts:sed -ix 's/§d/"§Z:§D": "echo \"🧬 test.js\" && "/' *e.jsonsed -ix 's/§e/"§Z:§E": "tsc §0js §_"/' *e.jsonsed -ix 's/§_/--allowJs --checkJs --noEmit/' *e.jsonsed -ix 's/§f/"§Z": "for s in {§D,§E};do npm run §Z:$s;done"/' *e.jsonsed -ix 's/§D/test/g;s/§E/types/g;s/§Z/preflight/g;' *e.jsonsed -ix 's|Error: no test specified|🧪 src/test.js|' *e.jsonsed -ix 's|exit 1|node src/test.js|' *e.json§0 with build-helpers.:sed -ix 's/§0/build-helpers./g' *e.jsonsed -ix 's/author": "/author": "0bdx <0@0bdx.com> (0bdx.com)/' *e.jsonrm package.jsonxnpm install @types/node -D 18.11.19, 1 package, 3.6 MB for 126 itemsnpm install rollup -D 3.14.0, 2 packages, 2.5 MB for 31 itemsFAQs
Helpful utilities for speeding up the ‘build’ part of a zero-build developer experience
We found that @0bdx/build-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.