Sync just and package.json scripts, and installs just as a node_modules binary.
Some tools, like Turborepo, expect package.json scripts. just-sync lets you use justfiles while keeping compatibility.
npm install -D just-sync
pnpm add -D just-sync
yarn add -D just-syncnpm justYour npm scripts will be moved to your justfile, and your justfile recipes will be aliased as npm scripts.
Before:
{
"scripts": {
"dev": "vite dev",
"test:unit": "vitest run",
"build:prod": "NODE_ENV=production vite build"
}
}After running npm just:
export PATH := "./node_modules/.bin:" + env_var('PATH')
dev:
vite dev
test--unit:
vitest run
build--prod:
NODE_ENV=production vite build{
"scripts": {
"dev": "just dev",
"test:unit": "just test--unit",
"build:prod": "just build--prod"
}
}Before:
deploy env="staging":
echo "Deploying to {{env}}"After running npm just:
{
"scripts": {
"deploy": "just deploy"
}
}- Auto-installs just binary as a node_modules binary (no separate install needed)
- Converts names:
test:unit↔test--unit - Handles
node_modules/.binpaths automatically - Works in monorepos (finds workspace root)
- Zero configuration
If you just want to install just as a node_modules binary without syncing scripts, see just-install.
MIT