solforge 0.2.20 → 0.2.21

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/start.cjs +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solforge",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "SolForge CLI installer",
5
5
  "license": "MIT",
6
6
  "repository": {
package/start.cjs CHANGED
@@ -31,7 +31,7 @@ function isInWorkspace() {
31
31
  function findBinaryInPath() {
32
32
  const pathDirs = (process.env.PATH || "").split(path.delimiter);
33
33
  const ext = process.platform === "win32" ? ".exe" : "";
34
- const binName = "solforge" + ext;
34
+ const binName = `solforge${ext}`;
35
35
 
36
36
  for (const dir of pathDirs) {
37
37
  const binPath = path.join(dir, binName);
@@ -44,7 +44,7 @@ function findBinaryInPath() {
44
44
  return binPath;
45
45
  }
46
46
  }
47
- } catch (err) {}
47
+ } catch (_err) {}
48
48
  }
49
49
  }
50
50
  return null;
@@ -144,7 +144,7 @@ function updateShellProfile(userBin) {
144
144
  fs.appendFileSync(configFile, `\n${pathExport}\n`);
145
145
  console.log(`✓ Added ${userBin} to PATH in ${configFile}`);
146
146
  console.log(`✓ Restart your ${shellType} or run: source ${configFile}`);
147
- } catch (error) {
147
+ } catch (_error) {
148
148
  console.log(`⚠️ Could not automatically update ${configFile}`);
149
149
  }
150
150
  }
@@ -158,7 +158,7 @@ async function install() {
158
158
  );
159
159
  }
160
160
 
161
- const { version, repository } = pkg();
161
+ const { repository } = pkg();
162
162
  const repo =
163
163
  process.env.SOLFORGE_REPO ||
164
164
  (repository &&