Skip to content
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

Option to specify the path for the sly.json file #72

Open
ndozhh opened this issue Dec 12, 2024 · 0 comments
Open

Option to specify the path for the sly.json file #72

ndozhh opened this issue Dec 12, 2024 · 0 comments

Comments

@ndozhh
Copy link

ndozhh commented Dec 12, 2024

Hi Jacob, thank you for your work in this package, it works great.

I was trying to setup it in a monorepo inside packages/icons, using Turborepo. The problem is that the dependency is always installed in the root node_modules and not in packages/icons/node_modules, so when I try to use a transformer I got this error:

Failed to load transformer transform-icon.ts.
Sly must be installed to your node_modules to use typescript transformers.
npm install --save-dev @sly-cli/sly

I can use the option --cwd to tell it where to pick up the dependency but now the sly.json and the transform-icon.ts files should be placed at the root of the monorepo, but I want them to be inside my packages/icons package.

Based on this context, I think it would be very useful if we can specify an option with the path for the sly.json file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant