diff --git a/packages/app-mobile/components/NoteEditor/CodeMirror/CodeMirror.ts b/packages/app-mobile/components/NoteEditor/CodeMirror/CodeMirror.ts index 8e3743b37..80e0b8142 100644 --- a/packages/app-mobile/components/NoteEditor/CodeMirror/CodeMirror.ts +++ b/packages/app-mobile/components/NoteEditor/CodeMirror/CodeMirror.ts @@ -1,7 +1,7 @@ /* eslint-disable import/prefer-default-export */ // This contains the CodeMirror instance, which needs to be built into a bundle -// using `npm run buildInjectedJs`. This bundle is then loaded from +// using `yarn run buildInjectedJs`. This bundle is then loaded from // NoteEditor.tsx into the webview. // // In general, since this file is harder to debug due to the intermediate built diff --git a/packages/tools/release-android.ts b/packages/tools/release-android.ts index 849bd7d23..469a84c75 100644 --- a/packages/tools/release-android.ts +++ b/packages/tools/release-android.ts @@ -1,5 +1,5 @@ import * as fs from 'fs-extra'; -import { execCommandVerbose, execCommandWithPipes, githubRelease, githubOauthToken, fileExists, gitPullTry, completeReleaseWithChangelog } from './tool-utils'; +import { execCommandVerbose, execCommandWithPipes, githubRelease, githubOauthToken, fileExists, gitPullTry, completeReleaseWithChangelog, execCommand2 } from './tool-utils'; const path = require('path'); const fetch = require('node-fetch'); const uriTemplate = require('uri-template'); @@ -151,6 +151,9 @@ async function main() { const isPreRelease = argv.type === 'prerelease'; + process.chdir(rnDir); + await execCommand2('yarn run build', { showStdout: false }); + if (isPreRelease) console.info('Creating pre-release'); console.info('Updating version numbers in build.gradle...');