forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDebugRun.ts
More file actions
68 lines (62 loc) · 1.9 KB
/
DebugRun.ts
File metadata and controls
68 lines (62 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
// NOTE: THIS SOURCE FILE IS FOR DEBUGGING PURPOSES ONLY.
// IT IS INVOKED BY THE 'Run.cmd' AND 'Debug.cmd' BATCH FILES.
import { Extractor } from './extractor/Extractor';
import * as path from 'path';
const extractor: Extractor = new 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.');