Skip to content

Commit

Permalink
Update dependencies (#112)
Browse files Browse the repository at this point in the history
* update minor dependencies

* update storybook version

* update some dependencies
  • Loading branch information
HugoPerard authored Jan 27, 2025
1 parent 84fa4d0 commit 802caba
Show file tree
Hide file tree
Showing 4 changed files with 1,744 additions and 3,086 deletions.
35 changes: 25 additions & 10 deletions .storybook/storybook.requires.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* do not change this file, it is auto generated by storybook. */

import { start } from "@storybook/react-native";
import { start, updateView } from "@storybook/react-native";

import "@storybook/addon-ondevice-controls/register";
import "@storybook/addon-ondevice-actions/register";
Expand All @@ -21,14 +21,29 @@ const normalizedStories = [
},
];

// @ts-ignore
declare global {
var view: ReturnType<typeof start>;
var STORIES: typeof normalizedStories;
}

const annotations = [
require("./preview"),
require("@storybook/react-native/preview"),
require("@storybook/addon-ondevice-actions/preview"),
];

global.STORIES = normalizedStories;

export const view = start({
annotations: [
require("./preview"),
require("@storybook/react-native/dist/preview"),
require("@storybook/addon-actions/preview"),
],
storyEntries: normalizedStories,
});
// @ts-ignore
module?.hot?.accept?.();

if (!global.view) {
global.view = start({
annotations,
storyEntries: normalizedStories,
});
} else {
updateView(global.view, annotations, normalizedStories);
}

export const view = global.view;
21 changes: 17 additions & 4 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
// Learn more https://docs.expo.io/guides/customizing-metro
// eslint-disable-next-line
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path'); // eslint-disable-line @typescript-eslint/no-var-requires
const { getDefaultConfig } = require('expo/metro-config'); // eslint-disable-line @typescript-eslint/no-var-requires
const withStorybook = require('@storybook/react-native/metro/withStorybook'); // eslint-disable-line @typescript-eslint/no-var-requires

/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);

module.exports = config;
module.exports = withStorybook(config, {
// Set to false to remove storybook specific options
// you can also use a env variable to set this
enabled: true,
// Path to your storybook config
configPath: path.resolve(__dirname, './.storybook'),

// Optional websockets configuration
// Starts a websocket server on the specified port and host on metro start
// websockets: {
// port: 7007,
// host: 'localhost',
// },
});
56 changes: 29 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"start": "expo start -c",
"dev": "pnpm start --dev-client",
"dev:go": "pnpm start --go",
"postinstall": "pnpm generate-api",
"generate-api": "mkdir -p ./src/api/ && tsx ./scripts/services-generator.ts",
"android": "expo run:android",
Expand All @@ -21,12 +22,11 @@
"*.{ts,tsx,js,jsx}": "pnpm lint:staged"
},
"dependencies": {
"@babel/preset-env": "7.22.20",
"@expo/vector-icons": "14.0.0",
"@expo/vector-icons": "14.0.4",
"@formiz/core": "2.4.5",
"@formiz/validations": "2.0.1",
"@lukemorales/query-key-factory": "1.3.1",
"@react-native-async-storage/async-storage": "1.23.1",
"@lukemorales/query-key-factory": "1.3.4",
"@react-native-async-storage/async-storage": "1.24.0",
"@tanstack/react-query": "4.29.25",
"@zodios/core": "10.9.6",
"@zodios/plugins": "10.6.0",
Expand All @@ -50,50 +50,52 @@
"expo-updates": "0.26.13",
"expo-web-browser": "14.0.2",
"i18next": "23.12.7",
"prettier": "3.1.1",
"prettier": "3.4.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-i18next": "15.0.3",
"react-native": "0.76.6",
"react-native-animatable": "1.3.3",
"react-native-confirmation-code-field": "7.3.2",
"react-native-confirmation-code-field": "7.4.0",
"react-native-ficus-ui": "1.3.3",
"react-native-gesture-handler": "2.20.2",
"react-native-modal": "13.0.1",
"react-native-reanimated": "3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "4.0.0",
"react-native-safe-area-context": "4.14.1",
"react-native-screens": "4.5.0",
"react-native-vector-icons": "10.2.0",
"react-native-web": "0.19.13",
"zod": "3.22.4",
"zod": "3.22.5",
"zustand": "4.4.7"
},
"devDependencies": {
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.3",
"@babel/runtime": "7.25.0",
"@babel/core": "7.26.7",
"@babel/preset-env": "7.26.7",
"@babel/runtime": "7.26.7",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
"@react-native-community/datetimepicker": "8.0.1",
"@react-native/babel-preset": "0.76.0",
"@react-native/eslint-config": "0.76.0",
"@react-native/metro-config": "0.76.0",
"@react-native/typescript-config": "0.76.0",
"@storybook/addon-ondevice-actions": "7.6.14",
"@storybook/addon-ondevice-controls": "7.6.14",
"@storybook/react-native": "7.6.14",
"@react-native-community/datetimepicker": "8.2.0",
"@react-native/babel-preset": "0.76.6",
"@react-native/eslint-config": "0.76.6",
"@react-native/metro-config": "0.76.6",
"@react-native/typescript-config": "0.76.6",
"@storybook/addon-ondevice-actions": "8.5.2",
"@storybook/addon-ondevice-controls": "8.5.2",
"@storybook/react-native": "8.5.2",
"react-native-svg": "15.8.0",
"@gorhom/bottom-sheet": "5.0.4",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/lodash": "4.14.202",
"@types/react": "18.2.79",
"@typescript-eslint/eslint-plugin": "5.59.5",
"@types/lodash": "4.17.14",
"@types/react": "18.3.18",
"@typescript-eslint/eslint-plugin": "5.59.11",
"dotenv": "16.3.1",
"eslint": "8.40.0",
"eslint-config-next": "13.2.4",
"eslint-plugin-sonarjs": "0.19.0",
"eslint": "8.57.1",
"eslint-config-next": "13.5.8",
"eslint-plugin-sonarjs": "0.25.1",
"lodash": "4.17.21",
"openapi-zod-client": "1.13.2",
"react-native-dotenv": "3.4.8",
"react-native-dotenv": "3.4.11",
"tsx": "4.6.2",
"typescript": "5.3.3"
},
Expand Down
Loading

0 comments on commit 802caba

Please sign in to comment.