{"_id":"@antislop/adonis-run","name":"@antislop/adonis-run","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@antislop/adonis-run","version":"0.1.0","description":"Run scripts with your AdonisJS application booted, like rails runner.","keywords":["adonisjs","ace","runner","scripts","rails-runner"],"license":"MIT","type":"module","exports":{".":"./build/configure.js","./commands":"./build/commands/main.js","./commands/run":"./build/commands/run.js","./configure":"./build/configure.js"},"engines":{"node":">=20.6.0"},"scripts":{"build":"tsc -p tsconfig.json","test":"npm run build && node --test tests/*.test.js","prepack":"npm run build","prepublishOnly":"npm test"},"peerDependencies":{"@adonisjs/core":"^6.0.0 || ^7.0.0"},"devDependencies":{"@adonisjs/assembler":"^8.5.1","@adonisjs/core":"^7.5.0","@poppinss/ts-exec":"^1.4.4","@types/node":"^24.0.0","typescript":"~5.9.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"gitHead":"ae960bad7e2f4e631ea4307133cf46de952e0066","_id":"@antislop/adonis-run@0.1.0","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-Mb1pPke9CzspgoLclNKZdAkh/mcHyvy8CRnYDOMzdTB7Pd4FCpTyOyn+NfFZQSCyS0DCSC6R2OMMXJuxldMACA==","shasum":"a97ac80d135714803b1720f162e8a4589a0136c2","tarball":"https://registry.npmjs.org/@antislop/adonis-run/-/adonis-run-0.1.0.tgz","fileCount":9,"unpackedSize":6864,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICiqigbBDQqdZYb+cLtIxiORjJ7wvKZmT46NT41pDLQAAiBouItd3mmQViiKSKS5JkNvZZDABy3TxX0jrcC3Ofv7lg=="}]},"_npmUser":{"name":"rohitpaulk","email":"rohitpaulk@gmail.com"},"directories":{},"maintainers":[{"name":"udeshya-dhungana","email":"eddie@codecrafters.io"},{"name":"andyli-antislop","email":"andy@codecrafters.io"},{"name":"rohitpaulk","email":"rohitpaulk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adonis-run_0.1.0_1789120730740_0.07904389874641016"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-11T09:58:50.628Z","0.1.0":"2026-09-11T09:58:50.878Z","modified":"2026-09-11T09:58:51.049Z"},"maintainers":[{"name":"udeshya-dhungana","email":"eddie@codecrafters.io"},{"name":"andyli-antislop","email":"andy@codecrafters.io"},{"name":"rohitpaulk","email":"rohitpaulk@gmail.com"}],"description":"Run scripts with your AdonisJS application booted, like rails runner.","keywords":["adonisjs","ace","runner","scripts","rails-runner"],"license":"MIT","readme":"# adonis-run\n\nRun a script with your AdonisJS application booted, like `rails runner`.\n\n```sh\nnode ace run scripts/release.ts\n```\n\nRead more here: [Adding rails runner to AdonisJS](https://rohitpaulk.com/articles/adding-rails-runner-to-adonisjs).\n\n## Install\n\n```sh\nnode ace add @antislop/adonis-run\n```\n\nThis installs the package and registers its `run` command in `adonisrc.ts`:\n\n```ts\ncommands: [\n  // ... your existing commands\n\n  // This will be added:\n  () => import('@antislop/adonis-run/commands'),\n],\n```\n\n## Usage\n\nRun a script like this:\n\n```sh\nnode ace run scripts/release.ts\n```\n\n### Arguments and flags\n\nExtra arguments are passed through the script and available in `process.argv.slice(2)`:\n\n```sh\nnode ace run scripts/greet.ts Alice \"Hello there\"\n```\n\n```ts\n// scripts/greet.ts\nconst [name, greeting] = process.argv.slice(2);\nconsole.log(`${greeting}, ${name}!`);\n```\n\nUse `--` before script flags so Ace does not interpret them:\n\n```sh\nnode ace run scripts/release.ts production -- --dry-run --limit=10\n```\n\nThe script receives `['production', '--dry-run', '--limit=10']`. The first `--` is a separator and is not forwarded. Arguments after it are preserved, including flag values, leading zeros, and additional `--` tokens.\n\n`process.argv[0]` remains the Node.js executable, and `process.argv[1]` is the resolved script path.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-07cb558bfb7b24df9a79a8015adb65b5"}