Skip to content

Commit

Permalink
Merge pull request #1217 from Microsoft/octogonz/ae-relative-paths
Browse files Browse the repository at this point in the history
[api-extractor] Improve relativity of config paths in api-extractor.json
  • Loading branch information
octogonz authored Apr 11, 2019
2 parents 18b3485 + 68e0825 commit 6e2448b
Show file tree
Hide file tree
Showing 47 changed files with 558 additions and 254 deletions.
2 changes: 1 addition & 1 deletion apps/api-documenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@microsoft/api-extractor-model": "7.0.28",
"@microsoft/node-core-library": "3.13.0",
"@microsoft/ts-command-line": "4.2.3",
"@microsoft/tsdoc": "0.12.8",
"@microsoft/tsdoc": "0.12.9",
"colors": "~1.2.1",
"js-yaml": "~3.9.1"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/api-extractor-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@microsoft/node-core-library": "3.13.0",
"@microsoft/tsdoc": "0.12.8",
"@microsoft/tsdoc": "0.12.9",
"@types/node": "8.5.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/api-extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@microsoft/api-extractor-model": "7.0.28",
"@microsoft/node-core-library": "3.13.0",
"@microsoft/ts-command-line": "4.2.3",
"@microsoft/tsdoc": "0.12.8",
"@microsoft/tsdoc": "0.12.9",
"colors": "~1.2.1",
"lodash": "~4.17.5",
"resolve": "1.8.1",
Expand Down
4 changes: 2 additions & 2 deletions apps/api-extractor/src/api/CompilerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ export class CompilerState {
let tsconfig: {} | undefined = extractorConfig.overrideTsconfig;
if (!tsconfig) {
// If it wasn't overridden, then load it from disk
tsconfig = JsonFile.load(path.join(extractorConfig.rootFolder, 'tsconfig.json'));
tsconfig = JsonFile.load(path.join(extractorConfig.projectFolder, 'tsconfig.json'));
}

const commandLine: ts.ParsedCommandLine = ts.parseJsonConfigFileContent(
tsconfig,
ts.sys,
extractorConfig.rootFolder
extractorConfig.projectFolder
);

if (!commandLine.options.skipLibCheck && extractorConfig.skipLibCheck) {
Expand Down
Loading

0 comments on commit 6e2448b

Please sign in to comment.