Skip to content

Commit c0b3635

Browse files
ploucwyze
authored andcommitted
feat(annotations): init TypeScript setup
1 parent a7f56ed commit c0b3635

File tree

5 files changed

+12
-53
lines changed

5 files changed

+12
-53
lines changed

packages/annotations/index.d.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

packages/annotations/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
],
2121
"main": "./dist/nivo-annotations.cjs.js",
2222
"module": "./dist/nivo-annotations.es.js",
23+
"typings": "./dist/types/index.d.ts",
2324
"files": [
2425
"README.md",
2526
"LICENSE.md",
26-
"index.d.ts",
27-
"dist/"
27+
"dist/",
28+
"!dist/tsconfig.tsbuildinfo"
2829
],
2930
"dependencies": {
3031
"@nivo/colors": "0.70.1",
@@ -36,7 +37,6 @@
3637
},
3738
"peerDependencies": {
3839
"@nivo/core": "0.70.1",
39-
"prop-types": ">= 15.5.10 < 16.0.0",
4040
"react": ">= 16.8.4 < 18.0.0"
4141
},
4242
"publishConfig": {
File renamed without changes.

packages/annotations/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../../tsconfig.types.json",
3+
"compilerOptions": {
4+
"outDir": "./dist/types",
5+
"rootDir": "./src"
6+
},
7+
"include": ["src/**/*"]
8+
}

tsconfig.monorepo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// { "path": "./packages/core" },
66

77
// Shared next because charts need them
8+
{ "path": "./packages/annotations" },
89
{ "path": "./packages/axes" },
910
{ "path": "./packages/colors" },
1011
{ "path": "./packages/legends" },

0 commit comments

Comments
 (0)