-
Notifications
You must be signed in to change notification settings - Fork 74
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
tsify should use typescript
as a peerDependency
#85
Comments
* Fix TypeStrong/tsify#84 * Require typescript workaround for TypeStrong/tsify#85 * Ask browserify to transform the output file
Given the changes to peerDependencies in npm 3 should this be a devDependency instead? |
Whatever the solution is for this should probably be the solution for grunt-ts too bearing npm 3 in mind. I'm still annoyed they're doing this. |
I don't think using |
I'm not really convinced that this is the correct course of action. There's lots of arguments for both sides happening across a lot of different threads in various repos, but ultimately the way I'm reading the comments from the npm team, In this case, "I need this thing directly available to me" applies to the TS compiler, whereas "if you want to use me, you need this thing available to you" applies to Browserify. I'm open to further discussion, though. Note that you can pass in whatever compiler you like with the |
@smrq The issue is with Edit: The custom compiler being |
@blakeembrey Well, I guess that's true if you're using the CLI. With the API it would work as I stated: Lines 7 to 8 in f8105a6
As long as the caller passes |
You can leave it as it is, but I've added docs so that its clear that if they want to use their version they need to specify it : #87 🌹 Close this if you are okay with that 👍 |
Thanks for the docs update. I'll keep things as is for now but I'm keeping an eye on TypeStrong/discussions#1 and other discussion. I'm hoping that as npm 3 adoption settles down, a single dominant pattern gets established across the community. |
Just info that might already be common knowledge: There is no pattern for dev tools ... but for front-end libs |
Otherwise the user installed version isn't used
Code :
tsify/package.json
Line 31 in f8105a6
/cc @johnnyreilly
The text was updated successfully, but these errors were encountered: