From 74621c0f0531dbc4715eb302ced69e5420dde3af Mon Sep 17 00:00:00 2001 From: plouc Date: Wed, 23 Dec 2020 20:32:10 +0900 Subject: [PATCH] feat(voronoi): init TypeScript setup --- packages/voronoi/package.json | 4 ++-- packages/voronoi/src/{index.js => index.ts} | 0 packages/voronoi/tsconfig.json | 8 ++++++++ tsconfig.monorepo.json | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) rename packages/voronoi/src/{index.js => index.ts} (100%) create mode 100644 packages/voronoi/tsconfig.json 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" },