Skip to content

Commit

Permalink
Merge pull request #116 from jeremymeng/add-api-extractor
Browse files Browse the repository at this point in the history
Add api-extractor to help reviewing API changes
  • Loading branch information
jeremymeng authored Oct 3, 2024
2 parents 867e5fc + 66c9ad1 commit 1547bfe
Show file tree
Hide file tree
Showing 4 changed files with 623 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ typings/
dist/
output/
out/
temp/
typedoc

# package lock file
Expand Down
30 changes: 30 additions & 0 deletions api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "typings/lib/index.d.ts",
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"publicTrimmedFilePath": "./typings/rhea-promise.d.ts",
},
"messages": {
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
],
"devDependencies": {
"@azure/abort-controller": "^1.0.1",
"@microsoft/api-extractor": "^7.47.9",
"@types/chai": "^4.3.7",
"@types/debug": "^4.0.0",
"@types/mocha": "^10.0.0",
Expand All @@ -46,7 +47,8 @@
"lint": "eslint .",
"tsc": "tsc",
"prebuild": "rimraf dist && rimraf typings",
"build": "npm run lint && npm run tsc",
"build": "npm run lint && npm run tsc && npm run extract-api",
"extract-api": "api-extractor run --local",
"test": "npm run build && mocha -r ts-node/register ./test/*.spec.ts",
"prepack": "npm i && npm run build"
},
Expand Down
Loading

0 comments on commit 1547bfe

Please sign in to comment.