git0 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/git0.js +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git0",
3
3
  "description": "CLI tool to search GitHub repositories, download source & releases for your system, and instantly set up, then install dependencies and open code editor.",
4
- "version": "0.2.7",
4
+ "version": "0.2.9",
5
5
  "author": "vtempest",
6
6
  "dependencies": {
7
7
  "chalk": "^5.4.1",
package/src/git0.js CHANGED
@@ -5,7 +5,7 @@ import { execSync, spawn } from 'child_process';
5
5
  import fs from 'fs';
6
6
  import path from 'path';
7
7
  import ora from 'ora';
8
- import GithubAPI from './github-api'
8
+ import GithubAPI from './github-api.js'
9
9
 
10
10
  const Github = new GithubAPI({ debug: false })
11
11
 
@@ -112,7 +112,7 @@ async function showPackageMenu(selectedRepo) {
112
112
  const downloadDir = path.resolve(process.cwd());
113
113
  fs.mkdirSync(downloadDir, { recursive: true });
114
114
 
115
- const downloadPath = path.join(downloadDir, asset.name);
115
+ const downloadPath = path.join(downloadDir, selectedPackage.asset.name);
116
116
  await Github.downloadPackage(selectedPackage.asset.browser_download_url, downloadPath);
117
117
  }
118
118