tsconfig

WebJar for tsconfig

License

License

MIT
Categories

Categories

config Application Layer Libs Configuration
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

tsconfig
Last Version

Last Version

7.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

tsconfig
WebJar for tsconfig
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/TypeStrong/tsconfig

Download tsconfig

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/tsconfig/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>tsconfig</artifactId>
    <version>7.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/tsconfig/
implementation 'org.webjars.npm:tsconfig:7.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/tsconfig/
implementation ("org.webjars.npm:tsconfig:7.0.0")
'org.webjars.npm:tsconfig:jar:7.0.0'
<dependency org="org.webjars.npm" name="tsconfig" rev="7.0.0">
  <artifact name="tsconfig" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='tsconfig', version='7.0.0')
)
libraryDependencies += "org.webjars.npm" % "tsconfig" % "7.0.0"
[org.webjars.npm/tsconfig "7.0.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : types__strip-bom jar [3.0.0,4)
org.webjars.npm : types__strip-json-comments jar [0.0.30]
org.webjars.npm : strip-bom jar [3.0.0,4)
org.webjars.npm : strip-json-comments jar [2.0.0,3)

Project Modules

There are no modules declared in this project.

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

org.webjars.npm

TypeStrong

TypeScript workflows

Versions

Version
7.0.0