polish src/gradlew.ts

This commit is contained in:
Paul Merlin 2019-09-23 12:10:49 +02:00
parent 7a4f128c22
commit 091093ee61

View File

@ -1,9 +1,11 @@
export function wrapperFilename() { const IS_WINDOWS = process.platform === "win32";
const isWindows = process.platform === "win32";
return isWindows ? "gradlew.bat" : "gradlew";
export function wrapperFilename(): string {
return IS_WINDOWS ? "gradlew.bat" : "gradlew";
} }
export function installScriptFilename() {
const isWindows = process.platform === "win32"; export function installScriptFilename(): string {
return isWindows ? "gradle.bat" : "gradle"; return IS_WINDOWS ? "gradle.bat" : "gradle";
} }