Skip to content

Commit 846d3da

Browse files
committed
fix storybook build
1 parent f94eb15 commit 846d3da

File tree

16 files changed

+10332
-14864
lines changed

16 files changed

+10332
-14864
lines changed

explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
"devDependencies": {
7070
"@babel/core": "^7.15.0",
71-
"@nymproject/eslint-config-react-typescript": "^1.0.0",
71+
"@nymproject/eslint-config-react-typescript": "workspace:^1.0.0",
7272
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
7373
"@storybook/addon-actions": "^6.5.8",
7474
"@storybook/addon-essentials": "^6.5.8",

nym-browser-extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"zod": "^3.21.4"
3737
},
3838
"devDependencies": {
39-
"@nymproject/eslint-config-react-typescript": "^1.0.0",
39+
"@nymproject/eslint-config-react-typescript": "workspace:^1.0.0",
4040
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
4141
"@svgr/webpack": "^6.1.1",
4242
"@testing-library/jest-dom": "^5.14.1",

nym-wallet/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@nymproject/node-tester": "1.2.4-rc.1",
3333
"@nymproject/react": "workspace:^1.0.0",
3434
"@nymproject/types": "workspace:^1.0.0",
35+
"@nymproject/webpack": "workspace:^1.0.0",
3536
"@storybook/react": "^6.5.15",
3637
"@tauri-apps/api": "^1.2.0",
3738
"@tauri-apps/tauri-forage": "^1.0.0-beta.2",

nym-wallet/src/stories/Playground.stories.tsx

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"build:packages": "run-s build:packages:theme build:packages:react",
1313
"build:packages:theme": "pnpm run --filter @nymproject/mui-theme build",
1414
"build:packages:react": "pnpm run --filter @nymproject/react build",
15-
"build:react-example": "pnpm run --filter --stream @nymproject/react-webpack-with-theme-example build ",
16-
"build:playground": "pnpm run --filter --stream @nymproject/react storybook:build",
15+
"build:react-example": "pnpm run --filter @nymproject/react-webpack-with-theme-example --stream build ",
16+
"build:playground": "pnpm run --filter @nymproject/react --stream storybook:build",
1717
"build:ci:storybook": "pnpm run build && pnpm run dev:on && run-p build:react-example build:playground && pnpm build:ci:storybook:collect-artifacts",
1818
"build:ci:storybook:collect-artifacts": "mkdir -p ts-packages/dist && mv sdk/typescript/packages/react-components/storybook-static ts-packages/dist/storybook && mv sdk/typescript/examples/react/mui-theme/dist ts-packages/dist/example",
1919
"prebuild:ci": "pnpm run dev:on",

pnpm-lock.yaml

Lines changed: 10298 additions & 327 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
packages:
2+
- clients/validator
23
- dist/wasm/**
34
- dist/node/**
45
- dist/ts/**
5-
- sdk/typescript/packages/mui-theme
6+
- explorer-nextjs
67
- sdk/typescript/packages/react-components
78
- sdk/typescript/packages/validator-client
9+
- sdk/typescript/packages/mui-theme
10+
- sdk/typescript/packages/**
11+
- sdk/typescript/examples/**
12+
- sdk/typescript/codegen/**
813
- ts-packages/**
9-
- explorer-nextjs
10-
- clients/validator

sdk/typescript/examples/react/mui-theme/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,31 @@
44
"version": "1.0.0",
55
"license": "Apache-2.0",
66
"dependencies": {
7-
"react": "^18.2.0",
8-
"react-dom": "^18.2.0",
9-
"@mui/material": "^5.0.1",
10-
"@mui/styles": "^5.0.1",
117
"@mui/icons-material": "^5.5.0",
128
"@mui/lab": "^5.0.0-alpha.72",
13-
"@nymproject/mui-theme": "^1.0.0",
14-
"@nymproject/react": "^1.0.0"
9+
"@mui/material": "^5.0.1",
10+
"@mui/styles": "^5.0.1",
11+
"@nymproject/mui-theme": "workspace:^1.0.0",
12+
"@nymproject/react": "workspace:^1.0.0",
13+
"react": "^18.2.0",
14+
"react-dom": "^18.2.0"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.15.0",
1818
"@babel/plugin-transform-async-to-generator": "^7.14.5",
1919
"@babel/preset-env": "^7.15.0",
2020
"@babel/preset-react": "^7.14.5",
2121
"@babel/preset-typescript": "^7.15.0",
22-
"@nymproject/eslint-config-react-typescript": "^1.0.0",
23-
"@nymproject/webpack": "^1.0.0",
22+
"@nymproject/eslint-config-react-typescript": "workspace:^1.0.0",
23+
"@nymproject/webpack": "workspace:^1.0.0",
2424
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
2525
"@svgr/webpack": "^6.1.1",
2626
"@testing-library/jest-dom": "^5.14.1",
2727
"@testing-library/react": "^12.0.0",
2828
"@types/jest": "^27.0.1",
2929
"@types/node": "^16.7.13",
30-
"@types/react": "^18.0.26",
30+
"@types/react": "^18.3.3",
31+
"@types/react-dom": "^18.3.0",
3132
"@typescript-eslint/eslint-plugin": "^5.13.0",
3233
"@typescript-eslint/parser": "^5.13.0",
3334
"babel-loader": "^8.3.0",

sdk/typescript/examples/react/mui-theme/src/App.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from 'react';
22
import { Box, Container, Grid, Typography } from '@mui/material';
3-
import { NymLogo } from '@nymproject/react/logo/NymLogo';
4-
import { Playground } from '@nymproject/react/playground/Playground';
5-
import { useIsMounted } from '@nymproject/react/hooks/useIsMounted';
3+
import { NymLogo } from '@nymproject/react';
4+
import { useIsMounted } from '@nymproject/react';
65
import { NymThemeProvider } from '@nymproject/mui-theme';
76
import { useTheme } from '@mui/material/styles';
87
import { ThemeToggle } from './ThemeToggle';
@@ -65,8 +64,6 @@ export const Content: FCWithChildren = () => {
6564
))}
6665
</Grid>
6766
</Box>
68-
<h1>Component playground</h1>
69-
<Playground />
7067
</Container>
7168
);
7269
};

sdk/typescript/examples/react/mui-theme/src/tests/App.test.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)