Skip to content

Commit 20cda3f

Browse files
authored
docs(packages): add api-extractor to public packages (#4747)
* docs(packages): add api-extractor to public packages * docs(abort-controller): add api-extractor to abort-controller
1 parent 1982984 commit 20cda3f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+145
-9
lines changed

.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
// Uses the recommended rules from the @typescript-eslint/eslint-plugin
99
"plugin:@typescript-eslint/recommended",
1010
],
11-
plugins: ["@typescript-eslint", "simple-import-sort", "eslint-plugin-sort-export-all"],
11+
plugins: ["@typescript-eslint", "simple-import-sort", "eslint-plugin-sort-export-all", "eslint-plugin-tsdoc"],
1212
rules: {
1313
/** Turn off strict enforcement */
1414
"@typescript-eslint/ban-types": "off",
@@ -23,6 +23,7 @@ module.exports = {
2323

2424
/** Warnings */
2525
"@typescript-eslint/no-namespace": "warn",
26+
"tsdoc/syntax": "warn",
2627

2728
/** Errors */
2829
"simple-import-sort/imports": "error",

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ benchmark/size/raw
6565

6666
etc/
6767
temp/
68+
temp-packages/
69+
temp-lib/
6870

6971
# Gradle composite build properties
7072
codegen/local.properties

api-extractor.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@
6060
* This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been
6161
* local files for library1.
6262
*/
63-
"bundledPackages": [
64-
// "@aws-sdk/types", "@aws-sdk/util-waiter", "@aws-sdk/smithy-client"
65-
],
63+
// "bundledPackages": ["@aws-sdk/types", "@aws-sdk/util-waiter", "@aws-sdk/smithy-client", "@aws-smithy/types"],
6664

6765
/**
6866
* Specifies what type of newlines API Extractor should use when writing output files. By default, the output files
@@ -178,7 +176,7 @@
178176
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
179177
* DEFAULT VALUE: "<projectFolder>/temp/"
180178
*/
181-
"reportTempFolder": "./temp/"
179+
"reportTempFolder": "./temp/",
182180

183181
/**
184182
* Whether "forgotten exports" should be included in the API report file. Forgotten exports are declarations
@@ -187,7 +185,7 @@
187185
*
188186
* DEFAULT VALUE: "false"
189187
*/
190-
// "includeForgottenExports": false
188+
"includeForgottenExports": true
191189
},
192190

193191
/**
@@ -217,7 +215,7 @@
217215
*
218216
* DEFAULT VALUE: "false"
219217
*/
220-
// "includeForgottenExports": false,
218+
// "includeForgottenExports": true
221219

222220
/**
223221
* The base URL where the project's source code can be viewed on a website such as GitHub or
@@ -243,7 +241,7 @@
243241
/**
244242
* (REQUIRED) Whether to generate the .d.ts rollup file.
245243
*/
246-
"enabled": true
244+
"enabled": false,
247245

248246
/**
249247
* Specifies the output path for a .d.ts rollup file to be generated without any trimming.
@@ -257,7 +255,7 @@
257255
* SUPPORTED TOKENS: <projectFolder>, <packageName>, <unscopedPackageName>
258256
* DEFAULT VALUE: "<projectFolder>/dist/<unscopedPackageName>.d.ts"
259257
*/
260-
// "untrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts",
258+
"untrimmedFilePath": "./dist/<unscopedPackageName>.d.ts"
261259

262260
/**
263261
* Specifies the output path for a .d.ts rollup file to be generated with trimming for an "alpha" release.

api-extractor.packages.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./api-extractor.json",
3+
"docModel": {
4+
"apiJsonFilePath": "./temp-packages/<unscopedPackageName>.api.json"
5+
},
6+
"apiReport": {
7+
"reportFolder": "./temp-packages/",
8+
"reportTempFolder": "./temp-packages/"
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/abort-controller/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:types": "tsc -p tsconfig.types.json",
1414
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1515
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16+
"extract:docs": "api-extractor run --local",
1617
"test": "jest"
1718
},
1819
"author": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/cloudfront-signer/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/credential-providers/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"build:types": "tsc -p tsconfig.types.json",
1616
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1717
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
18+
"extract:docs": "api-extractor run --local",
1819
"test": "jest"
1920
},
2021
"keywords": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/fetch-http-handler/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:types": "tsc -p tsconfig.types.json",
1111
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1212
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13+
"extract:docs": "api-extractor run --local",
1314
"test": "jest --coverage && karma start karma.conf.js"
1415
},
1516
"author": {

packages/hash-node/api-extractor.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/hash-node/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/middleware-bucket-endpoint/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/middleware-endpoint/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest --passWithNoTests",
1314
"test:integration": "jest -c jest.config.integ.js"
1415
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/middleware-retry/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest",
1314
"test:integration": "jest -c jest.config.integ.js"
1415
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/middleware-stack/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:types": "tsc -p tsconfig.types.json",
1111
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1212
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13+
"extract:docs": "api-extractor run --local",
1314
"test": "jest",
1415
"test:integration": "jest -c jest.config.integ.js --passWithNoTests"
1516
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/node-http-handler/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build:types": "tsc -p tsconfig.types.json",
1111
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1212
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13+
"extract:docs": "api-extractor run --local",
1314
"test": "jest --coverage"
1415
},
1516
"author": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/polly-request-presigner/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/rds-signer/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:types": "tsc -p tsconfig.types.json",
1414
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1515
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16+
"extract:docs": "api-extractor run --local",
1617
"test": "jest"
1718
},
1819
"engines": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/s3-presigned-post/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest",
1314
"test:e2e": "jest -c jest.config.e2e.js"
1415
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/s3-request-presigner/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/shared-ini-file-loader/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"build:types": "tsc -p tsconfig.types.json",
2323
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
2424
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
25+
"extract:docs": "api-extractor run --local",
2526
"test": "jest"
2627
},
2728
"author": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/signature-v4-crt/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:types": "tsc -p tsconfig.types.json",
1414
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1515
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16+
"extract:docs": "api-extractor run --local",
1617
"test": "jest --coverage"
1718
},
1819
"author": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/signature-v4-multi-region/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/signature-v4/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:types": "tsc -p tsconfig.types.json",
1414
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1515
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16+
"extract:docs": "api-extractor run --local",
1617
"test": "jest --coverage"
1718
},
1819
"author": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/smithy-client/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest --passWithNoTests"
1314
},
1415
"main": "./dist-cjs/index.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/token-providers/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:types": "tsc -p tsconfig.types.json",
1414
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1515
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16+
"extract:docs": "api-extractor run --local",
1617
"test": "jest"
1718
},
1819
"keywords": [

packages/types/api-extractor.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/types/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:types": "tsc -p tsconfig.types.json",
1414
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1515
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
16+
"extract:docs": "api-extractor run --local",
1617
"test": "tsc -p tsconfig.test.json"
1718
},
1819
"author": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/util-create-request/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

packages/util-dynamodb/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build:types": "tsc -p tsconfig.types.json",
1010
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1111
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
12+
"extract:docs": "api-extractor run --local",
1213
"test": "jest"
1314
},
1415
"main": "./dist-cjs/index.js",
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../../api-extractor.packages.json",
3+
"mainEntryPointFilePath": "./dist-types/index.d.ts"
4+
}

0 commit comments

Comments
 (0)