@jannael/glinter 1.2.6 → 1.2.7

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/dist/index.js +8 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2283,7 +2283,10 @@ import path from "path";
2283
2283
  class BunAliasUnix {
2284
2284
  async setAlias(name, value) {
2285
2285
  const profilePath = this.getUnixProfilePath();
2286
- fs.mkdirSync(path.dirname(profilePath), { recursive: true });
2286
+ const dir = path.dirname(profilePath);
2287
+ if (!fs.existsSync(dir)) {
2288
+ fs.mkdirSync(dir, { recursive: true });
2289
+ }
2287
2290
  const current = fs.existsSync(profilePath) ? fs.readFileSync(profilePath, "utf8") : "";
2288
2291
  const updated = this.upsertUnixProfileAlias(current, name, value);
2289
2292
  fs.writeFileSync(profilePath, updated);
@@ -2329,7 +2332,10 @@ import path2 from "path";
2329
2332
  class BunAliasWindows {
2330
2333
  async setAlias(name, value) {
2331
2334
  const psProfilePath = this.getWindowsProfilePath();
2332
- fs2.mkdirSync(path2.dirname(psProfilePath), { recursive: true });
2335
+ const dir = path2.dirname(psProfilePath);
2336
+ if (!fs2.existsSync(dir)) {
2337
+ fs2.mkdirSync(dir, { recursive: true });
2338
+ }
2333
2339
  const current = fs2.existsSync(psProfilePath) ? fs2.readFileSync(psProfilePath, "utf8") : "";
2334
2340
  const updated = this.upsertWindowsProfileFunction(current, name, value);
2335
2341
  fs2.writeFileSync(psProfilePath, updated);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@jannael/glinter",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "A high-performance, transparent Git wrapper with interactive staging",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/Jannael/Glinter.git"
10
+ "url": "git+https://github.com/Jannael/Glinter.git"
11
11
  },
12
12
  "author": {
13
13
  "name": "Jannael",
@@ -45,7 +45,7 @@
45
45
  "prepare": "husky"
46
46
  },
47
47
  "bin": {
48
- "g": "./dist/index.js"
48
+ "g": "dist/index.js"
49
49
  },
50
50
  "engines": {
51
51
  "bun": ">=1.0.0"