Narcissistic Pickle Meister
    Wondering what’s next for npm?Check out our public roadmap! »

    @herbcaudill/tscpaths
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.17 • Public • Published

    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

    flag description
    -p --project project configuration file (tsconfig.json)
    -s --src source code root directory
    -o --out output directory of transpiled code (tsc --outDir)
    --silent silence 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.

    Install

    npm i @herbcaudill/tscpaths

    DownloadsWeekly Downloads

    21

    Version

    0.0.17

    License

    MIT

    Unpacked Size

    43.8 kB

    Total Files

    31

    Last publish

    Collaborators

    • avatar