1.3.3 • Published 5 years ago
@solid-soda/tsn v1.3.3
tsn
No-effort way to compile TypeScript with absolute import replacing.
Usage
yarn add -D @solid-soda/tsn
yarn tsnYou are fabulous!
Motivation
Imagine! You want to write TypeScript code, make really great things and use absolute imports. But, Node.js doesn't know about your absolute imports. Just use this task 🌚
Usage
Local
You can install it locally:
yarn add -D @solid-soda/tsn
yarn tsnor, if you prefer npm:
npm i --save-dev @solid-soda/tsn
npm run tsnNo-install
And you can use it by dlx/npx:
yarn dlx @solid-soda/tsnor, if you prefer npm/yarn@classic
npx @solid-soda/tsnCustom config
If you want to pass custom tsconfig.json to script, you can easily do it with arguments:
yarn tsn tsconfig.custom.jsonRuntime usage
If you using ts-node and want check code with absolute imports without compilation, you can use runtime-helper.
ts-node --project tsconfig.json -r @solid-soda/tsn YOUR_CODE.ts