@lensung/tsconfig

    0.1.1 • Public • Published

    tsconfig

    NPM Version npm (tag)

    Clone from tsconfig.

    Reusable TypeScript configuration files to extend from.

    This module enables other module to inheritance tsconfig.json via Node.js packages

    USAGE

    Extends from @lensung/tsconfig from your tsconfig.json, to have the lensung version of the TypeScript Configuration.

    CAUTION

    Do not put any directory related configurations into this module. Only put directory related configurations to the consumer of this module.

    Because all directory in tsconfig.json is related to the curfrent directory.

    SEE ALSO

    TypeScript 3.2 now resolves tsconfig.jsons from node_modules. When using a bare path for the "extends" field in tsconfig.json, TypeScript will dive into node_modules packages for us.

    {
        "extends": "@my-team/tsconfig-base",
        "include": ["./**/*"]
        "compilerOptions": {
            // Override certain options on a project-by-project basis.
            "strictBindCallApply": false,
        }
    }

    Here, TypeScript will climb up node_modules folders looking for a @my-team/tsconfig-base package. For each of those packages, TypeScript will first check whether package.json contains a "tsconfig" field, and if it does, TypeScript will try to load a configuration file from that field. If neither exists, TypeScript will try to read from a tsconfig.json at the root. This is similar to the lookup process for .js files in packages that Node uses, and the .d.ts lookup process that TypeScript already uses.

    This feature can be extremely useful for bigger organizations, or projects with lots of distributed dependencies.

    DEPENDENCES

    This module will run a unit test before it could be able to publish to NPM.

    The unit test load tsconfig schema from JSON Schema Store and then use is-my-json-valid to validate it.

    Tip: Click on a version number to view a previous version's package page

    Current Tags

    • Version
      Downloads (Last 7 Days)
      • Tag
    • 0.1.1
      3
      • latest

    Version History

    • Version
      Downloads (Last 7 Days)
      • Published
    • 0.1.1
      3
    • 0.1.0
      0
    • 0.0.1
      1

    Install

    npm i @lensung/tsconfig

    DownloadsWeekly Downloads

    4

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    8.65 kB

    Total Files

    5

    Last publish

    Collaborators

    • yuebanla