From 4a5902e18d1c73b1c8157adb8009b9073ef336c0 Mon Sep 17 00:00:00 2001 From: Oscar Bazaldua <511911+oscb@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:04:38 -0800 Subject: [PATCH] ci: fix cmd order --- package.json | 8 ++++---- packages/core/package.json | 3 ++- yarn.lock | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 4638a731..00fd8956 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "name": "analytics-react-native", "private": true, "workspaces": [ + "packages/shared", "packages/sovran", "packages/core", - "packages/shared", "packages/plugins/*" ], "scripts": { @@ -12,9 +12,9 @@ "core": "yarn workspace @segment/analytics-react-native", "sovran": "yarn workspace @segment/sovran-react-native", "example": "yarn --cwd example", - "build": " yarn workspaces foreach -A run build", - "testAll": " yarn workspaces foreach -A run test --passWithNoTests", - "clean": " yarn workspaces foreach -A run clean", + "build": " yarn workspaces foreach -A --topological-dev run build", + "testAll": " yarn workspaces foreach -A -p run test --passWithNoTests", + "clean": " yarn workspaces foreach -A -p run clean", "typescript": "tsc --noEmit --composite false", "test": "jest", "lint": "eslint .", diff --git a/packages/core/package.json b/packages/core/package.json index e2638b87..109b651e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -47,13 +47,13 @@ "postversion": "yarn prebuild" }, "dependencies": { - "@segment/sovran-react-native": "^1", "@segment/tsub": "^2", "deepmerge": "^4.3.1", "js-base64": "^3.7.5", "uuid": "^9.0.1" }, "devDependencies": { + "@segment/sovran-react-native": "workspace:^", "@types/uuid": "^9.0.7", "jest": "^29.7.0", "semantic-release": "^22.0.8", @@ -62,6 +62,7 @@ }, "peerDependencies": { "@react-native-async-storage/async-storage": "1.x", + "@segment/sovran-react-native": "1.x", "react": "*", "react-native": "*", "react-native-get-random-values": "1.x" diff --git a/yarn.lock b/yarn.lock index 45209b70..c6e3efc1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3631,7 +3631,7 @@ __metadata: version: 0.0.0-use.local resolution: "@segment/analytics-react-native@workspace:packages/core" dependencies: - "@segment/sovran-react-native": "npm:^1" + "@segment/sovran-react-native": "workspace:*" "@segment/tsub": "npm:^2" "@types/uuid": "npm:^9.0.7" deepmerge: "npm:^4.3.1" @@ -3643,6 +3643,7 @@ __metadata: uuid: "npm:^9.0.1" peerDependencies: "@react-native-async-storage/async-storage": 1.x + "@segment/sovran-react-native": 1.x react: "*" react-native: "*" react-native-get-random-values: 1.x @@ -3666,7 +3667,7 @@ __metadata: languageName: unknown linkType: soft -"@segment/sovran-react-native@npm:^1, @segment/sovran-react-native@workspace:*, @segment/sovran-react-native@workspace:packages/sovran": +"@segment/sovran-react-native@workspace:*, @segment/sovran-react-native@workspace:packages/sovran": version: 0.0.0-use.local resolution: "@segment/sovran-react-native@workspace:packages/sovran" dependencies: