Open brandonkal opened 5 years ago
Hi @brandonkal I'd love to list this if there's a best practice way of doing this - since it's an ES module consuming an ES module it's not something that shows up under the 'dependencies' tab on npm's website either. What's the right way to go about listing this as a dependency?
Yes. I am not sure exactly what the correct approach here would be. From reading the spec, it looks like this would work: using the url as the package name and the github location as the version.
{"dependencies": {
"https://unpkg.com/jsincss/index.vanilla.js": "tomhodgins/jsincss"
}
}
Though that looks very odd! It seems package.json wasn't designed with external url dependencies in mind...
This really isn't a huge issue though as if you were looking to build an offline app, you probably would use your qaffeine library as a build step.
This package uses
https://unpkg.com/jsincss/index.vanilla.js
, but does not specify it as a dependency or a peer dependencyRef: https://bundlephobia.com/result?p=deqaf