Skip to content

Commit

Permalink
chore: update build
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Dec 2, 2023
1 parent 8a0925a commit e96125e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deno/bootstrap/ts_morph_bootstrap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RuntimeDirEntry, ts } from "../common/mod.ts";
* Holds the compiler options.
*/
export declare class CompilerOptionsContainer extends SettingsContainer<ts.CompilerOptions> {
constructor();
constructor(defaultSettings?: ts.CompilerOptions);
/**
* Sets one or all of the compiler options.
*
Expand Down
2 changes: 1 addition & 1 deletion deno/common/ts_morph_common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ export declare function getSyntaxKindName(kind: ts.SyntaxKind): string;
* Holds the compiler options.
*/
export declare class CompilerOptionsContainer extends SettingsContainer<ts.CompilerOptions> {
constructor();
constructor(defaultSettings?: ts.CompilerOptions);
/**
* Sets one or all of the compiler options.
*
Expand Down
4 changes: 2 additions & 2 deletions deno/common/ts_morph_common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion deno/ts_morph.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { errors, StandardizedFilePath, ts } from "./common/mod.ts";

/** Holds the compiler options. */
export declare class CompilerOptionsContainer extends SettingsContainer<ts.CompilerOptions> {
constructor();
constructor(defaultSettings?: ts.CompilerOptions);
/**
* Sets one or all of the compiler options.
*
Expand Down Expand Up @@ -721,6 +721,8 @@ export interface ProjectOptions {
compilerOptions?: CompilerOptions;
/** File path to the tsconfig.json file. */
tsConfigFilePath?: string;
/** Can be overriden by `tsConfigFilePath` or `compilerOptions`. */
defaultCompilerOptions?: CompilerOptions;
/**
* Whether to skip adding the source files from the specified tsconfig.json.
* @default false
Expand Down
2 changes: 1 addition & 1 deletion deno/ts_morph.js
Original file line number Diff line number Diff line change
Expand Up @@ -20271,7 +20271,7 @@ class Project {
? undefined
: new TsConfigResolver(fileSystemWrapper, fileSystemWrapper.getStandardizedAbsolutePath(options.tsConfigFilePath), getEncoding());
const compilerOptions = getCompilerOptions();
const compilerOptionsContainer = new CompilerOptionsContainer();
const compilerOptionsContainer = new CompilerOptionsContainer(options.defaultCompilerOptions);
compilerOptionsContainer.set(compilerOptions);
this._context = new ProjectContext({
project: this,
Expand Down
2 changes: 1 addition & 1 deletion packages/bootstrap/lib/ts-morph-bootstrap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { RuntimeDirEntry, ts } from "@ts-morph/common";
* Holds the compiler options.
*/
export declare class CompilerOptionsContainer extends SettingsContainer<ts.CompilerOptions> {
constructor();
constructor(defaultSettings?: ts.CompilerOptions);
/**
* Sets one or all of the compiler options.
*
Expand Down
2 changes: 1 addition & 1 deletion packages/common/lib/ts-morph-common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ export declare function getSyntaxKindName(kind: ts.SyntaxKind): string;
* Holds the compiler options.
*/
export declare class CompilerOptionsContainer extends SettingsContainer<ts.CompilerOptions> {
constructor();
constructor(defaultSettings?: ts.CompilerOptions);
/**
* Sets one or all of the compiler options.
*
Expand Down
4 changes: 3 additions & 1 deletion packages/ts-morph/lib/ts-morph.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { errors, StandardizedFilePath, ts } from "@ts-morph/common";

/** Holds the compiler options. */
export declare class CompilerOptionsContainer extends SettingsContainer<ts.CompilerOptions> {
constructor();
constructor(defaultSettings?: ts.CompilerOptions);
/**
* Sets one or all of the compiler options.
*
Expand Down Expand Up @@ -721,6 +721,8 @@ export interface ProjectOptions {
compilerOptions?: CompilerOptions;
/** File path to the tsconfig.json file. */
tsConfigFilePath?: string;
/** Can be overriden by `tsConfigFilePath` or `compilerOptions`. */
defaultCompilerOptions?: CompilerOptions;
/**
* Whether to skip adding the source files from the specified tsconfig.json.
* @default false
Expand Down

0 comments on commit e96125e

Please sign in to comment.