Skip to content

Commit

Permalink
fix(docs): types is missing in bundle (#533)
Browse files Browse the repository at this point in the history
* Update package.json

* Update tsconfig.types.json

* chore: add changeset

Co-authored-by: Shu Ding <[email protected]>
  • Loading branch information
Dimitri POSTOLOV and shuding authored Jul 21, 2022
1 parent acf3a1f commit c380989
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-queens-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nextra-theme-docs": patch
---

fix(docs): types is missing in bundle
2 changes: 1 addition & 1 deletion packages/nextra-theme-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"types": "tsc -p tsconfig.types.json",
"dev:layout": "node scripts/dev.js",
"dev:tailwind": "cross-env TAILWIND_MODE=watch pnpm postcss src/styles.css -o style.css --watch",
"prepublishOnly": "rm -rf dist && pnpm build",
"prepublishOnly": "rm -rf dist && pnpm build && pnpm types",
"test": "vitest --run"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/nextra-theme-docs/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"jsx": "react",
"outDir": "dist"
},
"files": ["src/bleed.tsx", "src/callout.tsx", "src/types.ts"]
"files": ["src/bleed.tsx", "src/callout.tsx", "src/types.ts", "src/components/tabs.tsx"]
}

0 comments on commit c380989

Please sign in to comment.