@microsoft/api-extractor
Version:
Validate, document, and review the exported API for a TypeScript library
34 lines (32 loc) • 1.03 kB
JavaScript
;
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
// NOTE: THIS SOURCE FILE IS FOR DEBUGGING PURPOSES ONLY.
// IT IS INVOKED BY THE "Run.cmd" AND "Debug.cmd" BATCH FILES.
const Extractor_1 = require("./extractor/Extractor");
const extractor = new Extractor_1.Extractor({
compiler: {
configType: 'tsconfig',
rootFolder: '.'
},
project: {
entryPointSourceFile: 'src/index.ts',
externalJsonFileFolders: ['./testInputs/external-api-json']
},
apiReviewFile: {
enabled: true,
apiReviewFolder: __dirname
},
apiJsonFile: {
enabled: true
}
});
if (!extractor.processProject()) {
console.log('processProject() failed the build');
}
else {
console.log('processProject() succeeded');
}
console.log('DebugRun completed.');
//# sourceMappingURL=DebugRun.js.map