Skip to content

Commit 95b1ba8

Browse files
committed
fix: build issues
1 parent 3f32cfa commit 95b1ba8

File tree

5 files changed

+1331
-973
lines changed

5 files changed

+1331
-973
lines changed

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

docs/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
"dependencies": {
1010
"@textea/json-viewer": "workspace:^",
1111
"gray-matter": "^4.0.3",
12-
"next": "^12.3.1",
13-
"nextra": "^2.0.0-beta.29",
14-
"nextra-theme-docs": "^2.0.0-beta.29",
12+
"next": "^13.0.2",
13+
"nextra": "^2.0.0-beta.41",
14+
"nextra-theme-docs": "^2.0.0-beta.41",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0"
1717
},
1818
"devDependencies": {
19-
"@textea/dev-kit": "^0.13.8",
20-
"@types/node": "^18.8.3",
21-
"@types/react": "^18.0.21",
22-
"@types/react-dom": "^18.0.6",
23-
"next-transpile-modules": "^9.1.0",
19+
"@textea/dev-kit": "^0.14.2",
20+
"@types/node": "^18.11.9",
21+
"@types/react": "^18.0.25",
22+
"@types/react-dom": "^18.0.8",
23+
"next-transpile-modules": "^10.0.0",
2424
"typescript": "^4.8.4"
2525
}
2626
}

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
"build": "rollup -c rollup.config.ts --configPlugin swc3"
6060
},
6161
"dependencies": {
62-
"@emotion/react": "^11.10.4",
63-
"@emotion/styled": "^11.10.4",
64-
"@mui/icons-material": "^5.10.6",
65-
"@mui/material": "^5.10.8",
62+
"@emotion/react": "^11.10.5",
63+
"@emotion/styled": "^11.10.5",
64+
"@mui/icons-material": "^5.10.9",
65+
"@mui/material": "^5.10.13",
6666
"copy-to-clipboard": "^3.3.2",
6767
"group-items": "^2.2.0",
68-
"zustand": "^4.1.2"
68+
"zustand": "^4.1.4"
6969
},
7070
"lint-staged": {
7171
"!*.{ts,tsx,js,jsx}": "prettier --write --ignore-unknown",
@@ -76,36 +76,36 @@
7676
"react-dom": "^17 || ^18"
7777
},
7878
"devDependencies": {
79-
"@commitlint/cli": "^17.1.2",
80-
"@commitlint/config-angular": "^17.1.0",
81-
"@rollup/plugin-alias": "^4.0.0",
82-
"@rollup/plugin-commonjs": "^23.0.0",
83-
"@rollup/plugin-node-resolve": "^15.0.0",
84-
"@rollup/plugin-replace": "^5.0.0",
85-
"@swc/core": "^1.3.6",
79+
"@commitlint/cli": "^17.2.0",
80+
"@commitlint/config-angular": "^17.2.0",
81+
"@rollup/plugin-alias": "^4.0.2",
82+
"@rollup/plugin-commonjs": "^23.0.2",
83+
"@rollup/plugin-node-resolve": "^15.0.1",
84+
"@rollup/plugin-replace": "^5.0.1",
85+
"@swc/core": "^1.3.14",
8686
"@testing-library/react": "^13.4.0",
87-
"@textea/dev-kit": "^0.13.8",
88-
"@types/node": "^18.8.3",
89-
"@types/react": "^18.0.21",
90-
"@types/react-dom": "^18.0.6",
91-
"@types/web": "^0.0.75",
92-
"@vitejs/plugin-react": "^2.1.0",
93-
"@vitest/coverage-c8": "^0.23.4",
94-
"@vitest/ui": "^0.24.1",
95-
"expect-type": "^0.14.2",
96-
"husky": "^8.0.1",
97-
"jsdom": "^20.0.1",
87+
"@textea/dev-kit": "^0.14.2",
88+
"@types/node": "^18.11.9",
89+
"@types/react": "^18.0.25",
90+
"@types/react-dom": "^18.0.8",
91+
"@types/web": "^0.0.79",
92+
"@vitejs/plugin-react": "^2.2.0",
93+
"@vitest/coverage-c8": "^0.25.1",
94+
"@vitest/ui": "^0.25.1",
95+
"expect-type": "^0.15.0",
96+
"husky": "^8.0.2",
97+
"jsdom": "^20.0.2",
9898
"lint-staged": "^13.0.3",
9999
"pinst": "^3.0.0",
100100
"prettier": "^2.7.1",
101101
"react": "^18.2.0",
102102
"react-dom": "^18.2.0",
103-
"rollup": "^2.79.1",
104-
"rollup-plugin-dts": "^4.2.3",
105-
"rollup-plugin-swc3": "^0.6.0",
103+
"rollup": "^3.2.5",
104+
"rollup-plugin-dts": "^5.0.0",
105+
"rollup-plugin-swc3": "^0.7.0",
106106
"ts-node": "^10.9.1",
107107
"typescript": "^4.8.4",
108-
"vitest": "^0.24.1"
108+
"vitest": "^0.25.1"
109109
},
110110
"packageManager": "[email protected]",
111111
"workspaces": [

rollup.config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ import type {
1313
} from 'rollup'
1414
import dts from 'rollup-plugin-dts'
1515
import { defineRollupSwcOption, swc } from 'rollup-plugin-swc3'
16+
import { fileURLToPath } from 'url'
1617

1718
let cache: RollupCache
1819

1920
const dtsOutput = new Set<[string, string]>()
2021

21-
const outputDir = resolve(__dirname, 'dist')
22+
const outputDir = fileURLToPath(new URL('dist', import.meta.url))
2223

2324
const external = [
2425
'@emotion/react',
@@ -30,9 +31,13 @@ const external = [
3031
'@mui/material/styles',
3132
'copy-to-clipboard',
3233
'zustand',
34+
'zustand/context',
35+
'zustand/middleware',
36+
'group-items',
3337
'react',
3438
'react/jsx-runtime',
35-
'react-dom'
39+
'react-dom',
40+
'react-dom/client'
3641
]
3742
const outputMatrix = (
3843
name: string, format: ModuleFormat[]): OutputOptions[] => {

0 commit comments

Comments
 (0)