Skip to content

Template repo for creating CommonJS and ESM npm packages

License

Notifications You must be signed in to change notification settings

blb-ventures/npm-lib-template

Repository files navigation

NPM Library Template

This repo is a template for creating CommonJS and ESM packages using Typescript to release on NPM.

  • It uses tsc to transpile to CommonJS and rollup to build the ESM packages.
  • Has a default MIT license
  • Eslint rules from @blb-ventures/eslint-config
  • Prettier and EditorConfig
  • Github Actions with:
    • Release: using release-please that automates CHANGELOG generation
    • Testing: as a default it just run eslint

Before Publish Checklist

  • Update the license
  • Update rollup.config.js external packages
  • Update src/external.ts to include all the lib files
  • Update src/index.ts line 4 to export a named module (optional)
  • Update package.json
    • Package name
    • Package version
    • Homepage
    • Repository
    • Bugs url
    • Author
    • License
    • Contributors

About

Template repo for creating CommonJS and ESM npm packages

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published