When trying to adapt your example for Remix + Vite, I needed to change the server root from ./src/routes/server to ./src/routes/.server to match better with Vite conventions.
But when setting the --file option like this "build:remix": "rimraf build; nestjs-remix -f \"./src/routes/.server\"; remix vite:build",, I get TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean (true).
I checked the code, and option.file actually only return true if set instead of the actual string.
I think you just have to replace "-f --file" with "-f --file <path>" in cli config but I can't test rn.
I have realized that generating import code through cli is a wrong decision. Now I have removed this cli and released version 0.4.4. I hope you like it.
When trying to adapt your example for Remix + Vite, I needed to change the server root from ./src/routes/server to ./src/routes/.server to match better with Vite conventions. But when setting the --file option like this
"build:remix": "rimraf build; nestjs-remix -f \"./src/routes/.server\"; remix vite:build",
, I getTypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean (true)
. I checked the code, and option.file actually only return true if set instead of the actual string. I think you just have to replace"-f --file"
with"-f --file <path>"
in cli config but I can't test rn.