-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codemod(v2.3): Adds codemod to modify web/tsconfig.json to allow $api imports #6098
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 4d3bb17. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
✅ Deploy Preview for redwoodjs-docs canceled.
|
Thanks @Tobbe - just going to double check that it doesn't fail after the canary publish. I realised I'm using typescript without having it as a dependency in the codemods package - but maybe it'll use the locally installed version inside the project's folder |
Yup - was worried this might happen...
Will create a followup PR to make sure ts is a dependency. |
Adds codemod for #5600
The codemod is required not because its a breaking change, but because you need it to "opt in" to new features. See description below.
Command for reference:
Modify TS Config For Route Hooks
Updates the
web/tsconfig.json
file to include a path alias for$api
.This allows you to import for example
Just like in scripts, in your *.routeHooks.ts files. This feature was enabled as part of Cell prerendering and dynamic path prerendering.