diff --git a/packages/voronoi/package.json b/packages/voronoi/package.json index 9137319a7..db0f52c8f 100644 --- a/packages/voronoi/package.json +++ b/packages/voronoi/package.json @@ -21,12 +21,12 @@ ], "main": "./dist/nivo-voronoi.cjs.js", "module": "./dist/nivo-voronoi.es.js", - "typings": "./index.d.ts", + "typings": "./dist/types/index.d.ts", "files": [ "README.md", "LICENSE.md", "dist/", - "index.d.ts" + "!dist/tsconfig.tsbuildinfo" ], "dependencies": { "d3-delaunay": "^5.1.1", diff --git a/packages/voronoi/src/index.js b/packages/voronoi/src/index.ts similarity index 100% rename from packages/voronoi/src/index.js rename to packages/voronoi/src/index.ts diff --git a/packages/voronoi/tsconfig.json b/packages/voronoi/tsconfig.json new file mode 100644 index 000000000..855b4b2b7 --- /dev/null +++ b/packages/voronoi/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../../tsconfig.types.json", + "compilerOptions": { + "outDir": "./dist/types", + "rootDir": "./src" + }, + "include": ["src/**/*"] +} diff --git a/tsconfig.monorepo.json b/tsconfig.monorepo.json index b16cd40e0..218f7eca3 100644 --- a/tsconfig.monorepo.json +++ b/tsconfig.monorepo.json @@ -17,6 +17,7 @@ { "path": "./packages/recompose" }, // Charts now + { "path": "./packages/voronoi" }, { "path": "./packages/bullet" }, { "path": "./packages/circle-packing" }, { "path": "./packages/marimekko" },