Skip to content

Commit

Permalink
Merge pull request #104 from microsoft/dev/mjbvz/mkdir-p
Browse files Browse the repository at this point in the history
Make sure api-extractor output dir exists
  • Loading branch information
mjbvz authored Dec 1, 2022
2 parents 8052af3 + 8e7d07e commit 3de0a9b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
24 changes: 1 addition & 23 deletions api-extractor.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,29 +95,7 @@
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
* DEFAULT VALUE: "<projectFolder>/tsconfig.json"
*/
// "tsconfigFilePath": "<projectFolder>/tsconfig.json",
/**
* Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk.
* The object must conform to the TypeScript tsconfig schema:
*
* http://json.schemastore.org/tsconfig
*
* If omitted, then the tsconfig.json file will be read from the "projectFolder".
*
* DEFAULT VALUE: no overrideTsconfig section
*/
// "overrideTsconfig": {
// . . .
// }
/**
* This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended
* and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when
* dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses
* for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck.
*
* DEFAULT VALUE: false
*/
// "skipLibCheck": true,
"tsconfigFilePath": "tsconfig.lib.json"
},
/**
* Configures how the API report file (*.api.md) will be generated.
Expand Down
23 changes: 21 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
"@typescript-eslint/parser": "^5.30.5",
"eslint": "^8.19.0",
"markdown-it": "^13.0.1",
"mkdirp": "^1.0.4",
"mocha": "^10.0.0",
"typescript": "^4.7.4",
"vscode-languageserver": "^8.0.1"
},
"scripts": {
"api-extractor": "npx api-extractor run --local",
"api-extractor": "mkdirp etc && npx api-extractor run --local",
"compile": "tsc -b tsconfig.json",
"watch": "tsc -b tsconfig.json --watch",
"lint": "eslint \"src/**/*.ts\"",
Expand Down

0 comments on commit 3de0a9b

Please sign in to comment.