1.0.9 • Published 7 months ago
@apldx/tsc-watch-prettier v1.0.9
tsc-watch-prettier
Resources
https://blog.logrocket.com/publishing-node-modules-typescript-es-modules/
https://swc.rs/docs/usage/jest
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#bin
Setup
pnpm init -y pnpm i -D typescript tsc-watch pnpm i -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser pnpm i -D prettier eslint-plugin-prettier eslint-config-prettier
ts-node and @jest/types are required for the typescript jest.config.ts
pnpm i -D ts-node jest ts-jest @types/jest @jest/types
Install
pnpm i
Usage
Run ts-watch, executing dist/bin/runfoo.js on successful build
pnpm start
Run tsc
pnpm build
Remove node_modules/ and dist/
pnpm clean
Run git clean, removing empty directories and ignored files
pnpm gitclean
Run jest test
pnpm test
Deploy to npm
pnpm deploy