From f146805c43d15434ce78924cf42421e5eb162628 Mon Sep 17 00:00:00 2001 From: Tom Heisenberg Date: Tue, 7 Oct 2025 23:43:28 -0500 Subject: [PATCH] feat: upload js sourcemaps on bugsnag --- mobile/app.json | 6 +++++- mobile/package-lock.json | 16 ++++++++++++++++ mobile/package.json | 5 ++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/mobile/app.json b/mobile/app.json index d07a5f0b..0d199e51 100644 --- a/mobile/app.json +++ b/mobile/app.json @@ -93,7 +93,8 @@ ], "expo-secure-store", "expo-font", - "expo-web-browser" + "expo-web-browser", + "@bugsnag/plugin-expo-eas-sourcemaps" ], "experiments": { "typedRoutes": true @@ -104,6 +105,9 @@ }, "eas": { "projectId": "79e33289-7bd2-4ab4-8363-88ca65e99327" + }, + "bugsnag": { + "apiKey": "$EXPO_PUBLIC_BUGSNAG_API_KEY" } }, "owner": "layerztec" diff --git a/mobile/package-lock.json b/mobile/package-lock.json index 1849ed6a..7e879891 100644 --- a/mobile/package-lock.json +++ b/mobile/package-lock.json @@ -94,6 +94,8 @@ }, "devDependencies": { "@babel/core": "^7.25.2", + "@bugsnag/plugin-expo-eas-sourcemaps": "^54.0.0", + "@bugsnag/source-maps": "^2.3.3", "@types/bs58check": "^2.1.2", "@types/chrome": "^0.0.313", "@types/create-hash": "^1.2.6", @@ -1935,6 +1937,20 @@ "expo-secure-store": "~15.0.6" } }, + "node_modules/@bugsnag/plugin-expo-eas-sourcemaps": { + "version": "54.0.0", + "resolved": "https://registry.npmjs.org/@bugsnag/plugin-expo-eas-sourcemaps/-/plugin-expo-eas-sourcemaps-54.0.0.tgz", + "integrity": "sha512-w1aQdfh63hzT5PRrWfIMeJDWcziYV632QDaB46dFwflZd0iCWALGzno95xYTUbsMYvR8StPSI8vyD9JNUepz4w==", + "dev": true, + "license": "MIT", + "bin": { + "bugsnag-eas-build-on-success": "lib/eas-build-on-success.js" + }, + "peerDependencies": { + "@bugsnag/source-maps": "^2.3.3", + "@expo/config": "~12.0.8" + } + }, "node_modules/@bugsnag/plugin-network-breadcrumbs": { "version": "8.6.0", "resolved": "https://registry.npmjs.org/@bugsnag/plugin-network-breadcrumbs/-/plugin-network-breadcrumbs-8.6.0.tgz", diff --git a/mobile/package.json b/mobile/package.json index af13c9da..f9e62bd3 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -27,7 +27,8 @@ "lint": "prettier '**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' '../shared/**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' --config ./.prettierrc --check && tsc --noEmit && expo lint", "lint:write": "prettier --write '**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' '../shared/**/*.{js,jsx,ts,tsx,json,css,scss,md,yml}' --config ./.prettierrc; expo lint --fix", "lint:fix": "npm run lint:write", - "buildbridge": "cd scripts/inpage-bridge && ./build.sh" + "buildbridge": "cd scripts/inpage-bridge && ./build.sh", + "eas-build-on-success": "npx bugsnag-eas-build-on-success" }, "jest": { "preset": "jest-expo" @@ -118,6 +119,8 @@ }, "devDependencies": { "@babel/core": "^7.25.2", + "@bugsnag/plugin-expo-eas-sourcemaps": "^54.0.0", + "@bugsnag/source-maps": "^2.3.3", "@types/bs58check": "^2.1.2", "@types/chrome": "^0.0.313", "@types/create-hash": "^1.2.6",