Legacy builds are not included in NPM package.
See original GitHub issueNew legacy builds were added in #215 to support older versions of Node etc, but it appears that the legacy built files are missing in the published NPM package for v0.4.1: https://unpkg.com/browse/colorjs.io@0.4.1/dist/
I’m not sure what the build/release process is for colorjs.io, but when I npm pack
locally the files are included correctly – perhaps npm run build
wasn’t run before the new release? In case that’s the issue, I’ll open a PR to address that with a prepack
script.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
What does npm install --legacy-peer-deps do exactly? When ...
--legacy-peer-deps does not roll back any dependencies to any version. It simply just doesn't try to install peer dependencies automatically. – ...
Read more >package.json - npm Docs
Files included with the "package.json#files" field cannot be excluded through .npmignore or .gitignore . Certain files are always included, regardless of ...
Read more >[BUG] npm ci can't resolve dependencies without --force, or ...
An easy way to do this is to run, for example, npm config set legacy-peer-deps=true --location=project and commit the .npmrc file to your...
Read more >Best practices for publishing your npm package - mikbry
I mainly use Rollup bundler to build a legacy package with support for ESM ... Some files or directories should be excluded. ......
Read more >Building for production - Lit.dev
This configuration is suitable for serving to modern browsers that can run ES2019 JS without polyfills. Required node modules: npm i --save-dev rollup...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah, I didn’t know that. Even more reason to implement alpha blending and release it in 0.4.2!
This seems to be fixed for me in
v0.4.1-patch.1
.I’m not sure why it’s not working on unpkg, but maybe that’s an issue on their end?It’s available now on unpkg: https://unpkg.com/browse/colorjs.io@0.4.1-patch.1/dist/One downside of using
v0.4.1-patch.1
is that it’s not installed by either^0.4.1
or even^0.4.1-patch.1
, and can only be installed with0.4.1-patch.1
directly. But that’s probably best practice for a pre-1.0 dependency anyway, so 🤷