With @nx/remix if you run nx generate and specify the --directory argument for the app, the app itself will get generated where you specify but its companion e2e app will be generated in the root of the apps folder.
I previously experienced this issue with other generators however those issues may now be fixed (I gave a quick check with the react generator using --dry-run). This is a new issue with @nx/remix.
Example reproduction:
You can also add --dry-run and the list of files will also show the wrong path.
I expect the generator to respect the --directory flag and put both the app and its e2e companion app where I specify.
GitHub Repo
No response
Steps to Reproduce
The following steps assume your Nx workspace is configured to use apps/ as your apps directory per the workspaceLayout configuration option in nx.json.
Generate a new app with the --directory flag and set it to a sub-directory of your workspace's apps/ folder, e.g. --directory example
Watch the app get generated at apps/example and the e2e get generated under apps even you'd think the generator would respect the --directory flag
Previous misbehavior of other generators may have been fixed in the latest version of Nx however it still impacts the remix generator.
Current Behavior
With
@nx/remix
if you runnx generate
and specify the--directory
argument for the app, the app itself will get generated where you specify but its companion e2e app will be generated in the root of the apps folder.I previously experienced this issue with other generators however those issues may now be fixed (I gave a quick check with the react generator using
--dry-run
). This is a new issue with@nx/remix
.Example reproduction:
You can also add
--dry-run
and the list of files will also show the wrong path.Expected Behavior
I expect the generator to respect the
--directory
flag and put both the app and its e2e companion app where I specify.GitHub Repo
No response
Steps to Reproduce
The following steps assume your Nx workspace is configured to use
apps/
as your apps directory per theworkspaceLayout
configuration option innx.json
.--directory
flag and set it to a sub-directory of your workspace'sapps/
folder, e.g.--directory example
apps/example
and the e2e get generated underapps
even you'd think the generator would respect the--directory
flagPrevious misbehavior of other generators may have been fixed in the latest version of Nx however it still impacts the remix generator.
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response