Skip to content

Commit

Permalink
chore(types): enable types files and typedoc generation
Browse files Browse the repository at this point in the history
it was disabled in ed49071

Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Oct 15, 2024
1 parent af30e7c commit fdbe8de
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@alterjs/saber/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"prepublishOnly": "yarn build",
"build": "rimraf dist && tsc",
"lint": "eslint src",
"build:typedoc": "typedoc types/index.d.ts --out ../../website/public/typedoc --readme none --exclude \"**/src/**\" --theme minimal --mode file --includeDeclarations --excludeExternals --excludePrivate --excludeProtected"
"build:typedoc": "typedoc"
},
"bin": {
"saber": "bin/saber.js"
Expand Down
3 changes: 2 additions & 1 deletion packages/@alterjs/saber/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"outDir": "dist",
"lib": ["ES2020", "DOM"],
"module": "CommonJS",
"declaration": false
"declaration": true,
"declarationDir": "types",
},
"exclude": ["**/**.test.js"]
}
9 changes: 9 additions & 0 deletions packages/@alterjs/saber/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": ["./src/index.ts"],
"out": "../../../website/public/typedoc",
"readme": "none",
"excludeExternals": true,
"excludePrivate": true,
"excludeProtected": true,
}

0 comments on commit fdbe8de

Please sign in to comment.