Skip to content

Commit a3b3d68

Browse files
committed
Add api-extractor
1 parent a31b0ef commit a3b3d68

File tree

7 files changed

+1050
-101
lines changed

7 files changed

+1050
-101
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ scripts/eslint/built/
4141
scripts/debug.bat
4242
scripts/run.bat
4343
scripts/word2md.js
44+
scripts/apiExtractor.js
4445
scripts/buildProtocol.js
4546
scripts/ior.js
4647
scripts/configurePrerelease.js

package-lock.json

Lines changed: 559 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"!**/.gitattributes"
4040
],
4141
"devDependencies": {
42+
"@microsoft/api-extractor": "^7.30.0",
4243
"@octokit/rest": "latest",
4344
"@types/async": "latest",
4445
"@types/chai": "latest",

scripts/apiExtractor.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as path from "path";
2+
import {
3+
Extractor,
4+
ExtractorConfig,
5+
ExtractorResult
6+
} from "@microsoft/api-extractor";
7+
8+
const packageRoot = path.resolve(__dirname, "..");
9+
10+
// TODO(jakebailey): call api extractor for:
11+
// - src/typescript
12+
// - src/typescriptServices
13+
// - src/tsserverlibrary
14+
// Then in the output, replace const enum with "enum".
15+
// Also apply copyright header, as api-extractor won't.

0 commit comments

Comments
 (0)