From d5b6c17c81b7b4e6f9b7c0a68e7db622a1c7edad Mon Sep 17 00:00:00 2001 From: aelassas Date: Sat, 13 Apr 2024 02:25:11 +0000 Subject: [PATCH] Update movinin-helper --- api/package.json | 2 +- backend/package.json | 6 +++--- frontend/package.json | 6 +++--- mobile/package.json | 20 ++++++++++---------- packages/movinin-helper/index.ts | 2 +- packages/movinin-helper/package-lock.json | 8 +------- packages/movinin-helper/package.json | 3 --- packages/movinin-helper/tsconfig.json | 7 ++++++- 8 files changed, 25 insertions(+), 29 deletions(-) diff --git a/api/package.json b/api/package.json index 094d4208..b5638c67 100644 --- a/api/package.json +++ b/api/package.json @@ -6,7 +6,7 @@ "type": "module", "scripts": { "dev": "nodemon", - "build": "rimraf dist && tsc -b && babel dist -d dist", + "build": "rimraf dist && tsc --build --verbose&& babel dist -d dist", "start": "npm run build && node dist/src", "test": "rimraf coverage && cross-env NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest --coverage", "lint": "eslint --ext .ts .", diff --git a/backend/package.json b/backend/package.json index 74a80d94..0e52cdd6 100644 --- a/backend/package.json +++ b/backend/package.json @@ -34,9 +34,9 @@ "validator": "^13.11.0" }, "scripts": { - "start": "tsc -b && craco start", - "build": "tsc -b && craco build", - "test": "tsc -b && craco test", + "start": "tsc --build --verbose&& craco start", + "build": "tsc --build --verbose&& craco build", + "test": "tsc --build --verbose&& craco test", "eject": "craco eject", "lint": "eslint --ext .ts,.tsx .", "fix": "eslint --fix .", diff --git a/frontend/package.json b/frontend/package.json index a9f93de8..e4501e86 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -29,9 +29,9 @@ "validator": "^13.11.0" }, "scripts": { - "start": "tsc -b && craco start", - "build": "tsc -b && craco build", - "test": "tsc -b && craco test", + "start": "tsc --build --verbose&& craco start", + "build": "tsc --build --verbose&& craco build", + "test": "tsc --build --verbose&& craco test", "eject": "craco eject", "lint": "eslint --ext .ts,.tsx .", "fix": "eslint --fix .", diff --git a/mobile/package.json b/mobile/package.json index 204e73f7..545d5ca0 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -3,16 +3,16 @@ "version": "2.6.0", "main": "node_modules/expo/AppEntry.js", "scripts": { - "start": "tsc -b && expo start --port 8081", - "start:clean": "tsc -b && expo start -c --port 8081", - "android": "tsc -b && expo start --android", - "ios": "tsc -b && expo start --ios", - "build:android": "cross-env EAS_NO_VCS=1 tsc -b && eas build --profile production --platform android", - "build:android:local": "cross-env EAS_NO_VCS=1 tsc -b && eas build --profile production --platform android --local", - "build:android:preview": "cross-env EAS_NO_VCS=1 tsc -b && eas build --profile preview --platform android", - "build:ios": "cross-env EAS_NO_VCS=1 tsc -b && eas build --profile production --platform ios", - "build:ios:local": "cross-env EAS_NO_VCS=1 tsc -b && eas build --profile production --platform ios --local", - "build:ios:preview": "cross-env EAS_NO_VCS=1 tsc -b && eas build --profile preview --platform android", + "start": "tsc --build --verbose&& expo start --port 8081", + "start:clean": "tsc --build --verbose&& expo start -c --port 8081", + "android": "tsc --build --verbose&& expo start --android", + "ios": "tsc --build --verbose&& expo start --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 -b", "lint": "eslint --ext .ts,.tsx .", "fix": "eslint --fix .", diff --git a/packages/movinin-helper/index.ts b/packages/movinin-helper/index.ts index 60511d56..684d6165 100644 --- a/packages/movinin-helper/index.ts +++ b/packages/movinin-helper/index.ts @@ -1,4 +1,4 @@ -import * as movininTypes from 'movinin-types' +import * as movininTypes from ':movinin-types' /** * Format a number. diff --git a/packages/movinin-helper/package-lock.json b/packages/movinin-helper/package-lock.json index 4b40026f..10be7e5a 100644 --- a/packages/movinin-helper/package-lock.json +++ b/packages/movinin-helper/package-lock.json @@ -8,9 +8,6 @@ "name": "movinin-helper", "version": "1.0.0", "license": "ISC", - "dependencies": { - "movinin-types": "file:../movinin-types" - }, "devDependencies": { "rimraf": "^5.0.1", "typescript": "^5.2.2" @@ -18,6 +15,7 @@ }, "../movinin-types": { "version": "1.0.0", + "extraneous": true, "license": "ISC", "dependencies": { "rimraf": "^5.0.1", @@ -238,10 +236,6 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/movinin-types": { - "resolved": "../movinin-types", - "link": true - }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", diff --git a/packages/movinin-helper/package.json b/packages/movinin-helper/package.json index 24b2525b..7f3d6225 100644 --- a/packages/movinin-helper/package.json +++ b/packages/movinin-helper/package.json @@ -12,8 +12,5 @@ "devDependencies": { "rimraf": "^5.0.1", "typescript": "^5.2.2" - }, - "dependencies": { - "movinin-types": "file:../movinin-types" } } diff --git a/packages/movinin-helper/tsconfig.json b/packages/movinin-helper/tsconfig.json index 58bbe4df..d38d7e4f 100644 --- a/packages/movinin-helper/tsconfig.json +++ b/packages/movinin-helper/tsconfig.json @@ -29,7 +29,9 @@ "rootDir": "", /* Specify the root folder within your source files. */ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ + "paths": { + ":movinin-types": ["../movinin-types"] + }, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ // "types": [], /* Specify type package names to be included without being referenced in a source file. */ @@ -109,5 +111,8 @@ }, "exclude": [ "node_modules" + ], + "references": [ + { "path": "../movinin-types" } ] }