-
Notifications
You must be signed in to change notification settings - Fork 64
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
fix: fixes cli not finding codemods, but actually #498
Conversation
3d01d6f
to
fe0d112
Compare
@Madou: Thanks for cleaning up the tests 😄. Just see if we can fix "local run of CLI (it doesn't find codemods anymore)". Looks good otherwise. |
ae52cd7
to
32de4cd
Compare
@pgmanutd fixed (the error is just me stopping the process) |
So we have replaced |
🤔 i think it might handle it. i'll run a nightly and test this before merging |
No worries. Lets test this once before shipping. |
doesn't work 😭 ➜ test-compiled npx @compiled/cli@0.5.4-7e02b8a404f6056123a7cdc6fb17314e6deb8c0b.0
npx: installed 285 in 10.916s
👷 Compiled cli 👷
✔ Select which preset would you like to run? 🤔 · codemods
No codemods available right now.
➜ test-compiled npx @compiled/cli@0.5.4-7e02b8a404f6056123a7cdc6fb17314e6deb8c0b.0 --version
npx: installed 285 in 6.874s
0.5.4-7e02b8a404f6056123a7cdc6fb17314e6deb8c0b.0
➜ test-compiled |
Yeah it looked like it wont work after I read https://www.npmjs.com/package/app-root-path#edge-case-global-clis |
We can use dev vs prod or something. |
latest works!
|
*/ | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
const isLocalRun = typeof process[Symbol.for('ts-node.register.instance')] === 'object'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hehe 😛. Its the same one. It works 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah used ur hacks hehehe
TODO