Skip to content

Commit 82de2d9

Browse files
authored
fix: exports (#47)
1 parent 7ba87e7 commit 82de2d9

File tree

3 files changed

+44
-30
lines changed

3 files changed

+44
-30
lines changed

eslint.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
import { defineConfig } from 'eslint/config';
1+
import { defineConfig, globalIgnores } from 'eslint/config';
22
import react from 'eslint-config-zakodium/react';
33
import ts from 'eslint-config-zakodium/ts';
44
import storybook from 'eslint-plugin-storybook';
55

6-
export default defineConfig(react, ts, storybook.configs['flat/recommended']);
6+
export default defineConfig(
7+
globalIgnores(['lib', 'storybook-static']),
8+
react,
9+
ts,
10+
storybook.configs['flat/recommended'],
11+
);

package.json

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,64 @@
11
{
22
"name": "react-d3-utils",
33
"version": "3.1.1",
4+
"license": "MIT",
45
"description": "Low-level utilities to build charts with React and D3",
6+
"author": "Michael Zasso",
57
"type": "module",
6-
"exports": "./lib/index.js",
8+
"exports": {
9+
".": "./lib/index.js"
10+
},
711
"files": [
812
"lib",
913
"src"
1014
],
1115
"scripts": {
12-
"build": "npm run clean && npm run build-ts",
13-
"build-ts": "tsc -p tsconfig.build.json",
16+
"build": "npm run clean && npm run tsc",
1417
"build-storybook": "storybook build",
1518
"check-types": "tsc --noEmit",
1619
"clean": "rimraf lib",
1720
"dev": "storybook dev -p 6006",
18-
"eslint": "eslint src stories",
19-
"eslint-fix": "npm run eslint -- --fix",
21+
"eslint": "eslint .",
22+
"eslint-fix": "eslint . --fix",
2023
"prepack": "npm run build",
2124
"prettier": "prettier --check .",
2225
"prettier-write": "prettier --write .",
2326
"start": "npm run dev",
24-
"test": "npm run eslint && npm run prettier && npm run check-types"
27+
"test": "npm run check-types && npm run eslint && npm run prettier",
28+
"tsc": "npm run clean && npm run tsc-build",
29+
"tsc-build": "tsc -p tsconfig.build.json"
30+
},
31+
"dependencies": {
32+
"@types/d3-scale": "^4.0.9",
33+
"d3-scale": "^4.0.2"
34+
},
35+
"peerDependencies": {
36+
"react": ">=18"
37+
},
38+
"devDependencies": {
39+
"@storybook/addon-docs": "^9.1.2",
40+
"@storybook/addon-links": "^9.1.2",
41+
"@storybook/react-vite": "^9.1.2",
42+
"@types/react": "^19.1.10",
43+
"@zakodium/tsconfig": "^1.0.2",
44+
"eslint": "^9.33.0",
45+
"eslint-config-zakodium": "^16.0.0",
46+
"eslint-plugin-storybook": "^9.1.2",
47+
"prettier": "^3.6.2",
48+
"react": "^19.1.1",
49+
"react-dom": "^19.1.1",
50+
"rimraf": "^6.0.1",
51+
"storybook": "^9.1.2",
52+
"typescript": "^5.9.2"
2553
},
2654
"repository": {
2755
"type": "git",
2856
"url": "git+https://github.com/zakodium-oss/react-d3-utils.git"
2957
},
30-
"author": "Michael Zasso",
31-
"license": "MIT",
3258
"bugs": {
3359
"url": "https://github.com/zakodium-oss/react-d3-utils/issues"
3460
},
3561
"homepage": "https://github.com/zakodium-oss/react-d3-utils#readme",
36-
"devDependencies": {
37-
"@storybook/addon-docs": "^9.0.8",
38-
"@storybook/addon-links": "^9.0.8",
39-
"@storybook/react-vite": "^9.0.8",
40-
"@types/react": "^19.1.7",
41-
"@zakodium/tsconfig": "^1.0.1",
42-
"eslint": "^9.28.0",
43-
"eslint-config-zakodium": "^15.0.1",
44-
"eslint-plugin-storybook": "^9.0.8",
45-
"prettier": "^3.5.3",
46-
"react": "^19.1.0",
47-
"react-dom": "^19.1.0",
48-
"rimraf": "^6.0.1",
49-
"storybook": "^9.0.8",
50-
"typescript": "^5.8.3"
51-
},
52-
"dependencies": {
53-
"@types/d3-scale": "^4.0.9",
54-
"d3-scale": "^4.0.2"
55-
},
5662
"volta": {
5763
"node": "22.9.0"
5864
}

src/.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__tests__
2+
*.test.*
3+
.npmignore

0 commit comments

Comments
 (0)