@adonisjs/core 7.2.0 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/commands/add.js +1 -1
  2. package/build/commands/build.js +1 -1
  3. package/build/commands/commands.json +1 -1
  4. package/build/commands/configure.js +1 -1
  5. package/build/commands/eject.js +1 -1
  6. package/build/commands/env/add.js +1 -1
  7. package/build/commands/generate_key.js +1 -1
  8. package/build/commands/list/routes.js +1 -1
  9. package/build/commands/make/command.d.ts +4 -0
  10. package/build/commands/make/command.js +8 -2
  11. package/build/commands/make/controller.d.ts +4 -0
  12. package/build/commands/make/controller.js +8 -2
  13. package/build/commands/make/event.d.ts +4 -0
  14. package/build/commands/make/event.js +8 -2
  15. package/build/commands/make/exception.d.ts +4 -0
  16. package/build/commands/make/exception.js +8 -2
  17. package/build/commands/make/listener.d.ts +4 -0
  18. package/build/commands/make/listener.js +6 -1
  19. package/build/commands/make/middleware.d.ts +4 -0
  20. package/build/commands/make/middleware.js +6 -1
  21. package/build/commands/make/preload.d.ts +4 -0
  22. package/build/commands/make/preload.js +6 -1
  23. package/build/commands/make/provider.d.ts +4 -0
  24. package/build/commands/make/provider.js +6 -1
  25. package/build/commands/make/service.d.ts +4 -0
  26. package/build/commands/make/service.js +8 -2
  27. package/build/commands/make/test.d.ts +4 -0
  28. package/build/commands/make/test.js +11 -2
  29. package/build/commands/make/transformer.d.ts +4 -0
  30. package/build/commands/make/transformer.js +8 -2
  31. package/build/commands/make/validator.d.ts +4 -0
  32. package/build/commands/make/validator.js +8 -2
  33. package/build/commands/make/view.d.ts +4 -0
  34. package/build/commands/make/view.js +8 -2
  35. package/build/commands/serve.js +1 -1
  36. package/build/commands/test.js +1 -1
  37. package/build/{decorate-BWvfauhB.js → decorate-yKe-VEeE.js} +1 -1
  38. package/build/toolkit/main.js +1 -1
  39. package/package.json +10 -10
@@ -1,6 +1,6 @@
1
1
  import { n as prettyPrintError } from "../core-X32M3Zo8.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
4
4
  //#region commands/add.ts
5
5
  /**
6
6
  * The install command is used to `npm install` and `node ace configure` one or more packages
@@ -1,6 +1,6 @@
1
1
  import { n as importTypeScript, t as importAssembler } from "../utils-CKwka7OL.js";
2
2
  import { p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
4
4
  //#region commands/build.ts
5
5
  /**
6
6
  * Create the production build by compiling TypeScript source and the
@@ -1 +1 @@
1
- {"commands":[{"commandName":"add","description":"Install and configure one or more AdonisJS packages. Runs npm install followed by the package configure hook","help":["Use this command instead of manually running npm install + configure separately.","Accepts shorthand names: \"vinejs\" for @vinejs/vine, \"edge\" for edge.js.","```","{{ binaryName }} add @adonisjs/lucid","{{ binaryName }} add @adonisjs/auth @adonisjs/session","```"],"namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager you want to use"},{"name":"dev","flagName":"dev","required":false,"type":"boolean","description":"Should we install the package as a dev dependency","alias":"D"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files"}],"args":[{"name":"names","argumentName":"names","required":true,"description":"Package names to install and configure","type":"spread"}],"options":{"allowUnknownFlags":true},"filePath":"add.js"},{"commandName":"build","description":"Build application for production by compiling frontend assets and TypeScript source to JavaScript","help":["Create the production build using the following command.","```","{{ binaryName }} build","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} build --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"ignoreTsErrors","flagName":"ignore-ts-errors","required":false,"type":"boolean","description":"Ignore TypeScript errors and continue with the build process"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager to copy the appropriate lock file"},{"name":"tsconfig","flagName":"tsconfig","required":false,"type":"string","description":"Define the tsconfig path"}],"args":[],"options":{},"filePath":"build.js"},{"commandName":"configure","description":"Run the configure hook of an already-installed package. Use \"add\" command instead to both install and configure in one step","help":"","namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode","alias":"v"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Package name","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"configure.js"},{"commandName":"eject","description":"Copy scaffolding stubs from a package to your application for customization. Stubs are templates used by make:* commands","help":"","namespace":null,"aliases":[],"flags":[{"name":"pkg","flagName":"pkg","required":false,"type":"string","description":"Mention package name for searching stubs","default":"@adonisjs/core"}],"args":[{"name":"stubPath","argumentName":"stub-path","required":true,"description":"Path to the stubs directory or a single stub file","type":"string"}],"options":{},"filePath":"eject.js"},{"commandName":"env:add","description":"Add a new environment variable to .env, .env.example, and its validation rule to start/env.ts","help":"","namespace":"env","aliases":[],"flags":[{"name":"type","flagName":"type","required":false,"type":"string","description":"Type of the variable"},{"name":"enumValues","flagName":"enum-values","required":false,"type":"array","description":"Allowed values for the enum type in a comma-separated list","default":[""]}],"args":[{"name":"name","argumentName":"name","required":false,"description":"Variable name. Will be converted to screaming snake case","type":"string"},{"name":"value","argumentName":"value","required":false,"description":"Variable value","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"env/add.js"},{"commandName":"generate:key","description":"Generate a cryptographically secure APP_KEY and write it to the .env file. Use --show to print without writing","help":"","namespace":"generate","aliases":[],"flags":[{"name":"show","flagName":"show","required":false,"type":"boolean","description":"Display the key on the terminal, instead of writing it to .env file"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Force update .env file in production environment"}],"args":[],"options":{},"filePath":"generate_key.js"},{"commandName":"inspect:rcfile","description":"Display the resolved adonisrc.ts configuration as JSON, including providers, preloads, commands, and meta files","help":"","namespace":"inspect","aliases":[],"flags":[],"args":[],"options":{},"filePath":"inspect_rcfile.js"},{"commandName":"list:routes","description":"List all registered routes with their HTTP methods, URL patterns, handlers, and middleware","help":"","namespace":"list","aliases":[],"flags":[{"name":"middleware","flagName":"middleware","required":false,"type":"array","description":"View routes that includes all the mentioned middleware names. Use * to see routes that are using one or more middleware"},{"name":"ignoreMiddleware","flagName":"ignore-middleware","required":false,"type":"array","description":"View routes that does not include all the mentioned middleware names. Use * to see routes that are using zero middleware"},{"name":"json","flagName":"json","required":false,"type":"boolean","description":"Get routes list as a JSON string"},{"name":"table","flagName":"table","required":false,"type":"boolean","description":"View list of routes as a table"},{"name":"jsonl","flagName":"jsonl","required":false,"type":"boolean","description":"Get routes as JSONL, one JSON object per line (optimized for AI agents)"}],"args":[{"name":"match","argumentName":"match","required":false,"description":"Find routes matching the given keyword. Route name, pattern and controller name will be searched against the keyword","type":"string"}],"options":{"startApp":true},"filePath":"list/routes.js"},{"commandName":"make:command","description":"Create a new Ace CLI command class in commands/","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the command","type":"string"}],"options":{},"filePath":"make/command.js"},{"commandName":"make:controller","description":"Create a new HTTP controller class in app/controllers. Use --resource for CRUD methods or --api for API-only CRUD (no create/edit)","help":"","namespace":"make","aliases":[],"flags":[{"name":"singular","flagName":"singular","required":false,"type":"boolean","description":"Generate controller in singular form","alias":"s"},{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Generate resourceful controller with methods to perform CRUD actions on a resource","alias":"r"},{"name":"api","flagName":"api","required":false,"type":"boolean","description":"Generate resourceful controller without the \"edit\" and the \"create\" methods","alias":"a"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"The name of the controller","type":"string"},{"name":"actions","argumentName":"actions","required":false,"description":"Create controller with custom method names","type":"spread"}],"options":{"allowUnknownFlags":true},"filePath":"make/controller.js"},{"commandName":"make:event","description":"Create a new event class in app/events. Events are dispatched via emitter and handled by listeners","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/event.js"},{"commandName":"make:exception","description":"Create a new custom exception class in app/exceptions with handle and report methods","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the exception","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/exception.js"},{"commandName":"make:listener","description":"Create a new event listener class in app/listeners. Use --event to also generate the event class and bind them together","help":"","namespace":"make","aliases":[],"flags":[{"name":"event","flagName":"event","required":false,"type":"string","description":"Generate an event class alongside the listener","alias":"e"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event listener","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/listener.js"},{"commandName":"make:middleware","description":"Create a new middleware class in app/middleware and register it in start/kernel.ts under the chosen stack (server, router, or named)","help":"","namespace":"make","aliases":[],"flags":[{"name":"stack","flagName":"stack","required":false,"type":"string","description":"The stack in which to register the middleware","alias":"s"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the middleware","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/middleware.js"},{"commandName":"make:preload","description":"Create a new preload file in start/ and optionally register it in adonisrc.ts. Preload files run during app boot","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the preload file inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the preload file's environment. Accepted values are \"web,console,test,repl\"","alias":"e"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the preload file","type":"string"}],"options":{},"filePath":"make/preload.js"},{"commandName":"make:provider","description":"Create a new service provider in providers/ and optionally register it in adonisrc.ts. Providers register IoC container bindings","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the provider inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the provider environment. Accepted values are \"web,console,test,repl\"","alias":"e"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the provider","type":"string"}],"options":{},"filePath":"make/provider.js"},{"commandName":"make:service","description":"Create a new service class in app/services. Services encapsulate reusable business logic outside of controllers","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the service","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/service.js"},{"commandName":"make:test","description":"Create a new Japa test file in tests/. Use --suite to specify the test suite (unit, functional, etc.)","help":"","namespace":"make","aliases":[],"flags":[{"name":"suite","flagName":"suite","required":false,"type":"string","description":"The suite for which to create the test file","alias":"s"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the test file","type":"string"}],"options":{},"filePath":"make/test.js"},{"commandName":"make:transformer","description":"Create a new transformer class in app/transformers for serializing data in API responses","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Entity name for which to generate the transformer","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/transformer.js"},{"commandName":"make:validator","description":"Create a new VineJS validator file in app/validators. Use --resource to generate both create and update validation schemas","help":"","namespace":"make","aliases":[],"flags":[{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Create a file with pre-defined validators for create and update actions"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the validator file","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/validator.js"},{"commandName":"make:view","description":"Create a new Edge.js template file in resources/views","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the template","type":"string"}],"options":{},"filePath":"make/view.js"},{"commandName":"repl","description":"Start an interactive REPL session with the application booted and IoC container available","help":"","namespace":null,"aliases":[],"flags":[],"args":[],"options":{"startApp":true,"staysAlive":true},"filePath":"repl.js"},{"commandName":"serve","description":"Start the development HTTP server. Use --watch for auto-restart on file change or --hmr for hot module replacement","help":["Start the development server with file watcher using the following command.","```","{{ binaryName }} serve --watch","```","","You can also start the server with HMR support using the following command.","```","{{ binaryName }} serve --hmr","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} serve --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"hmr","flagName":"hmr","required":false,"type":"boolean","description":"Start the server with HMR support"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change","alias":"w"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes","alias":"p"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[],"options":{"staysAlive":true},"filePath":"serve.js"},{"commandName":"test","description":"Run tests using Japa test runner. Supports filtering by suite, file, tag, and group. Use --watch for re-runs on file change","help":"","namespace":null,"aliases":[],"flags":[{"name":"files","flagName":"files","required":false,"type":"array","description":"Filter tests by the filename"},{"name":"tags","flagName":"tags","required":false,"type":"array","description":"Filter tests by tags"},{"name":"groups","flagName":"groups","required":false,"type":"array","description":"Filter tests by parent group title"},{"name":"tests","flagName":"tests","required":false,"type":"array","description":"Filter tests by test title"},{"name":"reporters","flagName":"reporters","required":false,"type":"array","description":"Activate one or more test reporters"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and re-run tests on file change"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes"},{"name":"timeout","flagName":"timeout","required":false,"type":"number","description":"Define default timeout for all tests"},{"name":"retries","flagName":"retries","required":false,"type":"number","description":"Define default retries for all tests"},{"name":"failed","flagName":"failed","required":false,"type":"boolean","description":"Execute tests failed during the last run"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[{"name":"suites","argumentName":"suites","required":false,"description":"Mention suite names to run tests for selected suites","type":"spread"}],"options":{"allowUnknownFlags":true,"staysAlive":true},"filePath":"test.js"}],"version":1}
1
+ {"commands":[{"commandName":"add","description":"Install and configure one or more AdonisJS packages. Runs npm install followed by the package configure hook","help":["Use this command instead of manually running npm install + configure separately.","Accepts shorthand names: \"vinejs\" for @vinejs/vine, \"edge\" for edge.js.","```","{{ binaryName }} add @adonisjs/lucid","{{ binaryName }} add @adonisjs/auth @adonisjs/session","```"],"namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager you want to use"},{"name":"dev","flagName":"dev","required":false,"type":"boolean","description":"Should we install the package as a dev dependency","alias":"D"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files"}],"args":[{"name":"names","argumentName":"names","required":true,"description":"Package names to install and configure","type":"spread"}],"options":{"allowUnknownFlags":true},"filePath":"add.js"},{"commandName":"build","description":"Build application for production by compiling frontend assets and TypeScript source to JavaScript","help":["Create the production build using the following command.","```","{{ binaryName }} build","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} build --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"ignoreTsErrors","flagName":"ignore-ts-errors","required":false,"type":"boolean","description":"Ignore TypeScript errors and continue with the build process"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager to copy the appropriate lock file"},{"name":"tsconfig","flagName":"tsconfig","required":false,"type":"string","description":"Define the tsconfig path"}],"args":[],"options":{},"filePath":"build.js"},{"commandName":"configure","description":"Run the configure hook of an already-installed package. Use \"add\" command instead to both install and configure in one step","help":"","namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode","alias":"v"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Package name","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"configure.js"},{"commandName":"eject","description":"Copy scaffolding stubs from a package to your application for customization. Stubs are templates used by make:* commands","help":"","namespace":null,"aliases":[],"flags":[{"name":"pkg","flagName":"pkg","required":false,"type":"string","description":"Mention package name for searching stubs","default":"@adonisjs/core"}],"args":[{"name":"stubPath","argumentName":"stub-path","required":true,"description":"Path to the stubs directory or a single stub file","type":"string"}],"options":{},"filePath":"eject.js"},{"commandName":"env:add","description":"Add a new environment variable to .env, .env.example, and its validation rule to start/env.ts","help":"","namespace":"env","aliases":[],"flags":[{"name":"type","flagName":"type","required":false,"type":"string","description":"Type of the variable"},{"name":"enumValues","flagName":"enum-values","required":false,"type":"array","description":"Allowed values for the enum type in a comma-separated list","default":[""]}],"args":[{"name":"name","argumentName":"name","required":false,"description":"Variable name. Will be converted to screaming snake case","type":"string"},{"name":"value","argumentName":"value","required":false,"description":"Variable value","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"env/add.js"},{"commandName":"generate:key","description":"Generate a cryptographically secure APP_KEY and write it to the .env file. Use --show to print without writing","help":"","namespace":"generate","aliases":[],"flags":[{"name":"show","flagName":"show","required":false,"type":"boolean","description":"Display the key on the terminal, instead of writing it to .env file"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Force update .env file in production environment"}],"args":[],"options":{},"filePath":"generate_key.js"},{"commandName":"inspect:rcfile","description":"Display the resolved adonisrc.ts configuration as JSON, including providers, preloads, commands, and meta files","help":"","namespace":"inspect","aliases":[],"flags":[],"args":[],"options":{},"filePath":"inspect_rcfile.js"},{"commandName":"list:routes","description":"List all registered routes with their HTTP methods, URL patterns, handlers, and middleware","help":"","namespace":"list","aliases":[],"flags":[{"name":"middleware","flagName":"middleware","required":false,"type":"array","description":"View routes that includes all the mentioned middleware names. Use * to see routes that are using one or more middleware"},{"name":"ignoreMiddleware","flagName":"ignore-middleware","required":false,"type":"array","description":"View routes that does not include all the mentioned middleware names. Use * to see routes that are using zero middleware"},{"name":"json","flagName":"json","required":false,"type":"boolean","description":"Get routes list as a JSON string"},{"name":"table","flagName":"table","required":false,"type":"boolean","description":"View list of routes as a table"},{"name":"jsonl","flagName":"jsonl","required":false,"type":"boolean","description":"Get routes as JSONL, one JSON object per line (optimized for AI agents)"}],"args":[{"name":"match","argumentName":"match","required":false,"description":"Find routes matching the given keyword. Route name, pattern and controller name will be searched against the keyword","type":"string"}],"options":{"startApp":true},"filePath":"list/routes.js"},{"commandName":"make:command","description":"Create a new Ace CLI command class in commands/","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the command","type":"string"}],"options":{},"filePath":"make/command.js"},{"commandName":"make:controller","description":"Create a new HTTP controller class in app/controllers. Use --resource for CRUD methods or --api for API-only CRUD (no create/edit)","help":"","namespace":"make","aliases":[],"flags":[{"name":"singular","flagName":"singular","required":false,"type":"boolean","description":"Generate controller in singular form","alias":"s"},{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Generate resourceful controller with methods to perform CRUD actions on a resource","alias":"r"},{"name":"api","flagName":"api","required":false,"type":"boolean","description":"Generate resourceful controller without the \"edit\" and the \"create\" methods","alias":"a"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"The name of the controller","type":"string"},{"name":"actions","argumentName":"actions","required":false,"description":"Create controller with custom method names","type":"spread"}],"options":{"allowUnknownFlags":true},"filePath":"make/controller.js"},{"commandName":"make:event","description":"Create a new event class in app/events. Events are dispatched via emitter and handled by listeners","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/event.js"},{"commandName":"make:exception","description":"Create a new custom exception class in app/exceptions with handle and report methods","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the exception","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/exception.js"},{"commandName":"make:listener","description":"Create a new event listener class in app/listeners. Use --event to also generate the event class and bind them together","help":"","namespace":"make","aliases":[],"flags":[{"name":"event","flagName":"event","required":false,"type":"string","description":"Generate an event class alongside the listener","alias":"e"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event listener","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/listener.js"},{"commandName":"make:middleware","description":"Create a new middleware class in app/middleware and register it in start/kernel.ts under the chosen stack (server, router, or named)","help":"","namespace":"make","aliases":[],"flags":[{"name":"stack","flagName":"stack","required":false,"type":"string","description":"The stack in which to register the middleware","alias":"s"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the middleware","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/middleware.js"},{"commandName":"make:preload","description":"Create a new preload file in start/ and optionally register it in adonisrc.ts. Preload files run during app boot","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the preload file inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the preload file's environment. Accepted values are \"web,console,test,repl\"","alias":"e"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the preload file","type":"string"}],"options":{},"filePath":"make/preload.js"},{"commandName":"make:provider","description":"Create a new service provider in providers/ and optionally register it in adonisrc.ts. Providers register IoC container bindings","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the provider inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the provider environment. Accepted values are \"web,console,test,repl\"","alias":"e"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the provider","type":"string"}],"options":{},"filePath":"make/provider.js"},{"commandName":"make:service","description":"Create a new service class in app/services. Services encapsulate reusable business logic outside of controllers","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the service","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/service.js"},{"commandName":"make:test","description":"Create a new Japa test file in tests/. Use --suite to specify the test suite (unit, functional, etc.)","help":"","namespace":"make","aliases":[],"flags":[{"name":"suite","flagName":"suite","required":false,"type":"string","description":"The suite for which to create the test file","alias":"s"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the test file","type":"string"}],"options":{},"filePath":"make/test.js"},{"commandName":"make:transformer","description":"Create a new transformer class in app/transformers for serializing data in API responses","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Entity name for which to generate the transformer","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/transformer.js"},{"commandName":"make:validator","description":"Create a new VineJS validator file in app/validators. Use --resource to generate both create and update validation schemas","help":"","namespace":"make","aliases":[],"flags":[{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Create a file with pre-defined validators for create and update actions"},{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the validator file","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/validator.js"},{"commandName":"make:view","description":"Create a new Edge.js template file in resources/views","help":"","namespace":"make","aliases":[],"flags":[{"name":"contentsFrom","flagName":"contents-from","required":false,"type":"string","description":"Use the contents of the given file as the generated output"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the template","type":"string"}],"options":{},"filePath":"make/view.js"},{"commandName":"repl","description":"Start an interactive REPL session with the application booted and IoC container available","help":"","namespace":null,"aliases":[],"flags":[],"args":[],"options":{"startApp":true,"staysAlive":true},"filePath":"repl.js"},{"commandName":"serve","description":"Start the development HTTP server. Use --watch for auto-restart on file change or --hmr for hot module replacement","help":["Start the development server with file watcher using the following command.","```","{{ binaryName }} serve --watch","```","","You can also start the server with HMR support using the following command.","```","{{ binaryName }} serve --hmr","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} serve --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"hmr","flagName":"hmr","required":false,"type":"boolean","description":"Start the server with HMR support"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change","alias":"w"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes","alias":"p"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[],"options":{"staysAlive":true},"filePath":"serve.js"},{"commandName":"test","description":"Run tests using Japa test runner. Supports filtering by suite, file, tag, and group. Use --watch for re-runs on file change","help":"","namespace":null,"aliases":[],"flags":[{"name":"files","flagName":"files","required":false,"type":"array","description":"Filter tests by the filename"},{"name":"tags","flagName":"tags","required":false,"type":"array","description":"Filter tests by tags"},{"name":"groups","flagName":"groups","required":false,"type":"array","description":"Filter tests by parent group title"},{"name":"tests","flagName":"tests","required":false,"type":"array","description":"Filter tests by test title"},{"name":"reporters","flagName":"reporters","required":false,"type":"array","description":"Activate one or more test reporters"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and re-run tests on file change"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes"},{"name":"timeout","flagName":"timeout","required":false,"type":"number","description":"Define default timeout for all tests"},{"name":"retries","flagName":"retries","required":false,"type":"number","description":"Define default retries for all tests"},{"name":"failed","flagName":"failed","required":false,"type":"boolean","description":"Execute tests failed during the last run"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[{"name":"suites","argumentName":"suites","required":false,"description":"Mention suite names to run tests for selected suites","type":"spread"}],"options":{"allowUnknownFlags":true,"staysAlive":true},"filePath":"test.js"}],"version":1}
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
4
4
  import { RuntimeException } from "@poppinss/utils/exception";
5
5
  //#region commands/configure.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { t as stringHelpers } from "../string-8_8He-HH.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
4
4
  //#region commands/eject.ts
5
5
  /**
6
6
  * Command to eject scaffolding stubs from packages to your application root.
@@ -1,6 +1,6 @@
1
1
  import { t as stringHelpers } from "../../string-8_8He-HH.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/env/add.ts
5
5
  const ALLOWED_TYPES = [
6
6
  "string",
@@ -1,5 +1,5 @@
1
1
  import { p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
2
- import { t as __decorate } from "../decorate-BWvfauhB.js";
2
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
3
3
  import string from "@poppinss/utils/string";
4
4
  import { EnvEditor } from "@adonisjs/env/editor";
5
5
  //#region commands/generate_key.ts
@@ -1,5 +1,5 @@
1
1
  import { o as args, p as BaseCommand, s as cliHelpers, u as flags } from "../../main-DzNXtXg3.js";
2
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
2
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
3
3
  import stringWidth from "string-width";
4
4
  import { middlewareInfo, routeInfo } from "@adonisjs/http-server/helpers";
5
5
  //#region src/cli_formatters/routes_list.ts
@@ -30,6 +30,10 @@ export default class MakeCommand extends BaseCommand {
30
30
  * it as the raw contents
31
31
  */
32
32
  contentsFrom: string;
33
+ /**
34
+ * Forcefully overwrite existing files
35
+ */
36
+ force: boolean;
33
37
  /**
34
38
  * The stub template file to use for generating the command class
35
39
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/command.ts
5
5
  /**
6
6
  * Command to create a new Ace command class.
@@ -33,7 +33,9 @@ var MakeCommand = class extends BaseCommand {
33
33
  * Generates the command file with proper CLI command structure.
34
34
  */
35
35
  async run() {
36
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
36
+ const codemods = await this.createCodemods();
37
+ codemods.overwriteExisting = this.force === true;
38
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
37
39
  flags: this.parsed.flags,
38
40
  entity: this.app.generators.createEntity(this.name)
39
41
  }, { contentsFromFile: this.contentsFrom });
@@ -41,5 +43,9 @@ var MakeCommand = class extends BaseCommand {
41
43
  };
42
44
  __decorate([args.string({ description: "Name of the command" })], MakeCommand.prototype, "name", void 0);
43
45
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeCommand.prototype, "contentsFrom", void 0);
46
+ __decorate([flags.boolean({
47
+ description: "Forcefully overwrite existing files",
48
+ alias: "f"
49
+ })], MakeCommand.prototype, "force", void 0);
44
50
  //#endregion
45
51
  export { MakeCommand as default };
@@ -50,6 +50,10 @@ export default class MakeController extends BaseCommand {
50
50
  * it as the raw contents
51
51
  */
52
52
  contentsFrom: string;
53
+ /**
54
+ * Forcefully overwrite existing files
55
+ */
56
+ force: boolean;
53
57
  /**
54
58
  * The stub to use for generating the controller
55
59
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  import string from "@poppinss/utils/string";
5
5
  //#region commands/make/controller.ts
6
6
  /**
@@ -56,7 +56,9 @@ var MakeController = class extends BaseCommand {
56
56
  if (this.resource && this.api && !this.actions) this.logger.warning("--api and --resource flags cannot be used together. Ignoring --resource");
57
57
  }
58
58
  async run() {
59
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
59
+ const codemods = await this.createCodemods();
60
+ codemods.overwriteExisting = this.force === true;
61
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
60
62
  flags: this.parsed.flags,
61
63
  actions: this.actions?.map((action) => string.camelCase(action)),
62
64
  entity: this.app.generators.createEntity(this.name),
@@ -82,5 +84,9 @@ __decorate([flags.boolean({
82
84
  alias: "a"
83
85
  })], MakeController.prototype, "api", void 0);
84
86
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeController.prototype, "contentsFrom", void 0);
87
+ __decorate([flags.boolean({
88
+ description: "Forcefully overwrite existing files",
89
+ alias: "f"
90
+ })], MakeController.prototype, "force", void 0);
85
91
  //#endregion
86
92
  export { MakeController as default };
@@ -35,6 +35,10 @@ export default class MakeEvent extends BaseCommand {
35
35
  * it as the raw contents
36
36
  */
37
37
  contentsFrom: string;
38
+ /**
39
+ * Forcefully overwrite existing files
40
+ */
41
+ force: boolean;
38
42
  /**
39
43
  * The stub template file to use for generating the event class
40
44
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/event.ts
5
5
  /**
6
6
  * Command to create a new event class.
@@ -37,7 +37,9 @@ var MakeEvent = class extends BaseCommand {
37
37
  * Generates the event file with proper event structure.
38
38
  */
39
39
  async run() {
40
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
40
+ const codemods = await this.createCodemods();
41
+ codemods.overwriteExisting = this.force === true;
42
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
41
43
  flags: this.parsed.flags,
42
44
  entity: this.app.generators.createEntity(this.name)
43
45
  }, { contentsFromFile: this.contentsFrom });
@@ -45,5 +47,9 @@ var MakeEvent = class extends BaseCommand {
45
47
  };
46
48
  __decorate([args.string({ description: "Name of the event" })], MakeEvent.prototype, "name", void 0);
47
49
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeEvent.prototype, "contentsFrom", void 0);
50
+ __decorate([flags.boolean({
51
+ description: "Forcefully overwrite existing files",
52
+ alias: "f"
53
+ })], MakeEvent.prototype, "force", void 0);
48
54
  //#endregion
49
55
  export { MakeEvent as default };
@@ -35,6 +35,10 @@ export default class MakeException extends BaseCommand {
35
35
  * it as the raw contents
36
36
  */
37
37
  contentsFrom: string;
38
+ /**
39
+ * Forcefully overwrite existing files
40
+ */
41
+ force: boolean;
38
42
  /**
39
43
  * The stub template file to use for generating the exception class
40
44
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/exception.ts
5
5
  /**
6
6
  * Command to create a new custom exception class.
@@ -37,7 +37,9 @@ var MakeException = class extends BaseCommand {
37
37
  * Generates the exception file with proper error handling structure.
38
38
  */
39
39
  async run() {
40
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
40
+ const codemods = await this.createCodemods();
41
+ codemods.overwriteExisting = this.force === true;
42
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
41
43
  flags: this.parsed.flags,
42
44
  entity: this.app.generators.createEntity(this.name)
43
45
  }, { contentsFromFile: this.contentsFrom });
@@ -45,5 +47,9 @@ var MakeException = class extends BaseCommand {
45
47
  };
46
48
  __decorate([args.string({ description: "Name of the exception" })], MakeException.prototype, "name", void 0);
47
49
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeException.prototype, "contentsFrom", void 0);
50
+ __decorate([flags.boolean({
51
+ description: "Forcefully overwrite existing files",
52
+ alias: "f"
53
+ })], MakeException.prototype, "force", void 0);
48
54
  //#endregion
49
55
  export { MakeException as default };
@@ -39,6 +39,10 @@ export default class MakeListener extends BaseCommand {
39
39
  * it as the raw contents
40
40
  */
41
41
  contentsFrom: string;
42
+ /**
43
+ * Forcefully overwrite existing files
44
+ */
45
+ force: boolean;
42
46
  /**
43
47
  * The stub template file to use for generating the event listener
44
48
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/listener.ts
5
5
  /**
6
6
  * Command to create a new event listener class.
@@ -46,6 +46,7 @@ var MakeListener = class extends BaseCommand {
46
46
  */
47
47
  async run() {
48
48
  const codemods = await this.createCodemods();
49
+ codemods.overwriteExisting = this.force === true;
49
50
  if (this.event) {
50
51
  const { exitCode } = await this.kernel.exec("make:event", [this.event]);
51
52
  /**
@@ -73,5 +74,9 @@ __decorate([flags.string({
73
74
  alias: "e"
74
75
  })], MakeListener.prototype, "event", void 0);
75
76
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeListener.prototype, "contentsFrom", void 0);
77
+ __decorate([flags.boolean({
78
+ description: "Forcefully overwrite existing files",
79
+ alias: "f"
80
+ })], MakeListener.prototype, "force", void 0);
76
81
  //#endregion
77
82
  export { MakeListener as default };
@@ -38,6 +38,10 @@ export default class MakeMiddleware extends BaseCommand {
38
38
  * it as the raw contents
39
39
  */
40
40
  contentsFrom: string;
41
+ /**
42
+ * Forcefully overwrite existing files
43
+ */
44
+ force: boolean;
41
45
  /**
42
46
  * The stub to use for generating the middleware
43
47
  */
@@ -1,7 +1,7 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { t as stringHelpers } from "../../string-8_8He-HH.js";
3
3
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
4
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
4
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
5
5
  import string from "@poppinss/utils/string";
6
6
  import { basename, extname, relative } from "node:path";
7
7
  //#region commands/make/middleware.ts
@@ -57,6 +57,7 @@ var MakeMiddleware = class extends BaseCommand {
57
57
  * Create middleware
58
58
  */
59
59
  const codemods = await this.createCodemods();
60
+ codemods.overwriteExisting = this.force === true;
60
61
  const { destination } = await codemods.makeUsingStub(stubsRoot, this.stubPath, {
61
62
  flags: this.parsed.flags,
62
63
  entity: this.app.generators.createEntity(this.name)
@@ -86,5 +87,9 @@ __decorate([flags.string({
86
87
  alias: "s"
87
88
  })], MakeMiddleware.prototype, "stack", void 0);
88
89
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeMiddleware.prototype, "contentsFrom", void 0);
90
+ __decorate([flags.boolean({
91
+ description: "Forcefully overwrite existing files",
92
+ alias: "f"
93
+ })], MakeMiddleware.prototype, "force", void 0);
89
94
  //#endregion
90
95
  export { MakeMiddleware as default };
@@ -42,6 +42,10 @@ export default class MakePreload extends BaseCommand {
42
42
  * it as the raw contents
43
43
  */
44
44
  contentsFrom: string;
45
+ /**
46
+ * Forcefully overwrite existing files
47
+ */
48
+ force: boolean;
45
49
  /**
46
50
  * The stub template file to use for generating the preload file
47
51
  */
@@ -1,7 +1,7 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { t as stringHelpers } from "../../string-8_8He-HH.js";
3
3
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
4
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
4
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
5
5
  import { extname, relative } from "node:path";
6
6
  //#region commands/make/preload.ts
7
7
  const ALLOWED_ENVIRONMENTS = [
@@ -64,6 +64,7 @@ var MakePreload = class extends BaseCommand {
64
64
  */
65
65
  if (this.register === void 0) this.register = await this.prompt.confirm("Do you want to register the preload file in .adonisrc.ts file?");
66
66
  const codemods = await this.createCodemods();
67
+ codemods.overwriteExisting = this.force === true;
67
68
  const { destination } = await codemods.makeUsingStub(stubsRoot, this.stubPath, {
68
69
  flags: this.parsed.flags,
69
70
  entity: this.app.generators.createEntity(this.name)
@@ -94,5 +95,9 @@ __decorate([flags.array({
94
95
  alias: "e"
95
96
  })], MakePreload.prototype, "environments", void 0);
96
97
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakePreload.prototype, "contentsFrom", void 0);
98
+ __decorate([flags.boolean({
99
+ description: "Forcefully overwrite existing files",
100
+ alias: "f"
101
+ })], MakePreload.prototype, "force", void 0);
97
102
  //#endregion
98
103
  export { MakePreload as default };
@@ -41,6 +41,10 @@ export default class MakeProvider extends BaseCommand {
41
41
  * it as the raw contents
42
42
  */
43
43
  contentsFrom: string;
44
+ /**
45
+ * Forcefully overwrite existing files
46
+ */
47
+ force: boolean;
44
48
  /**
45
49
  * The stub template file to use for generating the provider class
46
50
  */
@@ -1,7 +1,7 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { t as stringHelpers } from "../../string-8_8He-HH.js";
3
3
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
4
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
4
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
5
5
  import { extname, relative } from "node:path";
6
6
  //#region commands/make/provider.ts
7
7
  const ALLOWED_ENVIRONMENTS = [
@@ -63,6 +63,7 @@ var MakeProvider = class extends BaseCommand {
63
63
  */
64
64
  if (this.register === void 0) this.register = await this.prompt.confirm("Do you want to register the provider in .adonisrc.ts file?");
65
65
  const codemods = await this.createCodemods();
66
+ codemods.overwriteExisting = this.force === true;
66
67
  const { destination } = await codemods.makeUsingStub(stubsRoot, this.stubPath, {
67
68
  flags: this.parsed.flags,
68
69
  entity: this.app.generators.createEntity(this.name)
@@ -93,5 +94,9 @@ __decorate([flags.array({
93
94
  alias: "e"
94
95
  })], MakeProvider.prototype, "environments", void 0);
95
96
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeProvider.prototype, "contentsFrom", void 0);
97
+ __decorate([flags.boolean({
98
+ description: "Forcefully overwrite existing files",
99
+ alias: "f"
100
+ })], MakeProvider.prototype, "force", void 0);
96
101
  //#endregion
97
102
  export { MakeProvider as default };
@@ -32,6 +32,10 @@ export default class MakeService extends BaseCommand {
32
32
  * it as the raw contents
33
33
  */
34
34
  contentsFrom: string;
35
+ /**
36
+ * Forcefully overwrite existing files
37
+ */
38
+ force: boolean;
35
39
  /**
36
40
  * The stub to use for generating the service class
37
41
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/service.ts
5
5
  /**
6
6
  * Make a new service class
@@ -30,7 +30,9 @@ var MakeService = class extends BaseCommand {
30
30
  */
31
31
  stubPath = "make/service/main.stub";
32
32
  async run() {
33
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
33
+ const codemods = await this.createCodemods();
34
+ codemods.overwriteExisting = this.force === true;
35
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
34
36
  flags: this.parsed.flags,
35
37
  entity: this.app.generators.createEntity(this.name)
36
38
  }, { contentsFromFile: this.contentsFrom });
@@ -38,5 +40,9 @@ var MakeService = class extends BaseCommand {
38
40
  };
39
41
  __decorate([args.string({ description: "Name of the service" })], MakeService.prototype, "name", void 0);
40
42
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeService.prototype, "contentsFrom", void 0);
43
+ __decorate([flags.boolean({
44
+ description: "Forcefully overwrite existing files",
45
+ alias: "f"
46
+ })], MakeService.prototype, "force", void 0);
41
47
  //#endregion
42
48
  export { MakeService as default };
@@ -34,6 +34,10 @@ export default class MakeTest extends BaseCommand {
34
34
  * it as the raw contents
35
35
  */
36
36
  contentsFrom: string;
37
+ /**
38
+ * Forcefully overwrite existing files
39
+ */
40
+ force: boolean;
37
41
  /**
38
42
  * The stub template file to use for generating the test file
39
43
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/test.ts
5
5
  /**
6
6
  * Command to create a new Japa test file.
@@ -90,7 +90,12 @@ var MakeTest = class extends BaseCommand {
90
90
  this.exitCode = 1;
91
91
  return;
92
92
  }
93
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
93
+ /**
94
+ * Generate entity
95
+ */
96
+ const codemods = await this.createCodemods();
97
+ codemods.overwriteExisting = this.force === true;
98
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
94
99
  flags: this.parsed.flags,
95
100
  entity: this.app.generators.createEntity(this.name),
96
101
  suite: { directory: await this.#getSuiteDirectory(suite.directories) }
@@ -103,5 +108,9 @@ __decorate([flags.string({
103
108
  alias: "s"
104
109
  })], MakeTest.prototype, "suite", void 0);
105
110
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeTest.prototype, "contentsFrom", void 0);
111
+ __decorate([flags.boolean({
112
+ description: "Forcefully overwrite existing files",
113
+ alias: "f"
114
+ })], MakeTest.prototype, "force", void 0);
106
115
  //#endregion
107
116
  export { MakeTest as default };
@@ -36,6 +36,10 @@ export default class MakeTransformer extends BaseCommand {
36
36
  * it as the raw contents
37
37
  */
38
38
  contentsFrom: string;
39
+ /**
40
+ * Forcefully overwrite existing files
41
+ */
42
+ force: boolean;
39
43
  /**
40
44
  * The stub template file to use for generating the transformer class
41
45
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/transformer.ts
5
5
  /**
6
6
  * Command to create a new transformer class.
@@ -38,7 +38,9 @@ var MakeTransformer = class extends BaseCommand {
38
38
  * Generates the transformer file with proper data serialization structure.
39
39
  */
40
40
  async run() {
41
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
41
+ const codemods = await this.createCodemods();
42
+ codemods.overwriteExisting = this.force === true;
43
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
42
44
  flags: this.parsed.flags,
43
45
  entity: this.app.generators.createEntity(this.name),
44
46
  model: this.app.generators.createEntity(this.name)
@@ -47,5 +49,9 @@ var MakeTransformer = class extends BaseCommand {
47
49
  };
48
50
  __decorate([args.string({ description: "Entity name for which to generate the transformer" })], MakeTransformer.prototype, "name", void 0);
49
51
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeTransformer.prototype, "contentsFrom", void 0);
52
+ __decorate([flags.boolean({
53
+ description: "Forcefully overwrite existing files",
54
+ alias: "f"
55
+ })], MakeTransformer.prototype, "force", void 0);
50
56
  //#endregion
51
57
  export { MakeTransformer as default };
@@ -40,6 +40,10 @@ export default class MakeValidator extends BaseCommand {
40
40
  * it as the raw contents
41
41
  */
42
42
  contentsFrom: string;
43
+ /**
44
+ * Forcefully overwrite existing files
45
+ */
46
+ force: boolean;
43
47
  /**
44
48
  * The stub template file to use for generating the validator
45
49
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/validator.ts
5
5
  /**
6
6
  * Command to create a new VineJS validator file.
@@ -48,7 +48,9 @@ var MakeValidator = class extends BaseCommand {
48
48
  * Generates the validator with the appropriate stub template.
49
49
  */
50
50
  async run() {
51
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
51
+ const codemods = await this.createCodemods();
52
+ codemods.overwriteExisting = this.force === true;
53
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
52
54
  flags: this.parsed.flags,
53
55
  entity: this.app.generators.createEntity(this.name)
54
56
  }, { contentsFromFile: this.contentsFrom });
@@ -57,5 +59,9 @@ var MakeValidator = class extends BaseCommand {
57
59
  __decorate([args.string({ description: "Name of the validator file" })], MakeValidator.prototype, "name", void 0);
58
60
  __decorate([flags.boolean({ description: "Create a file with pre-defined validators for create and update actions" })], MakeValidator.prototype, "resource", void 0);
59
61
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeValidator.prototype, "contentsFrom", void 0);
62
+ __decorate([flags.boolean({
63
+ description: "Forcefully overwrite existing files",
64
+ alias: "f"
65
+ })], MakeValidator.prototype, "force", void 0);
60
66
  //#endregion
61
67
  export { MakeValidator as default };
@@ -30,6 +30,10 @@ export default class MakeView extends BaseCommand {
30
30
  * it as the raw contents
31
31
  */
32
32
  contentsFrom: string;
33
+ /**
34
+ * Forcefully overwrite existing files
35
+ */
36
+ force: boolean;
33
37
  /**
34
38
  * The stub template file to use for generating the Edge template
35
39
  */
@@ -1,6 +1,6 @@
1
1
  import { t as stubsRoot } from "../../main-CfTiGsiS.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../../decorate-yKe-VEeE.js";
4
4
  //#region commands/make/view.ts
5
5
  /**
6
6
  * Command to create a new Edge.js template file.
@@ -33,7 +33,9 @@ var MakeView = class extends BaseCommand {
33
33
  * Generates the template file in the views directory.
34
34
  */
35
35
  async run() {
36
- await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
36
+ const codemods = await this.createCodemods();
37
+ codemods.overwriteExisting = this.force === true;
38
+ await codemods.makeUsingStub(stubsRoot, this.stubPath, {
37
39
  flags: this.parsed.flags,
38
40
  entity: this.app.generators.createEntity(this.name)
39
41
  }, { contentsFromFile: this.contentsFrom });
@@ -41,5 +43,9 @@ var MakeView = class extends BaseCommand {
41
43
  };
42
44
  __decorate([args.string({ description: "Name of the template" })], MakeView.prototype, "name", void 0);
43
45
  __decorate([flags.string({ description: "Use the contents of the given file as the generated output" })], MakeView.prototype, "contentsFrom", void 0);
46
+ __decorate([flags.boolean({
47
+ description: "Forcefully overwrite existing files",
48
+ alias: "f"
49
+ })], MakeView.prototype, "force", void 0);
44
50
  //#endregion
45
51
  export { MakeView as default };
@@ -1,6 +1,6 @@
1
1
  import { t as importAssembler } from "../utils-CKwka7OL.js";
2
2
  import { p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
4
4
  //#region commands/serve.ts
5
5
  /**
6
6
  * Serve command is used to run the AdonisJS HTTP server during development. The
@@ -1,6 +1,6 @@
1
1
  import { t as importAssembler } from "../utils-CKwka7OL.js";
2
2
  import { o as args, p as BaseCommand, u as flags } from "../main-DzNXtXg3.js";
3
- import { t as __decorate } from "../decorate-BWvfauhB.js";
3
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
4
4
  //#region commands/test.ts
5
5
  /**
6
6
  * Command to run application tests using the Japa test runner.
@@ -1,4 +1,4 @@
1
- //#region \0@oxc-project+runtime@0.121.0/helpers/decorate.js
1
+ //#region \0@oxc-project+runtime@0.122.0/helpers/decorate.js
2
2
  function __decorate(decorators, target, key, desc) {
3
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as __decorate } from "../decorate-BWvfauhB.js";
2
+ import { t as __decorate } from "../decorate-yKe-VEeE.js";
3
3
  import { BaseCommand, HelpCommand, IndexGenerator, Kernel, ListLoader, args } from "@adonisjs/ace";
4
4
  import { join } from "node:path";
5
5
  //#region toolkit/commands/index_commands.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
3
  "description": "Core of AdonisJS",
4
- "version": "7.2.0",
4
+ "version": "7.3.1",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -82,7 +82,7 @@
82
82
  "index:commands": "node --import=@poppinss/ts-exec toolkit/main.js index build/commands"
83
83
  },
84
84
  "devDependencies": {
85
- "@adonisjs/assembler": "^8.3.0",
85
+ "@adonisjs/assembler": "^8.4.0",
86
86
  "@adonisjs/eslint-config": "^3.0.0",
87
87
  "@adonisjs/prettier-config": "^1.4.5",
88
88
  "@adonisjs/tsconfig": "^2.0.0",
@@ -93,12 +93,12 @@
93
93
  "@japa/snapshot": "^2.0.10",
94
94
  "@poppinss/ts-exec": "^1.4.4",
95
95
  "@release-it/conventional-changelog": "^10.0.6",
96
- "@types/node": "~25.5.0",
96
+ "@types/node": "~25.5.2",
97
97
  "@types/pretty-hrtime": "^1.0.3",
98
- "@types/sinon": "^21.0.0",
98
+ "@types/sinon": "^21.0.1",
99
99
  "@types/supertest": "^7.2.0",
100
100
  "@types/test-console": "^2.0.3",
101
- "@vinejs/vine": "^4.3.0",
101
+ "@vinejs/vine": "^4.3.1",
102
102
  "argon2": "^0.44.0",
103
103
  "bcrypt": "^6.0.0",
104
104
  "c8": "^11.0.0",
@@ -106,7 +106,7 @@
106
106
  "cross-env": "^10.1.0",
107
107
  "del-cli": "^7.0.0",
108
108
  "edge.js": "^6.5.0",
109
- "eslint": "^10.1.0",
109
+ "eslint": "^10.2.0",
110
110
  "execa": "^9.6.1",
111
111
  "get-port": "^7.2.0",
112
112
  "pino-pretty": "^13.1.3",
@@ -116,22 +116,22 @@
116
116
  "supertest": "^7.2.2",
117
117
  "test-console": "^2.0.0",
118
118
  "timekeeper": "^2.3.1",
119
- "tsdown": "^0.21.5",
119
+ "tsdown": "^0.21.7",
120
120
  "typedoc": "^0.28.18",
121
121
  "typescript": "^6.0.2",
122
- "youch": "^4.1.0"
122
+ "youch": "^4.1.1"
123
123
  },
124
124
  "dependencies": {
125
125
  "@adonisjs/ace": "^14.1.0",
126
126
  "@adonisjs/application": "^9.0.0",
127
- "@adonisjs/bodyparser": "^11.0.0",
127
+ "@adonisjs/bodyparser": "^11.0.1",
128
128
  "@adonisjs/config": "^6.1.0",
129
129
  "@adonisjs/env": "^7.0.0",
130
130
  "@adonisjs/events": "^10.2.0",
131
131
  "@adonisjs/fold": "^11.0.0",
132
132
  "@adonisjs/hash": "^10.1.0",
133
133
  "@adonisjs/health": "^3.1.0",
134
- "@adonisjs/http-server": "^8.1.1",
134
+ "@adonisjs/http-server": "^8.2.0",
135
135
  "@adonisjs/http-transformers": "^2.3.1",
136
136
  "@adonisjs/logger": "^7.1.1",
137
137
  "@adonisjs/repl": "^5.0.0",