routesync 1.0.40 → 1.0.41

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 (2) hide show
  1. package/dist/cli.js +1 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -9582,7 +9582,6 @@ var watchCommand = new Command("watch").description("Watch routes file and re-sy
9582
9582
  var import_child_process2 = require("child_process");
9583
9583
  var import_fs_extra16 = __toESM(require_lib());
9584
9584
  var import_path12 = __toESM(require("path"));
9585
- var import_os = __toESM(require("os"));
9586
9585
  var annotateCommand = new Command("annotate").description("Auto-inject #[Response] PHP 8 attributes into controller methods based on Resource discovery").option("--input <file>", "Path to routes/api.php", "routes/api.php").option("--dry-run", "Preview changes without writing files").option("--force", "Re-annotate methods that already have #[Response]").action(async (options) => {
9587
9586
  const filePath = import_path12.default.resolve(options.input);
9588
9587
  if (!import_fs_extra16.default.existsSync(filePath)) {
@@ -9717,7 +9716,7 @@ foreach ($routes as $route) {
9717
9716
 
9718
9717
  echo json_encode($result);
9719
9718
  `;
9720
- const tmpFile = import_path12.default.join(import_os.default.tmpdir(), `routesync-annotate-${Date.now()}.php`);
9719
+ const tmpFile = import_path12.default.join(projectRoot, `routesync-annotate-${Date.now()}.php`);
9721
9720
  import_fs_extra16.default.writeFileSync(tmpFile, phpScript);
9722
9721
  let annotations;
9723
9722
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "routesync",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Laravel routes to typed frontend SDKs.",
5
5
  "main": "./dist/sdk.js",
6
6
  "module": "./dist/sdk.mjs",