Skip to content

Commit

Permalink
Support package alias
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUltDev committed Jun 11, 2024
1 parent 11be87f commit 416cb03
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 15 deletions.
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
"@react-native-community/slider": "^4.5.2",
"@react-native-picker/picker": "^2.7.5",
"@shopify/react-native-skia": "1.2.3",
"design": "workspace:*",
"design": "workspace:react-exo-ui@*",
"react-dom": "^18.2.0",
"react-exo": "workspace:*",
"react-exo-ui": "workspace:*",
"react-native-bootsplash": "^5.5.2",
"react-native-gesture-handler": "^2.16.0",
"react-native-get-random-values": "^1.11.0",
Expand Down
7 changes: 6 additions & 1 deletion design/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {AppThemes, AppBreakpoints} from './styles';
import type {SvgProps} from 'react-native-svg';

declare module 'styles' {
declare module 'react-exo-ui/styles' {
export interface UnistylesThemes extends AppThemes {}
export interface UnistylesBreakpoints extends AppBreakpoints {}
}
Expand All @@ -11,6 +11,11 @@ declare module 'design/styles' {
export interface UnistylesBreakpoints extends AppBreakpoints {}
}

declare module 'styles' {
export interface UnistylesThemes extends AppThemes {}
export interface UnistylesBreakpoints extends AppBreakpoints {}
}

declare module '*.svg' {
const content: React.FC<SvgProps>;
export default content;
Expand Down
2 changes: 1 addition & 1 deletion design/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "design",
"name": "react-exo-ui",
"private": true,
"type": "module",
"scripts": {
Expand Down
22 changes: 14 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion toolkit/storybook/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"@iconify/react": "^4.1.1",
"@storybook/addon-essentials": "^8.0.10",
"@storybook/blocks": "^8.0.10",
"design": "workspace:*"
"design": "workspace:react-exo-ui@*",
"react-exo-ui": "workspace:*"
},
"devDependencies": {
"@types/react": "^18.2.0",
Expand Down
3 changes: 1 addition & 2 deletions toolkit/storybook/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"@lingui/core": "^4.10.0",
"@lingui/macro": "^4.10.0",
"@lingui/react": "^4.10.0",
"design": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-exo": "workspace:*",
"react-native": "^0.73.6",
"react-native-svg": "^15.1.0",
"react-native-web": "^0.19.10",
"react-redux": "^9.1.2",
"storybook-common": "workspace:*",
"vite-plugin-node-polyfills": "^0.21.0"
},
"devDependencies": {
Expand All @@ -36,7 +36,6 @@
"config": "workspace:*",
"client": "workspace:*",
"storybook": "8.0.10",
"storybook-common": "workspace:*",
"typescript": "^5.3.2"
},
"browserslist": {
Expand Down
3 changes: 2 additions & 1 deletion toolkit/vocs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
"@lingui/core": "^4.10.0",
"@lingui/macro": "^4.10.0",
"@lingui/react": "^4.10.0",
"design": "workspace:*",
"design": "workspace:react-exo-ui@*",
"react": "^18.2.0",
"react-docgen": "^7.0.3",
"react-dom": "^18.2.0",
"react-exo": "workspace:*",
"react-exo-ui": "workspace:*",
"react-native": "^0.73.6",
"react-native-svg": "^15.1.0",
"react-native-web": "^0.19.10",
Expand Down

0 comments on commit 416cb03

Please sign in to comment.