Skip to content

Commit 36a417d

Browse files
committed
Update url to use tar archive file instead of zip url
1 parent 976a18d commit 36a417d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

__tests__/download.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe("unzip", () => {
7676
const child_process = require("child_process");
7777
const fs = require("fs");
7878
const download = require("../lib/download");
79-
const zippath = path.resolve(__dirname, "fixtures", "output.zip");
79+
const zippath = path.resolve(__dirname, "fixtures", "output.tar.gz");
8080

8181
download.unzip(zippath, (err) => {
8282
try {

__tests__/fixtures/output.zip

-751 Bytes
Binary file not shown.

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ async function scaffoldRadFishApp(projectDirectoryPath) {
4040
try {
4141
await new Promise((resolve, reject) => {
4242
downloadFile(
43-
"https://github.com/NMFS-RADFish/boilerplate/archive/refs/tags/latest.zip",
44-
"boilerplate.zip",
43+
"https://github.com/NMFS-RADFish/boilerplate/archive/refs/tags/latest.tar.gz",
44+
"boilerplate.tar.gz",
4545
(err, res) => {
4646
if (err) {
4747
return reject(err);
@@ -52,7 +52,7 @@ async function scaffoldRadFishApp(projectDirectoryPath) {
5252
});
5353

5454
await new Promise((resolve, reject) => {
55-
unzip("boilerplate.zip", (err, res) => {
55+
unzip("boilerplate.tar.gz", (err, res) => {
5656
if (err) {
5757
return reject(err);
5858
}
@@ -74,7 +74,7 @@ async function scaffoldRadFishApp(projectDirectoryPath) {
7474
});
7575

7676
await new Promise((resolve, reject) => {
77-
fs.rm(path.resolve(process.cwd(), "boilerplate.zip"), (err, res) => {
77+
fs.rm(path.resolve(process.cwd(), "boilerplate.tar.gz"), (err, res) => {
7878
if (err) {
7979
return reject(err);
8080
}

0 commit comments

Comments
 (0)