Skip to content

Commit

Permalink
fix: build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Nov 9, 2022
1 parent 3f32cfa commit 95b1ba8
Show file tree
Hide file tree
Showing 5 changed files with 1,331 additions and 973 deletions.
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
"dependencies": {
"@textea/json-viewer": "workspace:^",
"gray-matter": "^4.0.3",
"next": "^12.3.1",
"nextra": "^2.0.0-beta.29",
"nextra-theme-docs": "^2.0.0-beta.29",
"next": "^13.0.2",
"nextra": "^2.0.0-beta.41",
"nextra-theme-docs": "^2.0.0-beta.41",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@textea/dev-kit": "^0.13.8",
"@types/node": "^18.8.3",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"next-transpile-modules": "^9.1.0",
"@textea/dev-kit": "^0.14.2",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"next-transpile-modules": "^10.0.0",
"typescript": "^4.8.4"
}
}
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@
"build": "rollup -c rollup.config.ts --configPlugin swc3"
},
"dependencies": {
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.6",
"@mui/material": "^5.10.8",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "^5.10.9",
"@mui/material": "^5.10.13",
"copy-to-clipboard": "^3.3.2",
"group-items": "^2.2.0",
"zustand": "^4.1.2"
"zustand": "^4.1.4"
},
"lint-staged": {
"!*.{ts,tsx,js,jsx}": "prettier --write --ignore-unknown",
Expand All @@ -76,36 +76,36 @@
"react-dom": "^17 || ^18"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-angular": "^17.1.0",
"@rollup/plugin-alias": "^4.0.0",
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-replace": "^5.0.0",
"@swc/core": "^1.3.6",
"@commitlint/cli": "^17.2.0",
"@commitlint/config-angular": "^17.2.0",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1",
"@swc/core": "^1.3.14",
"@testing-library/react": "^13.4.0",
"@textea/dev-kit": "^0.13.8",
"@types/node": "^18.8.3",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/web": "^0.0.75",
"@vitejs/plugin-react": "^2.1.0",
"@vitest/coverage-c8": "^0.23.4",
"@vitest/ui": "^0.24.1",
"expect-type": "^0.14.2",
"husky": "^8.0.1",
"jsdom": "^20.0.1",
"@textea/dev-kit": "^0.14.2",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/web": "^0.0.79",
"@vitejs/plugin-react": "^2.2.0",
"@vitest/coverage-c8": "^0.25.1",
"@vitest/ui": "^0.25.1",
"expect-type": "^0.15.0",
"husky": "^8.0.2",
"jsdom": "^20.0.2",
"lint-staged": "^13.0.3",
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^2.79.1",
"rollup-plugin-dts": "^4.2.3",
"rollup-plugin-swc3": "^0.6.0",
"rollup": "^3.2.5",
"rollup-plugin-dts": "^5.0.0",
"rollup-plugin-swc3": "^0.7.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"vitest": "^0.24.1"
"vitest": "^0.25.1"
},
"packageManager": "yarn@3.2.4",
"workspaces": [
Expand Down
9 changes: 7 additions & 2 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import type {
} from 'rollup'
import dts from 'rollup-plugin-dts'
import { defineRollupSwcOption, swc } from 'rollup-plugin-swc3'
import { fileURLToPath } from 'url'

let cache: RollupCache

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

const outputDir = resolve(__dirname, 'dist')
const outputDir = fileURLToPath(new URL('dist', import.meta.url))

const external = [
'@emotion/react',
Expand All @@ -30,9 +31,13 @@ const external = [
'@mui/material/styles',
'copy-to-clipboard',
'zustand',
'zustand/context',
'zustand/middleware',
'group-items',
'react',
'react/jsx-runtime',
'react-dom'
'react-dom',
'react-dom/client'
]
const outputMatrix = (
name: string, format: ModuleFormat[]): OutputOptions[] => {
Expand Down
Loading

0 comments on commit 95b1ba8

Please sign in to comment.