Skip to content

Commit

Permalink
add exports field
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Aug 28, 2024
1 parent 49cb899 commit bb937d2
Show file tree
Hide file tree
Showing 41 changed files with 327 additions and 41 deletions.
9 changes: 8 additions & 1 deletion packages/annotations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"annotations"
],
"main": "./dist/nivo-annotations.cjs.js",
"module": "./dist/nivo-annotations.es.js",
"module": "./dist/nivo-annotations.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -38,5 +38,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-annotations.mjs",
"require": "./dist/nivo-annotations.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/arcs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"arcs"
],
"main": "./dist/nivo-arcs.cjs.js",
"module": "./dist/nivo-arcs.es.js",
"module": "./dist/nivo-arcs.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -39,5 +39,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-arcs.mjs",
"require": "./dist/nivo-arcs.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/axes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"axes"
],
"main": "./dist/nivo-axes.cjs.js",
"module": "./dist/nivo-axes.es.js",
"module": "./dist/nivo-axes.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -40,5 +40,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-axes.mjs",
"require": "./dist/nivo-axes.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bar-chart"
],
"main": "./dist/nivo-bar.cjs.js",
"module": "./dist/nivo-bar.es.js",
"module": "./dist/nivo-bar.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand Down Expand Up @@ -48,5 +48,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-bar.mjs",
"require": "./dist/nivo-bar.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/boxplot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"stats"
],
"main": "./dist/nivo-boxplot.cjs.js",
"module": "./dist/nivo-boxplot.es.js",
"module": "./dist/nivo-boxplot.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand Down Expand Up @@ -53,5 +53,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-boxplot.mjs",
"require": "./dist/nivo-boxplot.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/bullet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bullet-chart"
],
"main": "./dist/nivo-bullet.cjs.js",
"module": "./dist/nivo-bullet.es.js",
"module": "./dist/nivo-bullet.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -42,5 +42,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-bullet.mjs",
"require": "./dist/nivo-bullet.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/bump/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"area-bump-chart"
],
"main": "./dist/nivo-bump.cjs.js",
"module": "./dist/nivo-bump.es.js",
"module": "./dist/nivo-bump.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -48,5 +48,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-bump.mjs",
"require": "./dist/nivo-bump.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"calendar"
],
"main": "./dist/nivo-calendar.cjs.js",
"module": "./dist/nivo-calendar.es.js",
"module": "./dist/nivo-calendar.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -45,5 +45,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-calendar.mjs",
"require": "./dist/nivo-calendar.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"canvas"
],
"main": "./dist/nivo-canvas.cjs.js",
"module": "./dist/nivo-canvas.es.js",
"module": "./dist/nivo-canvas.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -29,5 +29,12 @@
],
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-canvas.mjs",
"require": "./dist/nivo-canvas.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/chord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"chord-diagram"
],
"main": "./dist/nivo-chord.cjs.js",
"module": "./dist/nivo-chord.es.js",
"module": "./dist/nivo-chord.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -45,5 +45,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-chord.mjs",
"require": "./dist/nivo-chord.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/circle-packing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"circle-packing"
],
"main": "./dist/nivo-circle-packing.cjs.js",
"module": "./dist/nivo-circle-packing.es.js",
"module": "./dist/nivo-circle-packing.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -42,5 +42,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-circle-packing.mjs",
"require": "./dist/nivo-circle-packing.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"directory": "packages/colors"
},
"main": "./dist/nivo-colors.cjs.js",
"module": "./dist/nivo-colors.es.js",
"module": "./dist/nivo-colors.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -37,5 +37,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-colors.mjs",
"require": "./dist/nivo-colors.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"directory": "packages/core"
},
"main": "./dist/nivo-core.cjs.js",
"module": "./dist/nivo-core.es.js",
"module": "./dist/nivo-core.mjs",
"types": "./index.d.ts",
"files": [
"README.md",
Expand Down Expand Up @@ -43,5 +43,12 @@
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/nivo/donate"
},
"exports": {
".": {
"types": "./index.d.ts",
"import": "./dist/nivo-core.mjs",
"require": "./dist/nivo-core.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"directory": "packages/express"
},
"main": "./dist/nivo-express.cjs.js",
"module": "./dist/nivo-express.es.js",
"module": "./dist/nivo-express.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -35,5 +35,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-express.mjs",
"require": "./dist/nivo-express.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/funnel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"funnel"
],
"main": "./dist/nivo-funnel.cjs.js",
"module": "./dist/nivo-funnel.es.js",
"module": "./dist/nivo-funnel.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -44,5 +44,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-funnel.mjs",
"require": "./dist/nivo-funnel.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"directory": "packages/generators"
},
"main": "./dist/nivo-generators.cjs.js",
"module": "./dist/nivo-generators.es.js",
"module": "./dist/nivo-generators.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -37,5 +37,12 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-generators.mjs",
"require": "./dist/nivo-generators.cjs.js"
}
}
}
8 changes: 7 additions & 1 deletion packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"map"
],
"main": "./dist/nivo-geo.cjs.js",
"module": "./dist/nivo-geo.es.js",
"module": "./dist/nivo-geo.mjs",
"files": [
"README.md",
"LICENSE.md",
Expand All @@ -43,5 +43,11 @@
},
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"import": "./dist/nivo-geo.mjs",
"require": "./dist/nivo-geo.cjs.js"
}
}
}
9 changes: 8 additions & 1 deletion packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"sideEffects": false,
"main": "./dist/nivo-grid.cjs.js",
"module": "./dist/nivo-grid.es.js",
"module": "./dist/nivo-grid.mjs",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
Expand All @@ -24,5 +24,12 @@
],
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/nivo-grid.mjs",
"require": "./dist/nivo-grid.cjs.js"
}
}
}
Loading

0 comments on commit bb937d2

Please sign in to comment.