-
Notifications
You must be signed in to change notification settings - Fork 148
Support scoped packages #155
Comments
I'd really like to publish typings for Is it possible to have a package URL such as this: If not, could we possibly bundle definitions under a common package, so the package could be |
I do not think npm supports nested scopes. one option is we can publish to |
@mhegazy Would that mean tossing every definition into the same NPM package and losing versioning as a result? I don't think there's a way to achieve everything without changes to NPM at this point. |
not sure i understand the question, can you elaborate? |
You suggested putting it under |
You're right, a single package for I don't have a better suggestion for now though... other than to prefix with something unlikely to be chosen for a package name. |
Well i was actually thinking of multiple packages.. something like |
Right, but now it'll be difficult for people to install and you can end up with conflicts because the current packages don't serialise in any way - unless they get made consistent with whatever approach you use. That's what I was looking at doing for Typings, but I figured it was reasonable for Typings since a separate tool was doing those mappings - in this case a human needs to do them and do them consistently. It might not be bad if there's an obvious way it'd work. |
Perhaps it's time to open up discussions with NPM? Maybe they have something in the pipeline that will enable support for nested scopes. |
@mhegazy @RyanCavanaugh Can we commit to using |
Fixes DefinitelyTyped#19974 The type definitions in `@types/jss` don't match the `jss` package on npm, which has nearly 400k monthly downloads. I'm not sure where to put the definitions currently squatting at `jss`, as it [doesn't appear that](https://www.npmjs.com/~dvtng) @dvtng has published them. @andy-ms recommended using `__` as a separator in microsoft/types-publisher#155. Thus, I'm using it for now to free up the `@types/jss` name for the actual `jss` package. If @dvtng publishes his library to npm, or if types-publisher gets formal scoped package support, the location of the squatting definitions can be revisited.
Fixes DefinitelyTyped#19974 The type definitions in `@types/jss` don't match the `jss` package on npm, which has nearly 400k monthly downloads. I'm not sure where to put the definitions currently squatting at `jss`, as it [doesn't appear that](https://www.npmjs.com/~dvtng) @dvtng has published them. @andy-ms recommended using `__` as a separator in microsoft/types-publisher#155. Thus, I'm using it for now to free up the `@types/jss` name for the actual `jss` package. If @dvtng publishes his library to npm, or if types-publisher gets formal scoped package support, the location of the squatting definitions can be revisited.
@andy-ms Can this be closed? |
@types
can not support scoped packages. this will require:The text was updated successfully, but these errors were encountered: