Skip to content

Commit

Permalink
feat(circle-packing): enable TS support
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc authored and wyze committed Apr 26, 2021
1 parent 09b0206 commit e75f1c8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/circle-packing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
],
"main": "./dist/nivo-circle-packing.cjs.js",
"module": "./dist/nivo-circle-packing.es.js",
"typings": "./dist/types/index.d.ts",
"files": [
"README.md",
"LICENSE.md",
"dist/"
"dist/",
"!dist/tsconfig.tsbuildinfo"
],
"dependencies": {
"@nivo/colors": "0.68.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/circle-packing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.types.json",
"compilerOptions": {
"outDir": "./dist/types",
"rootDir": "./src"
},
"include": ["src/**/*"]
}
3 changes: 2 additions & 1 deletion tsconfig.monorepo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

// Charts now
{ "path": "./packages/bullet" },
{ "path": "./packages/circle-packing" },
{ "path": "./packages/marimekko" },
{ "path": "./packages/pie" },
{ "path": "./packages/sunburst" },
{ "path": "./packages/sunburst" }
]
}

0 comments on commit e75f1c8

Please sign in to comment.