Gathering detailed insights and metrics for @visulima/tsconfig
Gathering detailed insights and metrics for @visulima/tsconfig
Gathering detailed insights and metrics for @visulima/tsconfig
Gathering detailed insights and metrics for @visulima/tsconfig
Visulima is the next-gen JavaScript framework for JAMStack blogs, sites & apps.
npm install @visulima/tsconfig
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@visulima/cerebro@1.1.46
Updated on Jun 04, 2025
@visulima/boxen@2.0.2
Updated on Jun 04, 2025
@visulima/pail@2.1.25
Updated on Jun 04, 2025
@visulima/api-platform@3.0.44
Updated on Jun 04, 2025
@visulima/jsdoc-open-api@2.0.81
Updated on Jun 04, 2025
@visulima/find-cache-dir@1.0.31
Updated on Jun 04, 2025
TypeScript (93.51%)
JavaScript (5.17%)
MDX (1.02%)
Handlebars (0.14%)
Shell (0.08%)
CSS (0.08%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
16 Stars
2,703 Commits
3 Forks
2 Watchers
17 Branches
2 Contributors
Updated on Jun 10, 2025
Latest Version
1.1.19
Package Id
@visulima/tsconfig@1.1.19
Unpacked Size
225.61 kB
Size
56.64 kB
File Count
15
NPM Version
10.9.2
Node Version
18.20.8
Published on
Jun 04, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Find and / or parse the tsconfig.json file from a directory path, this package is built on top of
@visulima/fs, @visulima/path, jsonc-parser and resolve-pkg-maps
[][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url]
Daniel Bannert's open source work is supported by the community on GitHub Sponsors
1npm install @visulima/tsconfig
1yarn add @visulima/tsconfig
1pnpm add @visulima/tsconfig
Retrieves the TsConfig by searching for the "tsconfig.json" file from a given current working directory.
1import { findTsConfig } from "@visulima/tsconfig"; 2 3const tsconfig = await findTsConfig(); // => { path: "/Users/../Projects/visulima/packages/tsconfig/tsconfig.json", config: { compilerOptions: { ... } } }
Writes the provided TypeScript configuration object to a tsconfig.json file.
1import { writeTsConfig } from '@visulima/package'; 2 3writeTsConfig({ compilerOptions: { ... } }/* ,{ cwd: "./" }*/);
Reads the TypeScript configuration from a tsconfig.json file.
1import { readTsConfig } from "@visulima/package"; 2 3const tsconfig = await readTsConfig("/Users/../Projects/visulima/packages/tsconfig.json" /* { tscCompatible: false } */);
tscCompatible: If true, the configuration will be parsed in a way that is compatible with the TypeScript compiler.
1type TsConfigJson = object;
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1
Type for TypeScript's tsconfig.json
file (TypeScript 3.7).
1optional compileOnSave: boolean;
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1264
Enable Compile-on-Save for this project.
1optional compilerOptions: CompilerOptions;
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1249
Instructs the TypeScript compiler how to compile .ts
files.
1optional exclude: string[];
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1281
Specifies a list of files to be excluded from compilation. The exclude
property only affects the files included via the include
property and not the files
property.
Glob patterns require TypeScript version 2.0 or later.
1optional extends: string | string[];
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1269
Path to base configuration file to inherit from.
1optional files: string[];
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1274
If no files
or include
property is present in a tsconfig.json
, the compiler defaults to including all files in the containing directory and subdirectories except those specified by exclude
. When a files
property is specified, only those files and those specified by include
are included.
1optional include: string[];
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1288
Specifies a list of glob patterns that match files to be included in compilation.
If no files
or include
property is present in a tsconfig.json
, the compiler defaults to including all files in the containing directory and subdirectories except those specified by exclude
.
1optional references: References[];
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1293
Referenced projects.
1optional typeAcquisition: TypeAcquisition;
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1259
Auto type (.d.ts) acquisition options for this project.
1optional watchOptions: WatchOptions;
Defined in: node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/tsconfig-json.d.ts:1254
Instructs the TypeScript compiler how to watch files.
1function findTsConfig(cwd?, options?): Promise<TsConfigResult>;
Defined in: packages/tsconfig/src/find-tsconfig.ts:30
An asynchronous function that retrieves the TSConfig by searching for the "tsconfig.json" first, second attempt is to look for the "jsconfig.json" file from a given current working directory.
Optional. The current working directory from which to search for the "tsconfig.json" file.
The type of cwd
is string
.
string
| URL
FindTsConfigOptions
= {}
Promise
<TsConfigResult
>
A Promise
that resolves to the TSConfig result object.
The return type of the function is Promise<TsConfigResult>
.
An Error
when the "tsconfig.json" file is not found.
1function findTsConfigSync(cwd?, options?): TsConfigResult;
Defined in: packages/tsconfig/src/find-tsconfig.ts:69
string
| URL
FindTsConfigOptions
= {}
1function readTsConfig(tsconfigPath, options?): object;
Defined in: packages/tsconfig/src/read-tsconfig.ts:460
string
1optional compileOnSave: boolean;
Enable Compile-on-Save for this project.
1optional compilerOptions: CompilerOptions;
Instructs the TypeScript compiler how to compile .ts
files.
1optional exclude: string[];
Specifies a list of files to be excluded from compilation. The exclude
property only affects the files included via the include
property and not the files
property.
Glob patterns require TypeScript version 2.0 or later.
1optional files: string[];
If no files
or include
property is present in a tsconfig.json
, the compiler defaults to including all files in the containing directory and subdirectories except those specified by exclude
. When a files
property is specified, only those files and those specified by include
are included.
1optional include: string[];
Specifies a list of glob patterns that match files to be included in compilation.
If no files
or include
property is present in a tsconfig.json
, the compiler defaults to including all files in the containing directory and subdirectories except those specified by exclude
.
1optional references: References[];
Referenced projects.
1optional typeAcquisition: TypeAcquisition;
Auto type (.d.ts) acquisition options for this project.
1optional watchOptions: WatchOptions;
Instructs the TypeScript compiler how to watch files.
1function writeTsConfig(tsConfig, options): Promise<void>;
Defined in: packages/tsconfig/src/write-tsconfig.ts:17
An asynchronous function that writes the provided TypeScript configuration object to a tsconfig.json file.
The TypeScript configuration object to write. The type of tsConfig
is TsConfigJson
.
WriteFileOptions
& object
& object
= {}
Optional. The write options and the current working directory. The type of options
is an
intersection type of WriteOptions
and a Record type with an optional cwd
key of type string
.
Promise
<void
>
A Promise
that resolves when the tsconfig.json file has been written.
The return type of function is Promise<void>
.
1function writeTsConfigSync(tsConfig, options): void;
Defined in: packages/tsconfig/src/write-tsconfig.ts:35
A function that writes the provided TypeScript configuration object to a tsconfig.json file.
The TypeScript configuration object to write. The type of tsConfig
is TsConfigJson
.
WriteFileOptions
& object
& object
= {}
Optional. The write options and the current working directory. The type of options
is an
intersection type of WriteOptions
and a Record type with an optional cwd
key of type string
.
void
A Promise
that resolves when the tsconfig.json file has been written.
The return type of function is Promise<void>
.
1const implicitBaseUrlSymbol: typeof implicitBaseUrlSymbol;
Defined in: packages/tsconfig/src/read-tsconfig.ts:457
1type FindTsConfigOptions = ReadTsConfigOptions & object;
Defined in: packages/tsconfig/src/find-tsconfig.ts:10
1optional cache: 2 | Map<string, TsConfigJsonResolved> 3 | boolean;
1optional configFileName: string;
1type ReadTsConfigOptions = object;
Defined in: packages/tsconfig/src/read-tsconfig.ts:444
1optional tscCompatible: "5.3" | "5.4" | "5.5" | "5.6" | true;
Defined in: packages/tsconfig/src/read-tsconfig.ts:452
Make the configuration compatible with the specified TypeScript version.
When true
, it will make the configuration compatible with the latest TypeScript version.
1undefined
1type TsConfigJsonResolved = Except<TsConfigJson, "extends">;
Defined in: packages/tsconfig/src/types.ts:3
1type TsConfigResult = object;
Defined in: packages/tsconfig/src/find-tsconfig.ts:15
1config: TsConfigJsonResolved;
Defined in: packages/tsconfig/src/find-tsconfig.ts:16
1path: string;
Defined in: packages/tsconfig/src/find-tsconfig.ts:17
Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.
If you would like to help take a look at the list of issues and check our Contributing guidelines.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
The visulima tsconfig is open-sourced software licensed under the [MIT][license-url]
[typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript" [license-image]: https://img.shields.io/npm/l/@visulima/tsconfig?color=blueviolet&style=for-the-badge [license-url]: LICENSE.md "license" [npm-image]: https://img.shields.io/npm/v/@visulima/tsconfig/latest.svg?style=for-the-badge&logo=npm [npm-url]: https://www.npmjs.com/package/@visulima/tsconfig/v/latest "npm"
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
project has 4 contributing companies or organizations
Details
Reason
no dangerous workflow patterns detected
Reason
update tool detected
Details
Reason
license file detected
Details
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
SAST tool detected: CodeQL
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Score
Last Scanned on 2025-07-15T07:35:33Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More