7.0.0 • Published 7 years ago

tsconfig v7.0.0

Weekly downloads
1,290,522
License
MIT
Repository
github
Last release
7 years ago

TSConfig

NPM version NPM downloads Build status Test coverage

Resolve and parse tsconfig.json, replicating TypeScript's behaviour.

Usage

See the TypeScript docs for information on setting up tsconfig.json.

API

  • resolve(cwd: string, path?: string): Promise<string | void> Resolve tsconfig.json, like TypeScript, allowing a path to be specified and falling back to recursively resolving tsconfig.json upward when no path is specified.
  • resolveSync(cwd: string, path?: string): string | void Synchronous resolve.
  • find(cwd: string): Promise<string | void> Standalone behaviour of recursively resolving tsconfig.json upward.
  • findSync(cwd: string): string | void Synchronous find.
  • load(cwd: string, path?: string): Promise<{ path?: string, config: any }> Resolve, load and parse tsconfig.json.
  • loadSync(cwd: string, path?: string): { path?: string, config: any } Synchronous load.
  • readFile(filename: string): Promise Read a JSON file as tsconfig.json (strip BOM, parse JSON and support empty contents).
  • readFileSync(filename: string): any Synchronous readFile.
  • parse(contents: string, filename: string): any Parse file contents as tsconfig.json (strip BOM, parse JSON and support empty contents).

Contributing

Feel free to open issues for discussion.

# Install dependencies/typings.
npm install

# Run test suite.
npm test

License

MIT License

@procore/core-scripts@znd/ui@cultnet/slave-nodeylmapsvisualjs2ts-node-dev-experimental@losteth0/tsembedtypecomp@foreman/typescript@olivervorasai/slidermooverdxclits-aio@infinitebrahmanuniverse/nolb-tsc@cultnet/slave@devisor/manager@everything-registry/sub-chunk-2980@essential-projects/eslint-configgender-namelibrary-sblib-errorlionconfighl-ui-corehl-ui-featurehot-zone-vuekdu-jestjest-vuenexus-futurenexus-cli-tmpngm-climodule-name-mapperluis-entity-builderluis-response-buildermtc-jest-module-mappermjscjsmvb-budhttp-patch-buildernativescript-vue-jestndx-core@gender-name/brazil_100@gender-name/brazil_10k3.0.0ele-open-retail-store-builderdx-scanneresbuild-plugin-ts-magicfluent-waitgraphql-santaguruwayguruway.jshamza_atmfhir2gix-polar-backend-shared@bedrocksdk/clientnpm-smnpm-submodulesnode-tsconfig-pathsquickcord@xarc/module-dev@treenity/js-utils@weksik/manifest-generator@zapprotocol/bsc-contracts@zendo/ui@yarn-tool/find-tsconfig@tommoor/ts-node-devpumpkins@wspa/cli@yunflyjs/ts-node-devorganize-imports-cli@upradata/node-util@upradata/streampolar-backend-shared@vendure/ngx-translate-extract@vue/vue2-jest@vue/vue3-jest@thymikee/ts-jestreact-docgen-typescript-vite-plugin@aakashloyar/understandpackaliothx_zoereact-native-synchronysdk@anthonyalayo/ts-node-devappxgenatom-typescript-betaperspiciatisquos@vandres/ngx-translate-extract@yornswap/ui-walletsbyted-react-scriptscarrot-scriptssegmento-client@duncte123/ts-node-dev@gluestack-ui/provider@elliots/ts-node-dev@hansomware/tools@essex/build-step-typescript@essex/scripts@havenmoney/organize-imports-cli@everynote/plugin-paragraph@gabrielmar/country-flags@fly-email/render-vue@foxone/uikit@israelzadeh/npm-testtsconfig-cli
7.0.0

7 years ago

6.0.0

7 years ago

5.0.3

8 years ago

5.0.2

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.0.0

8 years ago

3.0.0

8 years ago

2.2.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.0

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago