cra-template-tsup

0.1.14 • Public • Published

cra-template-tsup

Quickly publish Create React App with TypeScript to NPM.

yarn start

Start in development mode at http://localhost:3000.

yarn build

Build for production to /build.

yarn pack

Package src/App.tsx for publishing to /dist.

Publishing

  1. Package for publishing with yarn pack.

  2. In package.json:

    1. Remove "private": true to allow public access.
    2. Move "react-scripts" to "devDependencies".
    3. Move "react" and "react-dom" to "peerDependencies".
    4. Add "files": ["dist"] to avoid ignoring.
    5. Add "main": "dist/App.js" as the entry point.
    6. Add "types": "dist/App.d.ts" as the type definitions.
  3. Release with npm publish.

Readme

Keywords

none

Package Sidebar

Install

npm i cra-template-tsup

Weekly Downloads

0

Version

0.1.14

License

Unlicense

Unpacked Size

26.5 kB

Total Files

17

Last publish

Collaborators

  • davidystephenson