Typescript template for creating and publishing with rollup, typescript, jest, eslint, prettier, and husky
npx create-ts-package-template package-nameTo add React linting and compatibility for publishing things like components, you can specify the
--react flag during creation:
npx create-ts-package-template package-name --reactYou can then cd into the package-name directory and build, test or publish
yarn buildOr, to minify and remove source maps:
yarn build-productionyarn testNote: If publishing for a web app, you may need the jsdom testEnvironment in the jest.config.js
See https://jestjs.io/docs/configuration#testenvironment-string
yarn publishThis should build the package with rollup, use the specified version, and publish the results.