bluefairy 0.0.2 → 0.0.5

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.
@@ -1,9 +1,12 @@
1
1
  @echo off
2
2
  setlocal
3
3
  if "%BLUEFAIRY_HOME%"=="" set "BLUEFAIRY_HOME=%USERPROFILE%\.bluefairy"
4
+ set "BLUEFAIRY_CMD=%~dp0bluefairy.cmd"
5
+ if not exist "%BLUEFAIRY_CMD%" set "BLUEFAIRY_CMD=bluefairy.cmd"
4
6
 
5
- call bluefairy init --quiet >NUL 2>&1
7
+ call "%BLUEFAIRY_CMD%" init --quiet >NUL 2>&1
6
8
  if errorlevel 1 (
9
+ call "%BLUEFAIRY_CMD%" init
7
10
  endlocal & exit /b %errorlevel%
8
11
  )
9
12
 
@@ -2,8 +2,13 @@ if (-not $env:BLUEFAIRY_HOME) {
2
2
  $env:BLUEFAIRY_HOME = Join-Path $HOME ".bluefairy"
3
3
  }
4
4
 
5
- & bluefairy init --quiet *> $null
5
+ $bluefairyCmd = Join-Path $PSScriptRoot "bluefairy.cmd"
6
+ if (-not (Test-Path $bluefairyCmd)) {
7
+ $bluefairyCmd = "bluefairy.cmd"
8
+ }
9
+ & $bluefairyCmd init --quiet *> $null
6
10
  if ($LASTEXITCODE -ne 0) {
11
+ & $bluefairyCmd init
7
12
  return
8
13
  }
9
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluefairy",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "description": "A standalone package freshness guard for uv and npm.",
5
5
  "type": "module",
6
6
  "bin": {