@microsoft/api-extractor
Version:
Validate, document, and review the exported API for a TypeScript library
64 lines • 2.27 kB
JavaScript
"use strict";
// 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 path = require("path");
const extractor = new Extractor_1.Extractor({
compiler: {
configType: 'tsconfig',
overrideTsconfig: {
'compilerOptions': {
'target': 'es6',
'forceConsistentCasingInFileNames': true,
'module': 'commonjs',
'declaration': true,
'sourceMap': true,
'experimentalDecorators': true,
'types': [
'node'
],
'lib': [
'es5',
'scripthost',
'es2015.collection',
'es2015.promise',
'es2015.iterable',
'dom'
],
'strictNullChecks': true
},
'include': ['lib/**/*.d.ts']
},
rootFolder: '../../libraries/node-core-library'
},
project: {
entryPointSourceFile: 'lib/index.d.ts',
externalJsonFileFolders: []
},
apiReviewFile: {
enabled: false,
apiReviewFolder: path.join(__dirname, 'debug')
},
apiJsonFile: {
enabled: true,
outputFolder: path.join(__dirname, 'debug')
},
dtsRollup: {
enabled: true,
publishFolderForInternal: path.join(__dirname, 'debug/internal'),
publishFolderForBeta: path.join(__dirname, 'debug/beta'),
publishFolderForPublic: path.join(__dirname, 'debug/public')
}
});
console.log('CONFIG:' + JSON.stringify(extractor.actualConfig, undefined, ' '));
if (!extractor.processProject()) {
console.log('processProject() failed the build');
}
else {
console.log('processProject() succeeded');
}
console.log('DebugRun completed.');
//# sourceMappingURL=DebugRun.js.map