From 7c3c7f0470d6641e561a1fcfe3c1967857ea2600 Mon Sep 17 00:00:00 2001 From: Abdurrahman SASTIM Date: Tue, 7 Jan 2025 15:42:08 +0100 Subject: [PATCH] test: fix missing babel/plugin-proposal-class-properties --- .../e2e/babel.config.detox.js | 1 + apps/ledger-live-mobile/package.json | 1 + pnpm-lock.yaml | 67 ++++++++++--------- 3 files changed, 37 insertions(+), 32 deletions(-) diff --git a/apps/ledger-live-mobile/e2e/babel.config.detox.js b/apps/ledger-live-mobile/e2e/babel.config.detox.js index 587f1d70275d..da84987b3c9f 100644 --- a/apps/ledger-live-mobile/e2e/babel.config.detox.js +++ b/apps/ledger-live-mobile/e2e/babel.config.detox.js @@ -3,6 +3,7 @@ module.exports = { plugins: [ "@babel/plugin-transform-named-capturing-groups-regex", "@babel/plugin-proposal-export-namespace-from", + ["@babel/plugin-proposal-class-properties", { loose: true }], "react-native-reanimated/plugin", ], }; diff --git a/apps/ledger-live-mobile/package.json b/apps/ledger-live-mobile/package.json index 2811df32b2b7..7e7a6e07621b 100644 --- a/apps/ledger-live-mobile/package.json +++ b/apps/ledger-live-mobile/package.json @@ -225,6 +225,7 @@ }, "devDependencies": { "@babel/core": "7.24.3", + "@babel/plugin-proposal-class-properties": "^7.13.0", "@babel/plugin-proposal-export-namespace-from": "7.18.9", "@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6", "@babel/plugin-proposal-optional-chaining": "7.21.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e0c5bf5f1316..c842f4c337e5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1296,6 +1296,9 @@ importers: '@babel/core': specifier: 7.24.3 version: 7.24.3 + '@babel/plugin-proposal-class-properties': + specifier: ^7.13.0 + version: 7.18.6(@babel/core@7.24.3) '@babel/plugin-proposal-export-namespace-from': specifier: 7.18.9 version: 7.18.9(@babel/core@7.24.3) @@ -31985,7 +31988,7 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - debug: 4.3.4 + debug: 4.3.7 lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -31996,7 +31999,7 @@ snapshots: '@babel/core': 7.24.3 '@babel/helper-compilation-targets': 7.25.9 '@babel/helper-plugin-utils': 7.25.9 - debug: 4.3.4 + debug: 4.3.7 lodash.debounce: 4.0.8 resolve: 1.22.8 transitivePeerDependencies: @@ -32161,7 +32164,7 @@ snapshots: '@babel/highlight@7.24.6': dependencies: - '@babel/helper-validator-identifier': 7.24.7 + '@babel/helper-validator-identifier': 7.25.9 chalk: 2.4.2 js-tokens: 4.0.0 picocolors: 1.1.1 @@ -32198,15 +32201,15 @@ snapshots: dependencies: '@babel/core': 7.24.3 '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-plugin-utils': 7.25.9 '@babel/helper-remap-async-to-generator': 7.22.20(@babel/core@7.24.3) '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@7.24.3) '@babel/plugin-proposal-class-properties@7.18.6(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 - '@babel/helper-create-class-features-plugin': 7.24.1(@babel/core@7.24.3) - '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-create-class-features-plugin': 7.25.9(@babel/core@7.24.3) + '@babel/helper-plugin-utils': 7.25.9 transitivePeerDependencies: - supports-color @@ -32251,7 +32254,7 @@ snapshots: '@babel/plugin-proposal-numeric-separator@7.18.6(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 - '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@7.24.3) '@babel/plugin-proposal-object-rest-spread@7.20.7(@babel/core@7.24.3)': @@ -32259,14 +32262,14 @@ snapshots: '@babel/compat-data': 7.24.1 '@babel/core': 7.24.3 '@babel/helper-compilation-targets': 7.23.6 - '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.24.3) '@babel/plugin-transform-parameters': 7.24.1(@babel/core@7.24.3) '@babel/plugin-proposal-optional-catch-binding@7.18.6(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 - '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@7.24.3) '@babel/plugin-proposal-optional-chaining@7.21.0(@babel/core@7.24.3)': @@ -32758,7 +32761,7 @@ snapshots: '@babel/plugin-transform-parameters@7.24.1(@babel/core@7.24.3)': dependencies: '@babel/core': 7.24.3 - '@babel/helper-plugin-utils': 7.24.0 + '@babel/helper-plugin-utils': 7.25.9 '@babel/plugin-transform-parameters@7.25.9(@babel/core@7.24.3)': dependencies: @@ -33191,7 +33194,7 @@ snapshots: '@babel/parser': 7.26.2 '@babel/template': 7.25.9 '@babel/types': 7.26.0 - debug: 4.3.4 + debug: 4.3.7 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -35280,7 +35283,7 @@ snapshots: '@expo/env@0.3.0': dependencies: chalk: 4.1.2 - debug: 4.3.4 + debug: 4.3.7 dotenv: 16.4.5 dotenv-expand: 11.0.6 getenv: 1.0.0 @@ -35291,7 +35294,7 @@ snapshots: dependencies: '@expo/spawn-async': 1.7.2 chalk: 4.1.2 - debug: 4.3.4 + debug: 4.3.7 find-up: 5.0.0 minimatch: 3.1.2 p-limit: 3.1.0 @@ -35464,7 +35467,7 @@ snapshots: '@expo/image-utils': 0.5.1 '@expo/json-file': 8.3.0 '@react-native/normalize-colors': 0.74.85 - debug: 4.3.4 + debug: 4.3.7 expo-modules-autolinking: 1.11.2(expo-modules-core@1.12.26(react-native@0.75.4(@babel/core@7.24.3)(@types/react@18.2.73)(react@18.3.1)(typescript@5.4.3))(react@18.3.1))(react-native@0.75.4(@babel/core@7.24.3)(@types/react@18.2.73)(react@18.3.1)(typescript@5.4.3))(react@18.3.1) fs-extra: 9.1.0 resolve-from: 5.0.0 @@ -37039,7 +37042,7 @@ snapshots: '@kwsites/file-exists@1.1.1': dependencies: - debug: 4.3.4 + debug: 4.3.7 transitivePeerDependencies: - supports-color @@ -44867,7 +44870,7 @@ snapshots: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) - debug: 4.3.4 + debug: 4.3.7 eslint: 8.57.0 optionalDependencies: typescript: 4.9.5 @@ -46631,7 +46634,7 @@ snapshots: babel-plugin-styled-components@2.1.4(@babel/core@7.24.3)(styled-components@5.3.11(@babel/core@7.24.3)(react-is@18.3.1)(react@18.3.1)): dependencies: - '@babel/helper-annotate-as-pure': 7.22.5 + '@babel/helper-annotate-as-pure': 7.25.9 '@babel/helper-module-imports': 7.24.3 '@babel/plugin-syntax-jsx': 7.24.1(@babel/core@7.24.3) lodash: 4.17.21 @@ -52321,7 +52324,7 @@ snapshots: dependencies: '@tootallnate/once': 1.1.2 agent-base: 6.0.2 - debug: 4.3.4 + debug: 4.3.7 transitivePeerDependencies: - supports-color @@ -55618,7 +55621,7 @@ snapshots: koa-route@3.2.0: dependencies: - debug: 4.3.4 + debug: 4.3.7 methods: 1.1.2 path-to-regexp: 1.8.0 transitivePeerDependencies: @@ -55626,7 +55629,7 @@ snapshots: koa-send@5.0.1: dependencies: - debug: 4.3.4 + debug: 4.3.7 http-errors: 1.8.1 resolve-path: 1.4.0 transitivePeerDependencies: @@ -55646,7 +55649,7 @@ snapshots: content-disposition: 0.5.4 content-type: 1.0.5 cookies: 0.9.1 - debug: 4.3.4 + debug: 4.3.7 delegates: 1.0.0 depd: 2.0.0 destroy: 1.2.0 @@ -56748,7 +56751,7 @@ snapshots: metro-source-map@0.80.12: dependencies: - '@babel/traverse': 7.24.1 + '@babel/traverse': 7.25.9 '@babel/types': 7.24.0 flow-enums-runtime: 0.0.6 invariant: 2.2.4 @@ -56776,7 +56779,7 @@ snapshots: dependencies: '@babel/core': 7.24.3 '@babel/generator': 7.26.2 - '@babel/template': 7.24.0 + '@babel/template': 7.25.9 '@babel/traverse': 7.25.9 flow-enums-runtime: 0.0.6 nullthrows: 1.1.1 @@ -56786,9 +56789,9 @@ snapshots: metro-transform-worker@0.80.12: dependencies: '@babel/core': 7.24.3 - '@babel/generator': 7.24.1 - '@babel/parser': 7.24.1 - '@babel/types': 7.24.0 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/types': 7.26.0 flow-enums-runtime: 0.0.6 metro: 0.80.12 metro-babel-transformer: 0.80.12 @@ -56805,13 +56808,13 @@ snapshots: metro@0.80.12: dependencies: - '@babel/code-frame': 7.24.6 + '@babel/code-frame': 7.26.2 '@babel/core': 7.24.3 - '@babel/generator': 7.24.1 - '@babel/parser': 7.24.1 - '@babel/template': 7.24.0 - '@babel/traverse': 7.24.1 - '@babel/types': 7.24.0 + '@babel/generator': 7.26.2 + '@babel/parser': 7.26.2 + '@babel/template': 7.25.9 + '@babel/traverse': 7.25.9 + '@babel/types': 7.26.0 accepts: 1.3.8 chalk: 4.1.2 ci-info: 2.0.0