bob-tsm
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

bob-tsm

npm

Package inspired on https://github.com/lukeed/tsm with extra features and support for watch mode and with extra fixes to follow the new TypeScript 4.5 extensions .mts=>ESM and .cts=>CommonJS.

Install

pnpm add -D bob-tsm esbuild
yarn add -D bob-tsm esbuild
npm install -D bob-tsm esbuild

Usage

All the arguments that are not part of bob-tsm are passed directly to the node executable.

Usage: bob-tsm [options] [node arguments...]

Options:
  -V, --version                     output the version number
  --tsmconfig <config>              Configuration file path (default: "tsm.js")
  --watch <patterns...>             Enable & specify watch mode
  --ignore <patterns...>            Ignore watch patterns
  --node-env,--node_env <NODE_ENV>  Automatically add the specified option as NODE_ENV environment variable, "prod" is an alias
                                    for "production" and "dev" is an alias for "development" (choices: "production", "prod",
                                    "development", "dev", "test")
  -q, --quiet
  --cjs                             Use CommonJS instead of ESM for ".ts" files. You still can use ".mts" to force ESM in
                                    specific typescript files.
  --paths                           Use tsconfig paths resolver. It only works as a fallback of the default path resolving and
                                    you can use the environment variable TS_NODE_PROJECT to customize the tsconfig.json to use.
  -h, --help                        display help for command

Readme

Keywords

none

Package Sidebar

Install

npm i bob-tsm

Weekly Downloads

1,724

Version

1.1.2

License

MIT

Unpacked Size

141 kB

Total Files

24

Last publish

Collaborators

  • pablosz