@hammerframework/hammer-cli
Advanced tools
Comparing version 0.0.1-alpha.9 to 0.0.1-alpha.9.1
@@ -51,4 +51,10 @@ "use strict"; | ||
const RELEASE_URL = 'https://github.com/hammerframework/create-hammer-app/archive/v0.0.1-alpha.7.zip'; // TODO: Grab the latest release URL from GitHub | ||
const RELEASE_URL = 'https://api.github.com/repos/hammerframework/create-hammer-app/releases'; | ||
const latestReleaseZipFile = async () => { | ||
const response = await _axios.default.get(RELEASE_URL); | ||
return response.data[0].zipball_url; | ||
}; // TODO: Grab the latest release URL from GitHub | ||
const New = ({ | ||
@@ -92,4 +98,5 @@ args: [_commandName, targetDir] | ||
setNewMessage(_react.default.createElement(_ink.Text, null, "Downloading ", RELEASE_URL, "...")); | ||
await downloadFile(RELEASE_URL, tmpDownloadPath); | ||
const realeaseUrl = await latestReleaseZipFile(); | ||
setNewMessage(_react.default.createElement(_ink.Text, null, "Downloading ", realeaseUrl, "...")); | ||
await downloadFile(realeaseUrl, tmpDownloadPath); | ||
setNewMessage(_react.default.createElement(_ink.Text, null, "Extracting...")); | ||
@@ -96,0 +103,0 @@ const files = await unzip(tmpDownloadPath, newHammerAppDir); |
{ | ||
"name": "@hammerframework/hammer-cli", | ||
"description": "The Hammer Command Line", | ||
"version": "0.0.1-alpha.9", | ||
"version": "0.0.1-alpha.9.1", | ||
"license": "MIT", | ||
@@ -39,4 +39,3 @@ "repository": { | ||
"ink-testing-library": "^1.0.2" | ||
}, | ||
"gitHead": "c4f2b74b8cef67a028681d57e5c458e80bba3fde" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
523
23451
12