From b9fdeecbddae70e2c71fc2ba1ec9b71f96ae83f8 Mon Sep 17 00:00:00 2001 From: aelassas Date: Wed, 11 Dec 2024 15:40:48 +0100 Subject: [PATCH] Fix ci issues --- backend/package.json | 3 ++- frontend/package.json | 3 ++- mobile/package.json | 24 ++++++++++++----------- packages/currency-converter/tsconfig.json | 2 +- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/backend/package.json b/backend/package.json index c5e36839e..6a4acad1f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -4,7 +4,8 @@ "version": "4.7.0", "type": "module", "scripts": { - "build": "tsc --build --verbose && cross-env NODE_OPTIONS=--max-old-space-size=1024 vite build", + "install:dependencies": "cd ../packages/currency-converter && npm i && cd ../../backend", + "build": "npm run install:dependencies && tsc --build --verbose && cross-env NODE_OPTIONS=--max-old-space-size=1024 vite build", "dev": "vite", "preview": "vite preview", "fix": "eslint --fix .", diff --git a/frontend/package.json b/frontend/package.json index 4a35b31e2..ef00a605b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,8 @@ "private": true, "type": "module", "scripts": { - "build": "tsc --build --verbose && cross-env NODE_OPTIONS=--max-old-space-size=1024 vite build", + "install:dependencies": "cd ../packages/currency-converter && npm i && cd ../../frontend", + "build": "npm run install:dependencies && tsc --build --verbose && cross-env NODE_OPTIONS=--max-old-space-size=1024 vite build", "dev": "vite", "preview": "vite preview", "fix": "eslint --fix .", diff --git a/mobile/package.json b/mobile/package.json index b7bf7ab80..aa8719fe0 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -3,17 +3,19 @@ "version": "4.7.0", "main": "node_modules/expo/AppEntry.js", "scripts": { - "start": "tsc --build --verbose && expo start --port 8082", - "start:clean": "tsc --build --verbose && expo start -c --port 8082", - "android": "tsc --build --verbose && expo run:android", - "ios": "tsc --build --verbose && expo run:ios", - "build:android": "cross-env EAS_NO_VCS=1 tsc --build --verbose && eas build --profile production --platform android", - "build:android:local": "cross-env EAS_NO_VCS=1 tsc --build --verbose && eas build --profile production --platform android --local", - "build:android:preview": "cross-env EAS_NO_VCS=1 tsc --build --verbose && eas build --profile preview --platform android", - "build:ios": "cross-env EAS_NO_VCS=1 tsc --build --verbose && eas build --profile production --platform ios", - "build:ios:local": "cross-env EAS_NO_VCS=1 tsc --build --verbose && eas build --profile production --platform ios --local", - "build:ios:preview": "cross-env EAS_NO_VCS=1 tsc --build --verbose && eas build --profile preview --platform android", - "ts:check": "tsc --build", + "install:dependencies": "cd ../packages/currency-converter && npm i && cd ../../mobile", + "ts:build": "npm run install:dependencies && tsc --build --verbose", + "ts:check": "npm run ts:build", + "start": "npm run ts:build && expo start --port 8082", + "start:clean": "npm run ts:build && expo start -c --port 8082", + "android": "npm run ts:build && expo run:android", + "ios": "npm run ts:build && expo run:ios", + "build:android": "cross-env EAS_NO_VCS=1 npm run ts:build && eas build --profile production --platform android", + "build:android:local": "cross-env EAS_NO_VCS=1 npm run ts:build && eas build --profile production --platform android --local", + "build:android:preview": "cross-env EAS_NO_VCS=1 npm run ts:build && eas build --profile preview --platform android", + "build:ios": "cross-env EAS_NO_VCS=1 npm run ts:build && eas build --profile production --platform ios", + "build:ios:local": "cross-env EAS_NO_VCS=1 npm run ts:build && eas build --profile production --platform ios --local", + "build:ios:preview": "cross-env EAS_NO_VCS=1 npm run ts:build && eas build --profile preview --platform android", "lint": "eslint --ext .ts,.tsx .", "fix": "eslint --fix .", "ncu": "ncu -u -x eslint,react,react-native,typescript,eslint-plugin-import,eslint-plugin-react,eslint-plugin-react-hooks && npm i --force && npm prune && expo install --fix", diff --git a/packages/currency-converter/tsconfig.json b/packages/currency-converter/tsconfig.json index 4d098fd01..5ae24bdc4 100644 --- a/packages/currency-converter/tsconfig.json +++ b/packages/currency-converter/tsconfig.json @@ -12,7 +12,7 @@ /* Language and Environment */ "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - "lib": ["esnext"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + "lib": ["esnext", "dom"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */