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

@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-nametabui-generatorsvue-jestvue-jest-babel7vue-jest-knrealtimateremix-webpack-clirollup-plugin-dts-path-aliastemplate-initializersegmento-clientvite-plugin-lib-typesvisual-tsvelad@bedrocksdk/client@atlantjs.dev/guardian@gender-name/brazil_100@gender-name/brazil_10k3.0.0mjscjsmodule-name-mapperlib-errorlibrary-sbhamza_atmgix-polar-backend-sharedgraphql-santajest-vueisteitaquelionconfigmtc-jest-module-mapperhl-ui-corehl-ui-featurehot-zone-vuehttp-patch-builderguruwayguruway.jskdu-jestnativescript-vue-jestndx-coreluis-entity-builderluis-response-builderorganize-imports-clipolar-backend-sharedngm-clinexus-futurenexus-cli-tmppumpkinsperspiciatisquosmvb-budreact-docgen-typescript-vite-pluginnode-tsconfig-pathsnpm-smnpm-submodulesreact-native-synchronysdkquickcordstart-typescriptsuntdoloressippi-vue2-jestuclab-eslint-config-customts-jest-no-babeltyscanuilib_v1ulong-ts-nodeui_lib_storybookturbo-genietypescript-docs-verifiertypescript-nodetypescript-simple-loadertldrawligninusentry-cliturborepo-changesets-test-v1-ui@anthonyalayo/ts-node-dev@azimutlabs/rollup-config-typescript@barusu/tool-tsconfig-paths@cdlab996/vite-plugin-lib-types2.7@aakashloyar/understandpack@code-dependency/cli@brad-jones/tsosyesbuild-typescriptvue-tsifyvue-size-trackervue3-jesttsc-wildcard-resolvetsc-resolvetsify
7.0.0

7 years ago

6.0.0

8 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

9 years ago

2.2.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago