@effected/tsconfig-json 0.3.3 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PortableTsconfig.js +19 -1
- package/README.md +6 -1
- package/index.d.ts +277 -242
- package/package.json +3 -3
package/PortableTsconfig.js
CHANGED
|
@@ -86,6 +86,7 @@ const PRESERVED_OPTIONS = [
|
|
|
86
86
|
...PRESERVED_ENUM_OPTIONS,
|
|
87
87
|
...PRESERVED_STRING_OPTIONS
|
|
88
88
|
];
|
|
89
|
+
const OPT_IN_TYPES_OPTION = "types";
|
|
89
90
|
/**
|
|
90
91
|
* A `ResolvedTsconfig` carries a string `configPath`, an array `extendedPaths`
|
|
91
92
|
* AND an object `compilerOptions`; a bare `CompilerOptions.Type` never carries
|
|
@@ -101,13 +102,17 @@ const PRESERVED_OPTIONS = [
|
|
|
101
102
|
* is filtered, which is the safe outcome.)
|
|
102
103
|
*/
|
|
103
104
|
const isResolvedTsconfig = (input) => typeof input.configPath === "string" && Array.isArray(input.extendedPaths) && typeof input.compilerOptions === "object" && input.compilerOptions !== null;
|
|
104
|
-
const make = (input) => {
|
|
105
|
+
const make = (input, options) => {
|
|
105
106
|
const source = isResolvedTsconfig(input) ? input.compilerOptions : input;
|
|
106
107
|
const compilerOptions = {};
|
|
107
108
|
for (const key of PRESERVED_OPTIONS) {
|
|
108
109
|
const value = source[key];
|
|
109
110
|
if (value !== void 0) compilerOptions[key] = value;
|
|
110
111
|
}
|
|
112
|
+
if (options?.includeTypes === true) {
|
|
113
|
+
const types = source[OPT_IN_TYPES_OPTION];
|
|
114
|
+
if (types !== void 0) compilerOptions[OPT_IN_TYPES_OPTION] = types;
|
|
115
|
+
}
|
|
111
116
|
compilerOptions.composite = false;
|
|
112
117
|
compilerOptions.noEmit = true;
|
|
113
118
|
return {
|
|
@@ -134,6 +139,19 @@ var PortableTsconfig = class {
|
|
|
134
139
|
* is dropped; this is an allow-list, not a deny-list, so an option this
|
|
135
140
|
* package does not yet classify never leaks onto the portable shape by
|
|
136
141
|
* accident.
|
|
142
|
+
*
|
|
143
|
+
* `types` is the one deliberate exception, and it is opt-in rather than
|
|
144
|
+
* unclassified: it is portable (package names, not paths) but carrying it
|
|
145
|
+
* makes TypeScript demand those packages be resolvable, which a virtual
|
|
146
|
+
* environment with no `node_modules` cannot satisfy. Pass
|
|
147
|
+
* {@link PortableTsconfigOptions.includeTypes} when the consumer
|
|
148
|
+
* materializes `@types`; leave it off for the permissive default. Related
|
|
149
|
+
* `typeRoots` is never carried — machine-specific,
|
|
150
|
+
* config-location-dependent directories.
|
|
151
|
+
*
|
|
152
|
+
* @param input - The resolved config, or a bare compiler-options bag.
|
|
153
|
+
* @param options - Opt-ins for options that are portable but
|
|
154
|
+
* resolution-dependent. Omitted means the strict, always-safe subset.
|
|
137
155
|
*/
|
|
138
156
|
static make = make;
|
|
139
157
|
};
|
package/README.md
CHANGED
|
@@ -82,8 +82,13 @@ console.log(TsEnumCodec.encodeCompilerOptions({ target: "es2023", strict: true,
|
|
|
82
82
|
|
|
83
83
|
console.log(PortableTsconfig.make(resolved).compilerOptions.noEmit);
|
|
84
84
|
// true — always forced, whatever the source config declared
|
|
85
|
+
|
|
86
|
+
console.log(PortableTsconfig.make(resolved, { includeTypes: true }).compilerOptions.types);
|
|
87
|
+
// carries the source config's `types` package names when it declares them, omitted when absent
|
|
85
88
|
```
|
|
86
89
|
|
|
90
|
+
`includeTypes` is opt-in and defaults to `false` because emitting `types` makes tsc demand those `@types` packages resolve — a hard error in a virtual environment with no `node_modules`. Pass it when your environment materializes `@types` itself; leave it off for the permissive default where TypeScript auto-includes whatever it finds.
|
|
91
|
+
|
|
87
92
|
## Synchronous loading
|
|
88
93
|
|
|
89
94
|
Bundler plugin hooks and config factories often cannot await. `TsconfigLoaderSync` runs the unchanged loader pipeline synchronously over file and path operations you supply — the package still imports no `node:*` module, and Node's built-ins satisfy the operations directly:
|
|
@@ -154,7 +159,7 @@ console.log(fsMap.size);
|
|
|
154
159
|
- `ResolvedTsconfig` — the pure merge engine behind `resolve`: per-field merge semantics, path-option absolutization against the declaring config's directory, final `${configDir}` substitution and `pathsBase` provenance, with no filesystem access at all.
|
|
155
160
|
- `TsconfigDiscovery.findNearest` — the nearest `tsconfig.json` (or any filename via `options.filename`) at or above a starting directory, over `@effected/walker`; one unreadable ancestor cannot hide a config above it.
|
|
156
161
|
- `TsEnumCodec` — the string↔numeric enum tables as plain data with zero `typescript` imports. `encodeCompilerOptions` returns the exported `ProgrammaticCompilerOptions` type — the numeric shape `ts.CompilerOptions` expects, so you hand it to a `ts.CompilerOptions`-shaped API without a cast — with `lib` entries in the file-name form the compiler resolves verbatim; `decodeCompilerOptions` reverses it.
|
|
157
|
-
- `PortableTsconfig.make` — an allow-list projection down to machine-independent type-semantics options, with `composite: false` and `noEmit: true` forced: the slice a virtual TypeScript environment (Twoslash, API Extractor, an in-memory language service) can safely inherit.
|
|
162
|
+
- `PortableTsconfig.make` — an allow-list projection down to machine-independent type-semantics options, with `composite: false` and `noEmit: true` forced: the slice a virtual TypeScript environment (Twoslash, API Extractor, an in-memory language service) can safely inherit. An optional `{ includeTypes }` argument carries the source config's `types` package names onto the portable shape too, for a caller whose virtual environment can resolve `@types` packages itself; `typeRoots` stays dropped either way, since it names machine-specific, config-location-dependent directories.
|
|
158
163
|
- `JsxConfig.fromCompilerOptions` — the JSX transform a bundler can configure, projected from decoded options: `react-jsx` / `react-jsxdev` select the automatic runtime with its import source (defaulting to `react`, tsc's own default), `react` selects classic, and `preserve`, `react-native` or an absent `jsx` yield `Option.none()`.
|
|
159
164
|
- Typed failures everywhere: a malformed file is a `TsconfigParseError` carrying its path, a broken chain is a `TsconfigExtendsError` with a `not-found` / `cycle` / `depth` / `empty` reason and the full resolution chain, and IO errors flow through as `PlatformError`. Nothing fails as a defect.
|
|
160
165
|
|
package/index.d.ts
CHANGED
|
@@ -603,6 +603,28 @@ interface PortableTsconfig {
|
|
|
603
603
|
/** The allow-listed, forced-flag-applied compiler options. */
|
|
604
604
|
readonly compilerOptions: Record<string, unknown>;
|
|
605
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* Options for {@link (PortableTsconfig:class).make}.
|
|
608
|
+
*
|
|
609
|
+
* @public
|
|
610
|
+
*/
|
|
611
|
+
interface PortableTsconfigOptions {
|
|
612
|
+
/**
|
|
613
|
+
* Carry `types` (an array of `@types` package NAMES) onto the portable
|
|
614
|
+
* shape when the source declares it. Defaults to `false`.
|
|
615
|
+
*
|
|
616
|
+
* Opt in when the consuming environment can resolve those packages — it
|
|
617
|
+
* materializes `@types` into its virtual filesystem, or type-checks against
|
|
618
|
+
* a real `node_modules`. Leaving it off keeps the permissive default, where
|
|
619
|
+
* TypeScript auto-includes whatever `@types` the environment happens to
|
|
620
|
+
* have and never errors on a missing one.
|
|
621
|
+
*
|
|
622
|
+
* `typeRoots` is NOT carried under this flag: it names filesystem
|
|
623
|
+
* directories, which are machine-specific and config-location-dependent,
|
|
624
|
+
* so they are never portable.
|
|
625
|
+
*/
|
|
626
|
+
readonly includeTypes?: boolean;
|
|
627
|
+
}
|
|
606
628
|
/**
|
|
607
629
|
* The portable-tsconfig filter: {@link (PortableTsconfig:class).make}
|
|
608
630
|
* narrows a resolved or bare compiler-options object to the allow-listed,
|
|
@@ -622,8 +644,21 @@ declare class PortableTsconfig {
|
|
|
622
644
|
* is dropped; this is an allow-list, not a deny-list, so an option this
|
|
623
645
|
* package does not yet classify never leaks onto the portable shape by
|
|
624
646
|
* accident.
|
|
647
|
+
*
|
|
648
|
+
* `types` is the one deliberate exception, and it is opt-in rather than
|
|
649
|
+
* unclassified: it is portable (package names, not paths) but carrying it
|
|
650
|
+
* makes TypeScript demand those packages be resolvable, which a virtual
|
|
651
|
+
* environment with no `node_modules` cannot satisfy. Pass
|
|
652
|
+
* {@link PortableTsconfigOptions.includeTypes} when the consumer
|
|
653
|
+
* materializes `@types`; leave it off for the permissive default. Related
|
|
654
|
+
* `typeRoots` is never carried — machine-specific,
|
|
655
|
+
* config-location-dependent directories.
|
|
656
|
+
*
|
|
657
|
+
* @param input - The resolved config, or a bare compiler-options bag.
|
|
658
|
+
* @param options - Opt-ins for options that are portable but
|
|
659
|
+
* resolution-dependent. Omitted means the strict, always-safe subset.
|
|
625
660
|
*/
|
|
626
|
-
static readonly make: (input: ResolvedTsconfig | CompilerOptions.Type) => PortableTsconfig;
|
|
661
|
+
static readonly make: (input: ResolvedTsconfig | CompilerOptions.Type, options?: PortableTsconfigOptions) => PortableTsconfig;
|
|
627
662
|
}
|
|
628
663
|
//#endregion
|
|
629
664
|
//#region src/TsconfigDiscovery.d.ts
|
|
@@ -702,148 +737,148 @@ declare class TsconfigLoader {
|
|
|
702
737
|
readonly [x: string]: unknown;
|
|
703
738
|
readonly compilerOptions?: {
|
|
704
739
|
readonly [x: string]: unknown;
|
|
705
|
-
readonly target?: "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "es2025" | "es5" | "es6" | "esnext"
|
|
706
|
-
readonly module?: "amd" | "commonjs" | "es2015" | "es2020" | "es2022" | "es6" | "esnext" | "node16" | "node18" | "node20" | "nodenext" | "none" | "preserve" | "system" | "umd"
|
|
707
|
-
readonly moduleResolution?: "bundler" | "classic" | "node" | "node10" | "node16" | "nodenext"
|
|
708
|
-
readonly jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native"
|
|
709
|
-
readonly newLine?: "crlf" | "lf"
|
|
710
|
-
readonly moduleDetection?: "auto" | "force" | "legacy"
|
|
711
|
-
readonly lib?: readonly ("decorators" | "decorators.legacy" | "dom" | "dom.asynciterable" | "dom.iterable" | "es2015" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol" | "es2015.symbol.wellknown" | "es2016" | "es2016.array.include" | "es2016.intl" | "es2017" | "es2017.arraybuffer" | "es2017.date" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019" | "es2019.array" | "es2019.intl" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020" | "es2020.bigint" | "es2020.date" | "es2020.intl" | "es2020.number" | "es2020.promise" | "es2020.sharedmemory" | "es2020.string" | "es2020.symbol.wellknown" | "es2021" | "es2021.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "es2022" | "es2022.array" | "es2022.error" | "es2022.intl" | "es2022.object" | "es2022.regexp" | "es2022.string" | "es2023" | "es2023.array" | "es2023.collection" | "es2023.intl" | "es2024" | "es2024.arraybuffer" | "es2024.collection" | "es2024.object" | "es2024.promise" | "es2024.regexp" | "es2024.sharedmemory" | "es2024.string" | "es2025" | "es2025.collection" | "es2025.float16" | "es2025.intl" | "es2025.iterator" | "es2025.promise" | "es2025.regexp" | "es5" | "es6" | "es7" | "esnext" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.collection" | "esnext.date" | "esnext.decorators" | "esnext.disposable" | "esnext.error" | "esnext.float16" | "esnext.intl" | "esnext.iterator" | "esnext.object" | "esnext.promise" | "esnext.regexp" | "esnext.sharedmemory" | "esnext.string" | "esnext.symbol" | "esnext.temporal" | "esnext.typedarrays" | "esnext.weakref" | "scripthost" | "webworker" | "webworker.asynciterable" | "webworker.importscripts" | "webworker.iterable")[]
|
|
712
|
-
readonly ignoreDeprecations?: "5.0" | "6.0"
|
|
713
|
-
readonly strict?: boolean
|
|
714
|
-
readonly noImplicitAny?: boolean
|
|
715
|
-
readonly strictNullChecks?: boolean
|
|
716
|
-
readonly strictFunctionTypes?: boolean
|
|
717
|
-
readonly strictBindCallApply?: boolean
|
|
718
|
-
readonly strictPropertyInitialization?: boolean
|
|
719
|
-
readonly strictBuiltinIteratorReturn?: boolean
|
|
720
|
-
readonly noImplicitThis?: boolean
|
|
721
|
-
readonly useUnknownInCatchVariables?: boolean
|
|
722
|
-
readonly alwaysStrict?: boolean
|
|
723
|
-
readonly noUnusedLocals?: boolean
|
|
724
|
-
readonly noUnusedParameters?: boolean
|
|
725
|
-
readonly exactOptionalPropertyTypes?: boolean
|
|
726
|
-
readonly noImplicitReturns?: boolean
|
|
727
|
-
readonly noFallthroughCasesInSwitch?: boolean
|
|
728
|
-
readonly noUncheckedIndexedAccess?: boolean
|
|
729
|
-
readonly noImplicitOverride?: boolean
|
|
730
|
-
readonly noPropertyAccessFromIndexSignature?: boolean
|
|
731
|
-
readonly allowUnusedLabels?: boolean
|
|
732
|
-
readonly allowUnreachableCode?: boolean
|
|
733
|
-
readonly noUncheckedSideEffectImports?: boolean
|
|
734
|
-
readonly allowJs?: boolean
|
|
735
|
-
readonly checkJs?: boolean
|
|
736
|
-
readonly resolveJsonModule?: boolean
|
|
737
|
-
readonly allowArbitraryExtensions?: boolean
|
|
738
|
-
readonly allowImportingTsExtensions?: boolean
|
|
739
|
-
readonly rewriteRelativeImportExtensions?: boolean
|
|
740
|
-
readonly resolvePackageJsonExports?: boolean
|
|
741
|
-
readonly resolvePackageJsonImports?: boolean
|
|
742
|
-
readonly allowSyntheticDefaultImports?: boolean
|
|
743
|
-
readonly esModuleInterop?: boolean
|
|
744
|
-
readonly preserveSymlinks?: boolean
|
|
745
|
-
readonly allowUmdGlobalAccess?: boolean
|
|
746
|
-
readonly verbatimModuleSyntax?: boolean
|
|
747
|
-
readonly isolatedModules?: boolean
|
|
748
|
-
readonly isolatedDeclarations?: boolean
|
|
749
|
-
readonly erasableSyntaxOnly?: boolean
|
|
750
|
-
readonly forceConsistentCasingInFileNames?: boolean
|
|
751
|
-
readonly declaration?: boolean
|
|
752
|
-
readonly declarationMap?: boolean
|
|
753
|
-
readonly emitDeclarationOnly?: boolean
|
|
754
|
-
readonly sourceMap?: boolean
|
|
755
|
-
readonly inlineSourceMap?: boolean
|
|
756
|
-
readonly inlineSources?: boolean
|
|
757
|
-
readonly removeComments?: boolean
|
|
758
|
-
readonly importHelpers?: boolean
|
|
759
|
-
readonly downlevelIteration?: boolean
|
|
760
|
-
readonly emitBOM?: boolean
|
|
761
|
-
readonly noEmit?: boolean
|
|
762
|
-
readonly noEmitHelpers?: boolean
|
|
763
|
-
readonly noEmitOnError?: boolean
|
|
764
|
-
readonly preserveConstEnums?: boolean
|
|
765
|
-
readonly stripInternal?: boolean
|
|
766
|
-
readonly experimentalDecorators?: boolean
|
|
767
|
-
readonly emitDecoratorMetadata?: boolean
|
|
768
|
-
readonly useDefineForClassFields?: boolean
|
|
769
|
-
readonly noCheck?: boolean
|
|
770
|
-
readonly composite?: boolean
|
|
771
|
-
readonly incremental?: boolean
|
|
772
|
-
readonly disableSourceOfProjectReferenceRedirect?: boolean
|
|
773
|
-
readonly disableSolutionSearching?: boolean
|
|
774
|
-
readonly disableReferencedProjectLoad?: boolean
|
|
775
|
-
readonly assumeChangesOnlyAffectDirectDependencies?: boolean
|
|
776
|
-
readonly noErrorTruncation?: boolean
|
|
777
|
-
readonly noLib?: boolean
|
|
778
|
-
readonly noResolve?: boolean
|
|
779
|
-
readonly skipDefaultLibCheck?: boolean
|
|
780
|
-
readonly skipLibCheck?: boolean
|
|
781
|
-
readonly diagnostics?: boolean
|
|
782
|
-
readonly extendedDiagnostics?: boolean
|
|
783
|
-
readonly listFiles?: boolean
|
|
784
|
-
readonly listFilesOnly?: boolean
|
|
785
|
-
readonly listEmittedFiles?: boolean
|
|
786
|
-
readonly explainFiles?: boolean
|
|
787
|
-
readonly traceResolution?: boolean
|
|
788
|
-
readonly preserveWatchOutput?: boolean
|
|
789
|
-
readonly pretty?: boolean
|
|
790
|
-
readonly disableSizeLimit?: boolean
|
|
791
|
-
readonly libReplacement?: boolean
|
|
792
|
-
readonly stableTypeOrdering?: boolean
|
|
793
|
-
readonly outFile?: string
|
|
794
|
-
readonly outDir?: string
|
|
795
|
-
readonly rootDir?: string
|
|
796
|
-
readonly declarationDir?: string
|
|
797
|
-
readonly sourceRoot?: string
|
|
798
|
-
readonly mapRoot?: string
|
|
799
|
-
readonly tsBuildInfoFile?: string
|
|
800
|
-
readonly baseUrl?: string
|
|
801
|
-
readonly generateCpuProfile?: string
|
|
802
|
-
readonly generateTrace?: string
|
|
803
|
-
readonly typeRoots?: readonly string[]
|
|
804
|
-
readonly rootDirs?: readonly string[]
|
|
805
|
-
readonly jsxFactory?: string
|
|
806
|
-
readonly jsxFragmentFactory?: string
|
|
807
|
-
readonly jsxImportSource?: string
|
|
808
|
-
readonly reactNamespace?: string
|
|
809
|
-
readonly types?: readonly string[]
|
|
810
|
-
readonly customConditions?: readonly string[]
|
|
811
|
-
readonly moduleSuffixes?: readonly string[]
|
|
740
|
+
readonly target?: "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "es2025" | "es5" | "es6" | "esnext";
|
|
741
|
+
readonly module?: "amd" | "commonjs" | "es2015" | "es2020" | "es2022" | "es6" | "esnext" | "node16" | "node18" | "node20" | "nodenext" | "none" | "preserve" | "system" | "umd";
|
|
742
|
+
readonly moduleResolution?: "bundler" | "classic" | "node" | "node10" | "node16" | "nodenext";
|
|
743
|
+
readonly jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
|
744
|
+
readonly newLine?: "crlf" | "lf";
|
|
745
|
+
readonly moduleDetection?: "auto" | "force" | "legacy";
|
|
746
|
+
readonly lib?: readonly ("decorators" | "decorators.legacy" | "dom" | "dom.asynciterable" | "dom.iterable" | "es2015" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol" | "es2015.symbol.wellknown" | "es2016" | "es2016.array.include" | "es2016.intl" | "es2017" | "es2017.arraybuffer" | "es2017.date" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019" | "es2019.array" | "es2019.intl" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020" | "es2020.bigint" | "es2020.date" | "es2020.intl" | "es2020.number" | "es2020.promise" | "es2020.sharedmemory" | "es2020.string" | "es2020.symbol.wellknown" | "es2021" | "es2021.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "es2022" | "es2022.array" | "es2022.error" | "es2022.intl" | "es2022.object" | "es2022.regexp" | "es2022.string" | "es2023" | "es2023.array" | "es2023.collection" | "es2023.intl" | "es2024" | "es2024.arraybuffer" | "es2024.collection" | "es2024.object" | "es2024.promise" | "es2024.regexp" | "es2024.sharedmemory" | "es2024.string" | "es2025" | "es2025.collection" | "es2025.float16" | "es2025.intl" | "es2025.iterator" | "es2025.promise" | "es2025.regexp" | "es5" | "es6" | "es7" | "esnext" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.collection" | "esnext.date" | "esnext.decorators" | "esnext.disposable" | "esnext.error" | "esnext.float16" | "esnext.intl" | "esnext.iterator" | "esnext.object" | "esnext.promise" | "esnext.regexp" | "esnext.sharedmemory" | "esnext.string" | "esnext.symbol" | "esnext.temporal" | "esnext.typedarrays" | "esnext.weakref" | "scripthost" | "webworker" | "webworker.asynciterable" | "webworker.importscripts" | "webworker.iterable")[];
|
|
747
|
+
readonly ignoreDeprecations?: "5.0" | "6.0";
|
|
748
|
+
readonly strict?: boolean;
|
|
749
|
+
readonly noImplicitAny?: boolean;
|
|
750
|
+
readonly strictNullChecks?: boolean;
|
|
751
|
+
readonly strictFunctionTypes?: boolean;
|
|
752
|
+
readonly strictBindCallApply?: boolean;
|
|
753
|
+
readonly strictPropertyInitialization?: boolean;
|
|
754
|
+
readonly strictBuiltinIteratorReturn?: boolean;
|
|
755
|
+
readonly noImplicitThis?: boolean;
|
|
756
|
+
readonly useUnknownInCatchVariables?: boolean;
|
|
757
|
+
readonly alwaysStrict?: boolean;
|
|
758
|
+
readonly noUnusedLocals?: boolean;
|
|
759
|
+
readonly noUnusedParameters?: boolean;
|
|
760
|
+
readonly exactOptionalPropertyTypes?: boolean;
|
|
761
|
+
readonly noImplicitReturns?: boolean;
|
|
762
|
+
readonly noFallthroughCasesInSwitch?: boolean;
|
|
763
|
+
readonly noUncheckedIndexedAccess?: boolean;
|
|
764
|
+
readonly noImplicitOverride?: boolean;
|
|
765
|
+
readonly noPropertyAccessFromIndexSignature?: boolean;
|
|
766
|
+
readonly allowUnusedLabels?: boolean;
|
|
767
|
+
readonly allowUnreachableCode?: boolean;
|
|
768
|
+
readonly noUncheckedSideEffectImports?: boolean;
|
|
769
|
+
readonly allowJs?: boolean;
|
|
770
|
+
readonly checkJs?: boolean;
|
|
771
|
+
readonly resolveJsonModule?: boolean;
|
|
772
|
+
readonly allowArbitraryExtensions?: boolean;
|
|
773
|
+
readonly allowImportingTsExtensions?: boolean;
|
|
774
|
+
readonly rewriteRelativeImportExtensions?: boolean;
|
|
775
|
+
readonly resolvePackageJsonExports?: boolean;
|
|
776
|
+
readonly resolvePackageJsonImports?: boolean;
|
|
777
|
+
readonly allowSyntheticDefaultImports?: boolean;
|
|
778
|
+
readonly esModuleInterop?: boolean;
|
|
779
|
+
readonly preserveSymlinks?: boolean;
|
|
780
|
+
readonly allowUmdGlobalAccess?: boolean;
|
|
781
|
+
readonly verbatimModuleSyntax?: boolean;
|
|
782
|
+
readonly isolatedModules?: boolean;
|
|
783
|
+
readonly isolatedDeclarations?: boolean;
|
|
784
|
+
readonly erasableSyntaxOnly?: boolean;
|
|
785
|
+
readonly forceConsistentCasingInFileNames?: boolean;
|
|
786
|
+
readonly declaration?: boolean;
|
|
787
|
+
readonly declarationMap?: boolean;
|
|
788
|
+
readonly emitDeclarationOnly?: boolean;
|
|
789
|
+
readonly sourceMap?: boolean;
|
|
790
|
+
readonly inlineSourceMap?: boolean;
|
|
791
|
+
readonly inlineSources?: boolean;
|
|
792
|
+
readonly removeComments?: boolean;
|
|
793
|
+
readonly importHelpers?: boolean;
|
|
794
|
+
readonly downlevelIteration?: boolean;
|
|
795
|
+
readonly emitBOM?: boolean;
|
|
796
|
+
readonly noEmit?: boolean;
|
|
797
|
+
readonly noEmitHelpers?: boolean;
|
|
798
|
+
readonly noEmitOnError?: boolean;
|
|
799
|
+
readonly preserveConstEnums?: boolean;
|
|
800
|
+
readonly stripInternal?: boolean;
|
|
801
|
+
readonly experimentalDecorators?: boolean;
|
|
802
|
+
readonly emitDecoratorMetadata?: boolean;
|
|
803
|
+
readonly useDefineForClassFields?: boolean;
|
|
804
|
+
readonly noCheck?: boolean;
|
|
805
|
+
readonly composite?: boolean;
|
|
806
|
+
readonly incremental?: boolean;
|
|
807
|
+
readonly disableSourceOfProjectReferenceRedirect?: boolean;
|
|
808
|
+
readonly disableSolutionSearching?: boolean;
|
|
809
|
+
readonly disableReferencedProjectLoad?: boolean;
|
|
810
|
+
readonly assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
811
|
+
readonly noErrorTruncation?: boolean;
|
|
812
|
+
readonly noLib?: boolean;
|
|
813
|
+
readonly noResolve?: boolean;
|
|
814
|
+
readonly skipDefaultLibCheck?: boolean;
|
|
815
|
+
readonly skipLibCheck?: boolean;
|
|
816
|
+
readonly diagnostics?: boolean;
|
|
817
|
+
readonly extendedDiagnostics?: boolean;
|
|
818
|
+
readonly listFiles?: boolean;
|
|
819
|
+
readonly listFilesOnly?: boolean;
|
|
820
|
+
readonly listEmittedFiles?: boolean;
|
|
821
|
+
readonly explainFiles?: boolean;
|
|
822
|
+
readonly traceResolution?: boolean;
|
|
823
|
+
readonly preserveWatchOutput?: boolean;
|
|
824
|
+
readonly pretty?: boolean;
|
|
825
|
+
readonly disableSizeLimit?: boolean;
|
|
826
|
+
readonly libReplacement?: boolean;
|
|
827
|
+
readonly stableTypeOrdering?: boolean;
|
|
828
|
+
readonly outFile?: string;
|
|
829
|
+
readonly outDir?: string;
|
|
830
|
+
readonly rootDir?: string;
|
|
831
|
+
readonly declarationDir?: string;
|
|
832
|
+
readonly sourceRoot?: string;
|
|
833
|
+
readonly mapRoot?: string;
|
|
834
|
+
readonly tsBuildInfoFile?: string;
|
|
835
|
+
readonly baseUrl?: string;
|
|
836
|
+
readonly generateCpuProfile?: string;
|
|
837
|
+
readonly generateTrace?: string;
|
|
838
|
+
readonly typeRoots?: readonly string[];
|
|
839
|
+
readonly rootDirs?: readonly string[];
|
|
840
|
+
readonly jsxFactory?: string;
|
|
841
|
+
readonly jsxFragmentFactory?: string;
|
|
842
|
+
readonly jsxImportSource?: string;
|
|
843
|
+
readonly reactNamespace?: string;
|
|
844
|
+
readonly types?: readonly string[];
|
|
845
|
+
readonly customConditions?: readonly string[];
|
|
846
|
+
readonly moduleSuffixes?: readonly string[];
|
|
812
847
|
readonly paths?: {
|
|
813
848
|
readonly [x: string]: readonly string[];
|
|
814
|
-
}
|
|
849
|
+
};
|
|
815
850
|
readonly plugins?: readonly {
|
|
816
851
|
readonly [x: string]: unknown;
|
|
817
852
|
readonly name: string;
|
|
818
|
-
}[]
|
|
819
|
-
readonly maxNodeModuleJsDepth?: number
|
|
820
|
-
}
|
|
821
|
-
readonly extends?: string | readonly string[]
|
|
822
|
-
readonly files?: readonly string[]
|
|
823
|
-
readonly include?: readonly string[]
|
|
824
|
-
readonly exclude?: readonly string[]
|
|
853
|
+
}[];
|
|
854
|
+
readonly maxNodeModuleJsDepth?: number;
|
|
855
|
+
};
|
|
856
|
+
readonly extends?: string | readonly string[];
|
|
857
|
+
readonly files?: readonly string[];
|
|
858
|
+
readonly include?: readonly string[];
|
|
859
|
+
readonly exclude?: readonly string[];
|
|
825
860
|
readonly references?: readonly {
|
|
826
861
|
readonly [x: string]: unknown;
|
|
827
862
|
readonly path: string;
|
|
828
|
-
}[]
|
|
863
|
+
}[];
|
|
829
864
|
readonly watchOptions?: {
|
|
830
865
|
readonly [x: string]: unknown;
|
|
831
|
-
readonly watchFile?: "dynamicprioritypolling" | "fixedchunksizepolling" | "fixedpollinginterval" | "prioritypollinginterval" | "usefsevents" | "usefseventsonparentdirectory"
|
|
832
|
-
readonly watchDirectory?: "dynamicprioritypolling" | "fixedchunksizepolling" | "fixedpollinginterval" | "usefsevents"
|
|
833
|
-
readonly fallbackPolling?: "dynamicpriority" | "fixedchunksize" | "fixedinterval" | "priorityinterval"
|
|
834
|
-
readonly synchronousWatchDirectory?: boolean
|
|
835
|
-
readonly excludeDirectories?: readonly string[]
|
|
836
|
-
readonly excludeFiles?: readonly string[]
|
|
837
|
-
}
|
|
866
|
+
readonly watchFile?: "dynamicprioritypolling" | "fixedchunksizepolling" | "fixedpollinginterval" | "prioritypollinginterval" | "usefsevents" | "usefseventsonparentdirectory";
|
|
867
|
+
readonly watchDirectory?: "dynamicprioritypolling" | "fixedchunksizepolling" | "fixedpollinginterval" | "usefsevents";
|
|
868
|
+
readonly fallbackPolling?: "dynamicpriority" | "fixedchunksize" | "fixedinterval" | "priorityinterval";
|
|
869
|
+
readonly synchronousWatchDirectory?: boolean;
|
|
870
|
+
readonly excludeDirectories?: readonly string[];
|
|
871
|
+
readonly excludeFiles?: readonly string[];
|
|
872
|
+
};
|
|
838
873
|
readonly typeAcquisition?: {
|
|
839
874
|
readonly [x: string]: unknown;
|
|
840
|
-
readonly enable?: boolean
|
|
841
|
-
readonly include?: readonly string[]
|
|
842
|
-
readonly exclude?: readonly string[]
|
|
843
|
-
readonly disableFilenameBasedTypeAcquisition?: boolean
|
|
844
|
-
}
|
|
845
|
-
readonly compileOnSave?: boolean
|
|
846
|
-
readonly $schema?: string
|
|
875
|
+
readonly enable?: boolean;
|
|
876
|
+
readonly include?: readonly string[];
|
|
877
|
+
readonly exclude?: readonly string[];
|
|
878
|
+
readonly disableFilenameBasedTypeAcquisition?: boolean;
|
|
879
|
+
};
|
|
880
|
+
readonly compileOnSave?: boolean;
|
|
881
|
+
readonly $schema?: string;
|
|
847
882
|
}, PlatformError.PlatformError | TsconfigParseError, FileSystem.FileSystem | Path.Path>;
|
|
848
883
|
/**
|
|
849
884
|
* Resolve a tsconfig.json and its full `extends` chain into a
|
|
@@ -866,121 +901,121 @@ declare class TsconfigLoader {
|
|
|
866
901
|
*/
|
|
867
902
|
static readonly compilerOptions: (configPath: string) => Effect.Effect<{
|
|
868
903
|
readonly [x: string]: unknown;
|
|
869
|
-
readonly target?: "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "es2025" | "es5" | "es6" | "esnext"
|
|
870
|
-
readonly module?: "amd" | "commonjs" | "es2015" | "es2020" | "es2022" | "es6" | "esnext" | "node16" | "node18" | "node20" | "nodenext" | "none" | "preserve" | "system" | "umd"
|
|
871
|
-
readonly moduleResolution?: "bundler" | "classic" | "node" | "node10" | "node16" | "nodenext"
|
|
872
|
-
readonly jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native"
|
|
873
|
-
readonly newLine?: "crlf" | "lf"
|
|
874
|
-
readonly moduleDetection?: "auto" | "force" | "legacy"
|
|
875
|
-
readonly lib?: readonly ("decorators" | "decorators.legacy" | "dom" | "dom.asynciterable" | "dom.iterable" | "es2015" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol" | "es2015.symbol.wellknown" | "es2016" | "es2016.array.include" | "es2016.intl" | "es2017" | "es2017.arraybuffer" | "es2017.date" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019" | "es2019.array" | "es2019.intl" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020" | "es2020.bigint" | "es2020.date" | "es2020.intl" | "es2020.number" | "es2020.promise" | "es2020.sharedmemory" | "es2020.string" | "es2020.symbol.wellknown" | "es2021" | "es2021.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "es2022" | "es2022.array" | "es2022.error" | "es2022.intl" | "es2022.object" | "es2022.regexp" | "es2022.string" | "es2023" | "es2023.array" | "es2023.collection" | "es2023.intl" | "es2024" | "es2024.arraybuffer" | "es2024.collection" | "es2024.object" | "es2024.promise" | "es2024.regexp" | "es2024.sharedmemory" | "es2024.string" | "es2025" | "es2025.collection" | "es2025.float16" | "es2025.intl" | "es2025.iterator" | "es2025.promise" | "es2025.regexp" | "es5" | "es6" | "es7" | "esnext" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.collection" | "esnext.date" | "esnext.decorators" | "esnext.disposable" | "esnext.error" | "esnext.float16" | "esnext.intl" | "esnext.iterator" | "esnext.object" | "esnext.promise" | "esnext.regexp" | "esnext.sharedmemory" | "esnext.string" | "esnext.symbol" | "esnext.temporal" | "esnext.typedarrays" | "esnext.weakref" | "scripthost" | "webworker" | "webworker.asynciterable" | "webworker.importscripts" | "webworker.iterable")[]
|
|
876
|
-
readonly ignoreDeprecations?: "5.0" | "6.0"
|
|
877
|
-
readonly strict?: boolean
|
|
878
|
-
readonly noImplicitAny?: boolean
|
|
879
|
-
readonly strictNullChecks?: boolean
|
|
880
|
-
readonly strictFunctionTypes?: boolean
|
|
881
|
-
readonly strictBindCallApply?: boolean
|
|
882
|
-
readonly strictPropertyInitialization?: boolean
|
|
883
|
-
readonly strictBuiltinIteratorReturn?: boolean
|
|
884
|
-
readonly noImplicitThis?: boolean
|
|
885
|
-
readonly useUnknownInCatchVariables?: boolean
|
|
886
|
-
readonly alwaysStrict?: boolean
|
|
887
|
-
readonly noUnusedLocals?: boolean
|
|
888
|
-
readonly noUnusedParameters?: boolean
|
|
889
|
-
readonly exactOptionalPropertyTypes?: boolean
|
|
890
|
-
readonly noImplicitReturns?: boolean
|
|
891
|
-
readonly noFallthroughCasesInSwitch?: boolean
|
|
892
|
-
readonly noUncheckedIndexedAccess?: boolean
|
|
893
|
-
readonly noImplicitOverride?: boolean
|
|
894
|
-
readonly noPropertyAccessFromIndexSignature?: boolean
|
|
895
|
-
readonly allowUnusedLabels?: boolean
|
|
896
|
-
readonly allowUnreachableCode?: boolean
|
|
897
|
-
readonly noUncheckedSideEffectImports?: boolean
|
|
898
|
-
readonly allowJs?: boolean
|
|
899
|
-
readonly checkJs?: boolean
|
|
900
|
-
readonly resolveJsonModule?: boolean
|
|
901
|
-
readonly allowArbitraryExtensions?: boolean
|
|
902
|
-
readonly allowImportingTsExtensions?: boolean
|
|
903
|
-
readonly rewriteRelativeImportExtensions?: boolean
|
|
904
|
-
readonly resolvePackageJsonExports?: boolean
|
|
905
|
-
readonly resolvePackageJsonImports?: boolean
|
|
906
|
-
readonly allowSyntheticDefaultImports?: boolean
|
|
907
|
-
readonly esModuleInterop?: boolean
|
|
908
|
-
readonly preserveSymlinks?: boolean
|
|
909
|
-
readonly allowUmdGlobalAccess?: boolean
|
|
910
|
-
readonly verbatimModuleSyntax?: boolean
|
|
911
|
-
readonly isolatedModules?: boolean
|
|
912
|
-
readonly isolatedDeclarations?: boolean
|
|
913
|
-
readonly erasableSyntaxOnly?: boolean
|
|
914
|
-
readonly forceConsistentCasingInFileNames?: boolean
|
|
915
|
-
readonly declaration?: boolean
|
|
916
|
-
readonly declarationMap?: boolean
|
|
917
|
-
readonly emitDeclarationOnly?: boolean
|
|
918
|
-
readonly sourceMap?: boolean
|
|
919
|
-
readonly inlineSourceMap?: boolean
|
|
920
|
-
readonly inlineSources?: boolean
|
|
921
|
-
readonly removeComments?: boolean
|
|
922
|
-
readonly importHelpers?: boolean
|
|
923
|
-
readonly downlevelIteration?: boolean
|
|
924
|
-
readonly emitBOM?: boolean
|
|
925
|
-
readonly noEmit?: boolean
|
|
926
|
-
readonly noEmitHelpers?: boolean
|
|
927
|
-
readonly noEmitOnError?: boolean
|
|
928
|
-
readonly preserveConstEnums?: boolean
|
|
929
|
-
readonly stripInternal?: boolean
|
|
930
|
-
readonly experimentalDecorators?: boolean
|
|
931
|
-
readonly emitDecoratorMetadata?: boolean
|
|
932
|
-
readonly useDefineForClassFields?: boolean
|
|
933
|
-
readonly noCheck?: boolean
|
|
934
|
-
readonly composite?: boolean
|
|
935
|
-
readonly incremental?: boolean
|
|
936
|
-
readonly disableSourceOfProjectReferenceRedirect?: boolean
|
|
937
|
-
readonly disableSolutionSearching?: boolean
|
|
938
|
-
readonly disableReferencedProjectLoad?: boolean
|
|
939
|
-
readonly assumeChangesOnlyAffectDirectDependencies?: boolean
|
|
940
|
-
readonly noErrorTruncation?: boolean
|
|
941
|
-
readonly noLib?: boolean
|
|
942
|
-
readonly noResolve?: boolean
|
|
943
|
-
readonly skipDefaultLibCheck?: boolean
|
|
944
|
-
readonly skipLibCheck?: boolean
|
|
945
|
-
readonly diagnostics?: boolean
|
|
946
|
-
readonly extendedDiagnostics?: boolean
|
|
947
|
-
readonly listFiles?: boolean
|
|
948
|
-
readonly listFilesOnly?: boolean
|
|
949
|
-
readonly listEmittedFiles?: boolean
|
|
950
|
-
readonly explainFiles?: boolean
|
|
951
|
-
readonly traceResolution?: boolean
|
|
952
|
-
readonly preserveWatchOutput?: boolean
|
|
953
|
-
readonly pretty?: boolean
|
|
954
|
-
readonly disableSizeLimit?: boolean
|
|
955
|
-
readonly libReplacement?: boolean
|
|
956
|
-
readonly stableTypeOrdering?: boolean
|
|
957
|
-
readonly outFile?: string
|
|
958
|
-
readonly outDir?: string
|
|
959
|
-
readonly rootDir?: string
|
|
960
|
-
readonly declarationDir?: string
|
|
961
|
-
readonly sourceRoot?: string
|
|
962
|
-
readonly mapRoot?: string
|
|
963
|
-
readonly tsBuildInfoFile?: string
|
|
964
|
-
readonly baseUrl?: string
|
|
965
|
-
readonly generateCpuProfile?: string
|
|
966
|
-
readonly generateTrace?: string
|
|
967
|
-
readonly typeRoots?: readonly string[]
|
|
968
|
-
readonly rootDirs?: readonly string[]
|
|
969
|
-
readonly jsxFactory?: string
|
|
970
|
-
readonly jsxFragmentFactory?: string
|
|
971
|
-
readonly jsxImportSource?: string
|
|
972
|
-
readonly reactNamespace?: string
|
|
973
|
-
readonly types?: readonly string[]
|
|
974
|
-
readonly customConditions?: readonly string[]
|
|
975
|
-
readonly moduleSuffixes?: readonly string[]
|
|
904
|
+
readonly target?: "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "es2023" | "es2024" | "es2025" | "es5" | "es6" | "esnext";
|
|
905
|
+
readonly module?: "amd" | "commonjs" | "es2015" | "es2020" | "es2022" | "es6" | "esnext" | "node16" | "node18" | "node20" | "nodenext" | "none" | "preserve" | "system" | "umd";
|
|
906
|
+
readonly moduleResolution?: "bundler" | "classic" | "node" | "node10" | "node16" | "nodenext";
|
|
907
|
+
readonly jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
|
908
|
+
readonly newLine?: "crlf" | "lf";
|
|
909
|
+
readonly moduleDetection?: "auto" | "force" | "legacy";
|
|
910
|
+
readonly lib?: readonly ("decorators" | "decorators.legacy" | "dom" | "dom.asynciterable" | "dom.iterable" | "es2015" | "es2015.collection" | "es2015.core" | "es2015.generator" | "es2015.iterable" | "es2015.promise" | "es2015.proxy" | "es2015.reflect" | "es2015.symbol" | "es2015.symbol.wellknown" | "es2016" | "es2016.array.include" | "es2016.intl" | "es2017" | "es2017.arraybuffer" | "es2017.date" | "es2017.intl" | "es2017.object" | "es2017.sharedmemory" | "es2017.string" | "es2017.typedarrays" | "es2018" | "es2018.asyncgenerator" | "es2018.asynciterable" | "es2018.intl" | "es2018.promise" | "es2018.regexp" | "es2019" | "es2019.array" | "es2019.intl" | "es2019.object" | "es2019.string" | "es2019.symbol" | "es2020" | "es2020.bigint" | "es2020.date" | "es2020.intl" | "es2020.number" | "es2020.promise" | "es2020.sharedmemory" | "es2020.string" | "es2020.symbol.wellknown" | "es2021" | "es2021.intl" | "es2021.promise" | "es2021.string" | "es2021.weakref" | "es2022" | "es2022.array" | "es2022.error" | "es2022.intl" | "es2022.object" | "es2022.regexp" | "es2022.string" | "es2023" | "es2023.array" | "es2023.collection" | "es2023.intl" | "es2024" | "es2024.arraybuffer" | "es2024.collection" | "es2024.object" | "es2024.promise" | "es2024.regexp" | "es2024.sharedmemory" | "es2024.string" | "es2025" | "es2025.collection" | "es2025.float16" | "es2025.intl" | "es2025.iterator" | "es2025.promise" | "es2025.regexp" | "es5" | "es6" | "es7" | "esnext" | "esnext.array" | "esnext.asynciterable" | "esnext.bigint" | "esnext.collection" | "esnext.date" | "esnext.decorators" | "esnext.disposable" | "esnext.error" | "esnext.float16" | "esnext.intl" | "esnext.iterator" | "esnext.object" | "esnext.promise" | "esnext.regexp" | "esnext.sharedmemory" | "esnext.string" | "esnext.symbol" | "esnext.temporal" | "esnext.typedarrays" | "esnext.weakref" | "scripthost" | "webworker" | "webworker.asynciterable" | "webworker.importscripts" | "webworker.iterable")[];
|
|
911
|
+
readonly ignoreDeprecations?: "5.0" | "6.0";
|
|
912
|
+
readonly strict?: boolean;
|
|
913
|
+
readonly noImplicitAny?: boolean;
|
|
914
|
+
readonly strictNullChecks?: boolean;
|
|
915
|
+
readonly strictFunctionTypes?: boolean;
|
|
916
|
+
readonly strictBindCallApply?: boolean;
|
|
917
|
+
readonly strictPropertyInitialization?: boolean;
|
|
918
|
+
readonly strictBuiltinIteratorReturn?: boolean;
|
|
919
|
+
readonly noImplicitThis?: boolean;
|
|
920
|
+
readonly useUnknownInCatchVariables?: boolean;
|
|
921
|
+
readonly alwaysStrict?: boolean;
|
|
922
|
+
readonly noUnusedLocals?: boolean;
|
|
923
|
+
readonly noUnusedParameters?: boolean;
|
|
924
|
+
readonly exactOptionalPropertyTypes?: boolean;
|
|
925
|
+
readonly noImplicitReturns?: boolean;
|
|
926
|
+
readonly noFallthroughCasesInSwitch?: boolean;
|
|
927
|
+
readonly noUncheckedIndexedAccess?: boolean;
|
|
928
|
+
readonly noImplicitOverride?: boolean;
|
|
929
|
+
readonly noPropertyAccessFromIndexSignature?: boolean;
|
|
930
|
+
readonly allowUnusedLabels?: boolean;
|
|
931
|
+
readonly allowUnreachableCode?: boolean;
|
|
932
|
+
readonly noUncheckedSideEffectImports?: boolean;
|
|
933
|
+
readonly allowJs?: boolean;
|
|
934
|
+
readonly checkJs?: boolean;
|
|
935
|
+
readonly resolveJsonModule?: boolean;
|
|
936
|
+
readonly allowArbitraryExtensions?: boolean;
|
|
937
|
+
readonly allowImportingTsExtensions?: boolean;
|
|
938
|
+
readonly rewriteRelativeImportExtensions?: boolean;
|
|
939
|
+
readonly resolvePackageJsonExports?: boolean;
|
|
940
|
+
readonly resolvePackageJsonImports?: boolean;
|
|
941
|
+
readonly allowSyntheticDefaultImports?: boolean;
|
|
942
|
+
readonly esModuleInterop?: boolean;
|
|
943
|
+
readonly preserveSymlinks?: boolean;
|
|
944
|
+
readonly allowUmdGlobalAccess?: boolean;
|
|
945
|
+
readonly verbatimModuleSyntax?: boolean;
|
|
946
|
+
readonly isolatedModules?: boolean;
|
|
947
|
+
readonly isolatedDeclarations?: boolean;
|
|
948
|
+
readonly erasableSyntaxOnly?: boolean;
|
|
949
|
+
readonly forceConsistentCasingInFileNames?: boolean;
|
|
950
|
+
readonly declaration?: boolean;
|
|
951
|
+
readonly declarationMap?: boolean;
|
|
952
|
+
readonly emitDeclarationOnly?: boolean;
|
|
953
|
+
readonly sourceMap?: boolean;
|
|
954
|
+
readonly inlineSourceMap?: boolean;
|
|
955
|
+
readonly inlineSources?: boolean;
|
|
956
|
+
readonly removeComments?: boolean;
|
|
957
|
+
readonly importHelpers?: boolean;
|
|
958
|
+
readonly downlevelIteration?: boolean;
|
|
959
|
+
readonly emitBOM?: boolean;
|
|
960
|
+
readonly noEmit?: boolean;
|
|
961
|
+
readonly noEmitHelpers?: boolean;
|
|
962
|
+
readonly noEmitOnError?: boolean;
|
|
963
|
+
readonly preserveConstEnums?: boolean;
|
|
964
|
+
readonly stripInternal?: boolean;
|
|
965
|
+
readonly experimentalDecorators?: boolean;
|
|
966
|
+
readonly emitDecoratorMetadata?: boolean;
|
|
967
|
+
readonly useDefineForClassFields?: boolean;
|
|
968
|
+
readonly noCheck?: boolean;
|
|
969
|
+
readonly composite?: boolean;
|
|
970
|
+
readonly incremental?: boolean;
|
|
971
|
+
readonly disableSourceOfProjectReferenceRedirect?: boolean;
|
|
972
|
+
readonly disableSolutionSearching?: boolean;
|
|
973
|
+
readonly disableReferencedProjectLoad?: boolean;
|
|
974
|
+
readonly assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
975
|
+
readonly noErrorTruncation?: boolean;
|
|
976
|
+
readonly noLib?: boolean;
|
|
977
|
+
readonly noResolve?: boolean;
|
|
978
|
+
readonly skipDefaultLibCheck?: boolean;
|
|
979
|
+
readonly skipLibCheck?: boolean;
|
|
980
|
+
readonly diagnostics?: boolean;
|
|
981
|
+
readonly extendedDiagnostics?: boolean;
|
|
982
|
+
readonly listFiles?: boolean;
|
|
983
|
+
readonly listFilesOnly?: boolean;
|
|
984
|
+
readonly listEmittedFiles?: boolean;
|
|
985
|
+
readonly explainFiles?: boolean;
|
|
986
|
+
readonly traceResolution?: boolean;
|
|
987
|
+
readonly preserveWatchOutput?: boolean;
|
|
988
|
+
readonly pretty?: boolean;
|
|
989
|
+
readonly disableSizeLimit?: boolean;
|
|
990
|
+
readonly libReplacement?: boolean;
|
|
991
|
+
readonly stableTypeOrdering?: boolean;
|
|
992
|
+
readonly outFile?: string;
|
|
993
|
+
readonly outDir?: string;
|
|
994
|
+
readonly rootDir?: string;
|
|
995
|
+
readonly declarationDir?: string;
|
|
996
|
+
readonly sourceRoot?: string;
|
|
997
|
+
readonly mapRoot?: string;
|
|
998
|
+
readonly tsBuildInfoFile?: string;
|
|
999
|
+
readonly baseUrl?: string;
|
|
1000
|
+
readonly generateCpuProfile?: string;
|
|
1001
|
+
readonly generateTrace?: string;
|
|
1002
|
+
readonly typeRoots?: readonly string[];
|
|
1003
|
+
readonly rootDirs?: readonly string[];
|
|
1004
|
+
readonly jsxFactory?: string;
|
|
1005
|
+
readonly jsxFragmentFactory?: string;
|
|
1006
|
+
readonly jsxImportSource?: string;
|
|
1007
|
+
readonly reactNamespace?: string;
|
|
1008
|
+
readonly types?: readonly string[];
|
|
1009
|
+
readonly customConditions?: readonly string[];
|
|
1010
|
+
readonly moduleSuffixes?: readonly string[];
|
|
976
1011
|
readonly paths?: {
|
|
977
1012
|
readonly [x: string]: readonly string[];
|
|
978
|
-
}
|
|
1013
|
+
};
|
|
979
1014
|
readonly plugins?: readonly {
|
|
980
1015
|
readonly [x: string]: unknown;
|
|
981
1016
|
readonly name: string;
|
|
982
|
-
}[]
|
|
983
|
-
readonly maxNodeModuleJsDepth?: number
|
|
1017
|
+
}[];
|
|
1018
|
+
readonly maxNodeModuleJsDepth?: number;
|
|
984
1019
|
}, PlatformError.PlatformError | TsconfigExtendsError | TsconfigParseError, FileSystem.FileSystem | Path.Path>;
|
|
985
1020
|
}
|
|
986
1021
|
//#endregion
|
|
@@ -1264,5 +1299,5 @@ declare class TsEnumCodec {
|
|
|
1264
1299
|
static readonly decodeCompilerOptions: (numeric: Readonly<Record<string, unknown>>) => Record<string, unknown>;
|
|
1265
1300
|
}
|
|
1266
1301
|
//#endregion
|
|
1267
|
-
export { CompilerOptions, type EnumFamily, FallbackPolling, type FindNearestOptions, Jsx, JsxConfig, Lib, Module, ModuleDetection, ModuleResolution, NewLine, PortableTsconfig, type ProgrammaticCompilerOptions, type ProgrammaticCompilerOptionsValue, Reference, ResolvedTsconfig, type SyncFileSystem, type SyncPath, Target, TsEnumCodec, TsconfigDiscovery, TsconfigExtendsError, TsconfigJson, TsconfigJsonFromString, TsconfigLoader, TsconfigLoaderSync, type TsconfigLoaderSyncOptions, TsconfigParseError, TypeAcquisition, WatchDirectory, WatchFile, WatchOptions };
|
|
1302
|
+
export { CompilerOptions, type EnumFamily, FallbackPolling, type FindNearestOptions, Jsx, JsxConfig, Lib, Module, ModuleDetection, ModuleResolution, NewLine, PortableTsconfig, type PortableTsconfigOptions, type ProgrammaticCompilerOptions, type ProgrammaticCompilerOptionsValue, Reference, ResolvedTsconfig, type SyncFileSystem, type SyncPath, Target, TsEnumCodec, TsconfigDiscovery, TsconfigExtendsError, TsconfigJson, TsconfigJsonFromString, TsconfigLoader, TsconfigLoaderSync, type TsconfigLoaderSyncOptions, TsconfigParseError, TypeAcquisition, WatchDirectory, WatchFile, WatchOptions };
|
|
1268
1303
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/tsconfig-json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Composable tsconfig.json handling for Effect: schemas, extends-chain resolution, and config discovery.",
|
|
6
6
|
"keywords": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"./package.json": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@effected/jsonc": "
|
|
43
|
-
"@effected/walker": "
|
|
42
|
+
"@effected/jsonc": "^0.5.2",
|
|
43
|
+
"@effected/walker": "^0.3.4",
|
|
44
44
|
"effect": "4.0.0-beta.101"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|