Skip to content

CLI utils to be installed globally via 'npm i -g'

Notifications You must be signed in to change notification settings

NaturalCycles/cli

Repository files navigation

@naturalcycles/cli

CLI utils to be installed globally via 'npm i -g'

npm install size code style: prettier

Install

npm i -g @naturalcycles/cli

CLI commands (globally available)

  • tsn: short alias for ts-node with additional parameters -T -r tsconfig-paths/register -r dotenv/config. Will use ./scripts/tsconfig.json (file will be auto-generated in not present).

Set TSN_ESBUILD env variable to enable experimental esbuild transpilation, using esbuild and esbuild-register instead of typescript and ts-node.

Packaging

  • engines.node: Latest Node.js LTS
  • main: dist/index.js: commonjs, es2020