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

Favor npx over global install of Sass migrator #1240

Open
rdela opened this issue Nov 2, 2024 · 1 comment
Open

Favor npx over global install of Sass migrator #1240

rdela opened this issue Nov 2, 2024 · 1 comment

Comments

@rdela
Copy link

rdela commented Nov 2, 2024

Seems like in Automatic Migration section of Breaking Change: @import and global built-in functions, it would make more sense to recommend npx:

npx sass-migrator module --migrate-deps your-entrypoint.scss

Over a global install of Sass migrator?

```shellsession
$ npm install -g sass-migrator
$ sass-migrator module --migrate-deps your-entrypoint.scss
```

Let’s make it as easy as possible for folx to get ahead of the deprecated @import breaking change. To me, this means favoring npx over globally installing Sass migrator to automatically update stylesheets to use the module system.

@nex3
Copy link
Contributor

nex3 commented Nov 4, 2024

Why is npx particularly easier? The migrator version has no particular need to differ from project to project, and it's a source-level tool so there's not a strong need to share it between multiple developers on a given package. Adding it to package.json only to remove it immediately seems like more of a pain to me.

@nex3 nex3 added the needs info label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants