@repobuddy/typescript
v2.1.0
Published
Your TypeScript buddy
Downloads
461
Readme
@repobuddy/typescript
@repobuddy/typescript provides tools and utilities to take care of TypeScript stuffs so you don't have to.
Install
# npm
npm install -D @repobuddy/typescript
# yarn
yarn add -D @repobuddy/typescript
# pnpm
pnpm install -D @repobuddy/typescript
#rush
rush add -p --dev @repobuddy/typescript
tsconfigs
@repobuddy/typescript provides a set of [tsconfigs] that you can use in your project.
@repobuddy/typescript/tsconfig/monorepo
: for monorepo projects.@repobuddy/typescript/tsconfig/legacy/monorepo
: for monorepo projects using TypeScript < 5.0
includingastro
project which usestsconfig-resolver
(https://github.com/withastro/astro/issues/6918).
There are individual configs available for you to compose your own config. For more information, see tsconfig.
Notes
The verbatimModuleSyntax
setting should be enabled for Node16
.
But it is disabled currently due to some issue with ts-jest
:
error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
It seems like somehow it is treated as CommonJS while it is not (setting useESM
to true
).
buddy CLI
- 🐤
buddy ts build cjs
(in beta) - 🐤
buddy ts build tslib
(in beta) - 🚧
buddy ts init
- 🚧
buddy ts up