
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
just-build
Advanced tools
npm install just-build --save-dev
Using --save-dev because you typically configure npm run build to call upon it, which works perfectly well will locally installed binaries.
{
"scripts": {
"build": "just-build",
"watch": "just-build --watch"
},
"just-build": {
"default": [
"just-build src test" // builds src and test (in parallell)
],
"src": [
"cd src",
"tsc [--watch 'Compilation complete.']",
"rollup -c", // executed on each code change
"eslint src" // executed after rollup (if rollup succeeds)
],
"test": [
"cd test",
"tsc [--watch 'Compilation complete.']",
"rollup -c"
],
"production": [
"NODE_ENV='production'",
"just-build"
]
}
}
node_modules/.bin/just-build
or:
npm run build
node_modules/.bin/just-build --watch
or:
npm run watch
node_modules/.bin/just-build production
or:
npm run build production
node_modules/.bin/just-build production --watch
or:
npm run watch production
node_modules/.bin/just-build src test
or:
npm run build src test
node_modules/.bin/just-build src test --watch
or:
npm run watch src test
This tool executes each configured command string using child_process.spawn() with shell:true. You can't do all things you could do in bash. For example:
(not launched by child_process.spawn())
| just-build | Will shortcut to call recursively on other scripts without the cost of spawning another just-build process. The `[--watch]` argument is automatically appended and you do not need to add it. You get an error if you do. |
|---|---|
| <locally installed binary> | If you've installed a binary locally npm install typescript --save-dev, and you invoke tsc which is a binary bundled with typescript, an optimization kicks in so that the binary is launched using child_process.fork() instead of child_process.spawn(). |
| node | If you execute a JS script using node scripts/myscript.jsthe script will be executed using child_process.fork() instead of child_process.spawn() to optimize resources. |
| cd | Changes working directory for the next command. Note that working directory will always be the package root initially for each task. |
| NAME=VALUE | Sets environment variable such as NODE_ENV=production |
| # comments... | Every line is stripped from # comments. Can be used to document the purposes of your tasks. |
FAQs
A simple task runner that doesn't bloat your package
We found that just-build 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.