Skip to content

Commit a84c306

Browse files
committed
integrate api extractor into auth-next
1 parent eb663f2 commit a84c306

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "../../config/api-extractor.json",
3+
// Point it to your entry point d.ts file.
4+
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts"
5+
}

packages-exp/auth-exp/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
1818
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
19-
"build": "rollup -c",
19+
"build": "rollup -c && yarn api-report",
2020
"build:deps": "lerna run --scope @firebase/auth-exp --include-dependencies build",
2121
"build:release": "rollup -c rollup.config.release.js",
2222
"dev": "rollup -c -w",
@@ -29,7 +29,11 @@
2929
"test:browser:debug": "karma start --auto-watch",
3030
"test:browser:unit:debug": "karma start --auto-watch --unit",
3131
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/!(platform_browser|platform_react_native)/**/*.test.ts' --file index.node.ts --config ../../config/mocharc.node.js",
32-
"prepare": "rollup -c rollup.config.release.js"
32+
"prepare": "rollup -c rollup.config.release.js",
33+
"api-report": "api-extractor run --local --verbose",
34+
"predoc": "node ../../scripts/exp/remove-exp.js temp",
35+
"doc": "api-documenter markdown --input temp --output docs",
36+
"build:doc": "yarn build && yarn doc"
3337
},
3438
"peerDependencies": {
3539
"@firebase/app-exp": "0.x",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../config/api-extractor.json",
3+
// Point it to your entry point d.ts file.
4+
"mainEntryPointFilePath": "<projectFolder>/dist/src/index.d.ts",
5+
"dtsRollup": {
6+
"enabled": true,
7+
"untrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts",
8+
"publicTrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>-public.d.ts"
9+
}
10+
}

packages-exp/auth-types-exp/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
77
"license": "Apache-2.0",
88
"scripts": {
9-
"test": "tsc"
9+
"test": "tsc",
10+
"api-report": "api-extractor run --local --verbose",
11+
"predoc": "node ../../scripts/exp/remove-exp.js temp",
12+
"doc": "api-documenter markdown --input temp --output docs",
13+
"build:doc": "yarn api-report && yarn doc"
1014
},
1115
"files": [
1216
"index.d.ts"

0 commit comments

Comments
 (0)