Skip to content

Commit

Permalink
feat(annotations): init TypeScript setup
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc authored and wyze committed Jun 22, 2021
1 parent a7f56ed commit c0b3635
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 53 deletions.
50 changes: 0 additions & 50 deletions packages/annotations/index.d.ts

This file was deleted.

6 changes: 3 additions & 3 deletions packages/annotations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@
],
"main": "./dist/nivo-annotations.cjs.js",
"module": "./dist/nivo-annotations.es.js",
"typings": "./dist/types/index.d.ts",
"files": [
"README.md",
"LICENSE.md",
"index.d.ts",
"dist/"
"dist/",
"!dist/tsconfig.tsbuildinfo"
],
"dependencies": {
"@nivo/colors": "0.70.1",
Expand All @@ -36,7 +37,6 @@
},
"peerDependencies": {
"@nivo/core": "0.70.1",
"prop-types": ">= 15.5.10 < 16.0.0",
"react": ">= 16.8.4 < 18.0.0"
},
"publishConfig": {
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions packages/annotations/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/**/*"]
}
1 change: 1 addition & 0 deletions tsconfig.monorepo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// { "path": "./packages/core" },

// Shared next because charts need them
{ "path": "./packages/annotations" },
{ "path": "./packages/axes" },
{ "path": "./packages/colors" },
{ "path": "./packages/legends" },
Expand Down

0 comments on commit c0b3635

Please sign in to comment.