@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
31 lines • 1.01 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createProject = createProject;
const ts_morph_1 = require("ts-morph");
/**
* Creates typescript project
* @param {ProjectOptions} options - Projects option to override
* @returns {Project} - The project
*/
function createProject(options) {
return new ts_morph_1.Project({
...options,
compilerOptions: {
module: ts_morph_1.ModuleKind.CommonJS,
sourceMap: false,
incremental: true,
declaration: false,
skipLibCheck: true,
moduleResolution: ts_morph_1.ModuleResolutionKind.NodeNext,
isolatedModules: true,
skipDefaultLibCheck: true,
noEmit: true,
types: [''],
...options?.compilerOptions,
},
skipAddingFilesFromTsConfig: true,
skipFileDependencyResolution: false,
skipLoadingLibFiles: false,
});
}
//# sourceMappingURL=create-project.js.map