0.0.17 • Published 3 years ago

@herbcaudill/tscpaths v0.0.17

Weekly downloads
83
License
MIT
Repository
github
Last release
3 years ago

This is a fork of joonhocho/tscpaths that adds the --silent option.

tscpaths

Replace absolute paths to relative paths after typescript compilation (tsc) during compile-time.

npm version Dependency Status License

Comparison to tsconfig-paths

+ Compile time (no runtime dependencies)

Getting Started

First, install tscpaths as devDependency using npm or yarn.

npm install --save-dev @herbcaudill/tscpaths
# or
yarn add -D @herbcaudill/tscpaths

Add it to your postbuild script in package.json

"scripts": {
  "build": "tsc --project tsconfig.json",
  "postbuild": "tscpaths -p tsconfig.json -s ./src -o ./out --silent",
}

Options

flagdescription
-p --projectproject configuration file (tsconfig.json)
-s --srcsource code root directory
-o --outoutput directory of transpiled code (tsc --outDir)
--silentsilence the console output

You need to provide -s (--src) and -o (--out), because it's hard to predict source and output paths based on tsconfig.json.

0.0.17

3 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago