@repobuddy/typescript

2.1.0 • Public • Published

@repobuddy/typescript

NPM version NPM downloads

@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
    including astro project which uses tsconfig-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

Package Sidebar

Install

npm i @repobuddy/typescript

Weekly Downloads

160

Version

2.1.0

License

MIT

Unpacked Size

20.1 kB

Total Files

48

Last publish

Collaborators

  • unional