Skip to content

Commit 28099d4

Browse files
authored
Update dependencies and bundler config (#290)
1 parent 0b6987e commit 28099d4

File tree

5 files changed

+3008
-1845
lines changed

5 files changed

+3008
-1845
lines changed

config/typescript/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"strict": true,
1313
"forceConsistentCasingInFileNames": true,
1414
"module": "ESNext",
15-
"moduleResolution": "Node",
15+
"moduleResolution": "bundler",
1616
"resolveJsonModule": true,
1717
"isolatedModules": true,
1818
"noEmit": false,

config/typescript/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"composite": true,
44
"module": "ESNext",
5-
"moduleResolution": "Node",
5+
"moduleResolution": "bundler",
66
"allowSyntheticDefaultImports": true
77
},
88
"include": ["../vite/vite.component.config.ts"]

package.json

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@
1313
"module": "./dist/component/react.js",
1414
"exports": {
1515
".": {
16-
"types": "./dist/component/main.d.ts",
17-
"import": "./dist/component/react.js",
18-
"require": "./dist/component/react.umd.cjs"
16+
"import": {
17+
"types": "./dist/component/main.d.ts",
18+
"default": "./dist/component/react.js"
19+
},
20+
"require": {
21+
"types": "./dist/component/main.d.ts",
22+
"default": "./dist/component/react.umd.cjs"
23+
}
1924
}
2025
},
2126
"scripts": {
@@ -83,30 +88,30 @@
8388
"react-dom": ">= 18.2.0"
8489
},
8590
"devDependencies": {
86-
"@testing-library/jest-dom": "^6.1.2",
87-
"@testing-library/react": "^14.0.0",
88-
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
89-
"@types/node": "^20.5.7",
90-
"@types/p5": "^1.7.0",
91-
"@types/react": "^18.2.21",
92-
"@types/react-dom": "^18.2.7",
93-
"@typescript-eslint/eslint-plugin": "^6.5.0",
94-
"@vitejs/plugin-react": "^4.0.4",
95-
"@vitest/coverage-v8": "^0.34.3",
91+
"@testing-library/jest-dom": "^6.1.4",
92+
"@testing-library/react": "^14.1.2",
93+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
94+
"@types/node": "^20.9.4",
95+
"@types/p5": "^1.7.4",
96+
"@types/react": "^18.2.38",
97+
"@types/react-dom": "^18.2.17",
98+
"@typescript-eslint/eslint-plugin": "^6.12.0",
99+
"@vitejs/plugin-react": "^4.2.0",
100+
"@vitest/coverage-v8": "^0.34.6",
96101
"canvas": "^2.11.2",
97-
"eslint": "^8.48.0",
102+
"eslint": "^8.54.0",
98103
"eslint-plugin-react": "^7.33.2",
99104
"eslint-plugin-react-hooks": "^4.6.0",
100-
"gh-pages": "^6.0.0",
105+
"gh-pages": "^6.1.0",
101106
"jsdom": "^22.1.0",
102-
"prettier": "^3.0.2",
103-
"rimraf": "^5.0.1",
104-
"typescript": "^5.2.2",
105-
"vite": "^5.0.0",
106-
"vitest": "^0.34.3"
107+
"prettier": "^3.1.0",
108+
"rimraf": "^5.0.5",
109+
"typescript": "^5.3.2",
110+
"vite": "^4.5.0",
111+
"vitest": "^0.34.6"
107112
},
108113
"dependencies": {
109114
"microdiff": "^1.3.2",
110-
"p5": "^1.7.0"
115+
"p5": "^1.8.0"
111116
}
112117
}

0 commit comments

Comments
 (0)