Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/xcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
const msg =
`Cannot determine the path to Xcode by running 'xcode-select -p' command. ` +
`Original error: ${stderr || message}`;
throw new Error(msg);

Check warning on line 47 in lib/xcode.ts

View workflow job for this annotation

GitHub Actions / test (24)

There is no `cause` attached to the symptom error being thrown

Check warning on line 47 in lib/xcode.ts

View workflow job for this annotation

GitHub Actions / test (22)

There is no `cause` attached to the symptom error being thrown

Check warning on line 47 in lib/xcode.ts

View workflow job for this annotation

GitHub Actions / test (24)

There is no `cause` attached to the symptom error being thrown

Check warning on line 47 in lib/xcode.ts

View workflow job for this annotation

GitHub Actions / test (22)

There is no `cause` attached to the symptom error being thrown
}
// trim and remove trailing slash
const developerRoot = String(stdout).replace(/\/$/, '').trim();
Expand Down Expand Up @@ -93,9 +93,8 @@
* @returns Full path to Xcode Developer subfolder timeout
* @throws {Error} If there was an error while retrieving the path.
*/
export const getPath = util.memoize(
(timeout: number = XCRUN_TIMEOUT): Promise<string> =>
process.env.DEVELOPER_DIR ? getPathFromDeveloperDir() : getPathFromXcodeSelect(timeout),
export const getPath = util.memoize((timeout: number = XCRUN_TIMEOUT): Promise<string> =>
process.env.DEVELOPER_DIR ? getPathFromDeveloperDir() : getPathFromXcodeSelect(timeout),
);

/**
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
"@types/semver": "^7.7.1",
"chai": "^6.0.0",
"chai-as-promised": "^8.0.0",
"conventional-changelog-conventionalcommits": "^9.0.0",
"conventional-changelog-conventionalcommits": "^10.2.0",
"mocha": "^11.0.1",
"prettier": "^3.0.0",
"prettier": "^3.9.3",
"semantic-release": "^25.0.2",
"ts-node": "^10.9.1",
"typescript": "^6.0.2"
Expand Down
Loading