Tag: javascript
How to create a React components ESM+CJS library Learn how to create a React component ESM+CJS library using Rollup, TypeScript and Storybook Beyond semantic versioning: updatePolicy Some random thoughts on how to make NPM package updates a bit safer A better way to use Dotenv Learn better usage patterns for the Dotenv library to simplify your code Credentials Leak with Knex Knex 2.4.2 and below are vulnerable to a credentials leak. Learn how to mitigate the problem. Barrel Exports considered harmful My (probably controversial) take on why the barrel exports pattern can be harmful. Generating CJS & ESM packages from TypeScript Although it's easy to generate CJS or ESM code from TS, generating both at the same time is a more complicated endeavour.