Skip to content

Commit

Permalink
doc: fix typo for fingerprint readme (expo#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo authored and sync committed Oct 16, 2023
1 parent acc171b commit 713d6e7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/preview-build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76328,7 +76328,7 @@ async function loadProjectConfig(cwd) {
catch (error) {
throw new Error(`Could not fetch the project info from ${cwd}, reason:\n${utils_errorMessage(error)}`);
}
return JSON.parse(stdout);
return JSON.parse(stdout.replace(/^[^{]+/, ''));
}

;// CONCATENATED MODULE: ./src/actions/preview-build.ts
Expand Down
2 changes: 1 addition & 1 deletion build/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23809,7 +23809,7 @@ async function loadProjectConfig(cwd) {
catch (error) {
throw new Error(`Could not fetch the project info from ${cwd}, reason:\n${utils_errorMessage(error)}`);
}
return JSON.parse(stdout);
return JSON.parse(stdout.replace(/^[^{]+/, ''));
}

// EXTERNAL MODULE: external "os"
Expand Down
2 changes: 1 addition & 1 deletion fingerprint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
uses: expo/expo-github-action/preview-build@main
- uses: actions/github-script@v6
if: ${{ github.event_name == 'pull_request' && github.steps.fingerprint.outputs.fingerprint-diff == '[]' }}
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff == '[]' }}
with:
script: |
try {
Expand Down
2 changes: 1 addition & 1 deletion src/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export async function loadProjectConfig(cwd: string): Promise<ExpoConfig> {
throw new Error(`Could not fetch the project info from ${cwd}, reason:\n${errorMessage(error)}`);
}

return JSON.parse(stdout);
return JSON.parse(stdout.replace(/^[^{]+/, ''));
}

0 comments on commit 713d6e7

Please sign in to comment.