PR feedback

This commit is contained in:
Samuel Newman
2026-05-22 11:50:57 +03:00
parent b034b5b911
commit 5d875d311f
3 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ ENV EXPO_PUBLIC_SENTRY_DSN=$EXPO_PUBLIC_SENTRY_DSN
COPY . . COPY . .
# #
# Generate the JavaScript webpack. # Generate the web bundle with Metro.
# #
RUN mkdir --parents $NVM_DIR && \ RUN mkdir --parents $NVM_DIR && \
wget \ wget \
+1 -1
View File
@@ -299,7 +299,7 @@ export default defineConfig(
* bskyogcard - server-side, Node.js imports are fine * bskyogcard - server-side, Node.js imports are fine
*/ */
{ {
files: ['bskyogcard/**/*.{js,jsx,ts,tsx}'], files: ['bskyogcard/**/*.{js,jsx,ts,tsx}', 'scripts/**/*.{js,ts}'],
rules: { rules: {
'import-x/no-nodejs-modules': 'off', 'import-x/no-nodejs-modules': 'off',
}, },
+5 -6
View File
@@ -1,6 +1,6 @@
const path = require('path') const path = require('node:path')
const fs = require('fs') const fs = require('node:fs')
const {execSync} = require('child_process') const {execFileSync} = require('node:child_process')
const projectRoot = path.join(__dirname, '..') const projectRoot = path.join(__dirname, '..')
const distDir = path.join(projectRoot, 'dist') const distDir = path.join(projectRoot, 'dist')
@@ -119,8 +119,7 @@ if (process.env.SENTRY_AUTH_TOKEN) {
const sourceMapDir = path.join(distDir, '_expo', 'static') const sourceMapDir = path.join(distDir, '_expo', 'static')
console.log(`Uploading source maps to Sentry (release: ${release})`) console.log(`Uploading source maps to Sentry (release: ${release})`)
const cmd = [ const args = [
'sentry-cli',
'sourcemaps', 'sourcemaps',
'upload', 'upload',
'--org', '--org',
@@ -133,7 +132,7 @@ if (process.env.SENTRY_AUTH_TOKEN) {
sourceMapDir, sourceMapDir,
] ]
try { try {
execSync(cmd.join(' '), {stdio: 'inherit', cwd: projectRoot}) execFileSync('sentry-cli', args, {stdio: 'inherit', cwd: projectRoot})
console.log('Sentry source map upload complete') console.log('Sentry source map upload complete')
} catch (e) { } catch (e) {
console.error('Sentry source map upload failed:', e.message) console.error('Sentry source map upload failed:', e.message)