From 0658a0650aa63316627869a6b5f4fb37b379e4b3 Mon Sep 17 00:00:00 2001 From: Timofei Iatsenko Date: Tue, 5 Mar 2024 12:09:47 +0100 Subject: [PATCH] refactor(macro): use workspace schema for dev lingui deps --- .../package.json | 4 +- yarn.lock | 59 ++----------------- 2 files changed, 6 insertions(+), 57 deletions(-) diff --git a/packages/babel-plugin-extract-messages/package.json b/packages/babel-plugin-extract-messages/package.json index d2ea73b54..bb96bd66a 100644 --- a/packages/babel-plugin-extract-messages/package.json +++ b/packages/babel-plugin-extract-messages/package.json @@ -43,8 +43,8 @@ "@babel/core": "^7.21.0", "@babel/traverse": "7.20.12", "@babel/types": "^7.20.7", - "@lingui/jest-mocks": "*", - "@lingui/macro": "*", + "@lingui/jest-mocks": "workspace:*", + "@lingui/macro": "workspace:*", "unbuild": "2.0.0" } } diff --git a/yarn.lock b/yarn.lock index fed02877d..eb397a7da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3225,8 +3225,8 @@ __metadata: "@babel/core": ^7.21.0 "@babel/traverse": 7.20.12 "@babel/types": ^7.20.7 - "@lingui/jest-mocks": "*" - "@lingui/macro": "*" + "@lingui/jest-mocks": "workspace:*" + "@lingui/macro": "workspace:*" unbuild: 2.0.0 languageName: unknown linkType: soft @@ -3293,20 +3293,6 @@ __metadata: languageName: unknown linkType: soft -"@lingui/conf@npm:4.7.1": - version: 4.7.1 - resolution: "@lingui/conf@npm:4.7.1" - dependencies: - "@babel/runtime": ^7.20.13 - chalk: ^4.1.0 - cosmiconfig: ^8.0.0 - jest-validate: ^29.4.3 - jiti: ^1.17.1 - lodash.get: ^4.4.2 - checksum: 4f98115c21508d89471afb0ee602f8b8ba763f59794126006831feb4080d8e878131e5b77807057d2c4b3a3d4119be0f9ea984ea81cf702c50cc2070d98bb529 - languageName: node - linkType: hard - "@lingui/core@4.8.0-next.0, @lingui/core@workspace:*, @lingui/core@workspace:packages/core": version: 0.0.0-use.local resolution: "@lingui/core@workspace:packages/core" @@ -3329,17 +3315,6 @@ __metadata: languageName: node linkType: hard -"@lingui/core@npm:4.7.1": - version: 4.7.1 - resolution: "@lingui/core@npm:4.7.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@lingui/message-utils": 4.7.1 - unraw: ^3.0.0 - checksum: f9dca40a2a2f406cc0e1292066ce98ba74a4614abfbe0358f53cff8d2809329de37248117c06f267d859d08232eb9e8e0b70ce0a4e6d9667673b1042bc6af5b4 - languageName: node - linkType: hard - "@lingui/detect-locale@workspace:packages/detect-locale": version: 0.0.0-use.local resolution: "@lingui/detect-locale@workspace:packages/detect-locale" @@ -3416,7 +3391,7 @@ __metadata: languageName: unknown linkType: soft -"@lingui/jest-mocks@*, @lingui/jest-mocks@workspace:^, @lingui/jest-mocks@workspace:packages/jest-mocks": +"@lingui/jest-mocks@*, @lingui/jest-mocks@workspace:*, @lingui/jest-mocks@workspace:^, @lingui/jest-mocks@workspace:packages/jest-mocks": version: 0.0.0-use.local resolution: "@lingui/jest-mocks@workspace:packages/jest-mocks" languageName: unknown @@ -3437,7 +3412,7 @@ __metadata: languageName: unknown linkType: soft -"@lingui/macro@4.8.0-next.0, @lingui/macro@workspace:^, @lingui/macro@workspace:packages/macro": +"@lingui/macro@4.8.0-next.0, @lingui/macro@workspace:*, @lingui/macro@workspace:^, @lingui/macro@workspace:packages/macro": version: 0.0.0-use.local resolution: "@lingui/macro@workspace:packages/macro" dependencies: @@ -3462,22 +3437,6 @@ __metadata: languageName: unknown linkType: soft -"@lingui/macro@npm:*": - version: 4.7.1 - resolution: "@lingui/macro@npm:4.7.1" - dependencies: - "@babel/runtime": ^7.20.13 - "@babel/types": ^7.20.7 - "@lingui/conf": 4.7.1 - "@lingui/core": 4.7.1 - "@lingui/message-utils": 4.7.1 - peerDependencies: - "@lingui/react": ^4.0.0 - babel-plugin-macros: 2 || 3 - checksum: ced3208095731584a768a828a3b51a85519c69950177f8cd550016a1b312b684e5c9730f201cc5e483110b382751ffa1749c9567a1c7ac836d6dbee7a2036118 - languageName: node - linkType: hard - "@lingui/message-utils@4.8.0-next.0, @lingui/message-utils@workspace:packages/message-utils": version: 0.0.0-use.local resolution: "@lingui/message-utils@workspace:packages/message-utils" @@ -3498,16 +3457,6 @@ __metadata: languageName: node linkType: hard -"@lingui/message-utils@npm:4.7.1": - version: 4.7.1 - resolution: "@lingui/message-utils@npm:4.7.1" - dependencies: - "@messageformat/parser": ^5.0.0 - js-sha256: ^0.10.1 - checksum: e4dbb4f2dc2f6d0eb2e7d1ee6a93957dcefc37ff2b85586d014e9c9f75b920a574ed6cf9eff60eae2ea99478e81aa5a0331377003f0dcef712a8bc5ff150ef3d - languageName: node - linkType: hard - "@lingui/react@workspace:*, @lingui/react@workspace:packages/react": version: 0.0.0-use.local resolution: "@lingui/react@workspace:packages/react"