pinokiod 7.1.42 → 7.1.44

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.
@@ -4,7 +4,7 @@ const semver = require('semver')
4
4
 
5
5
  class Bluefairy {
6
6
  description = "Installs Bluefairy, a standalone package freshness guard."
7
- version = ">=0.0.23"
7
+ version = ">=0.0.25"
8
8
 
9
9
  packageName() {
10
10
  return "bluefairy"
@@ -66,9 +66,7 @@ class Bluefairy {
66
66
  path.resolve(runtimeHome, "shims", "npm.cmd"),
67
67
  path.resolve(runtimeHome, "shims", "bun.cmd"),
68
68
  path.resolve(runtimeHome, "shims", "uv.cmd"),
69
- path.resolve(runtimeHome, "shims", "uv.exe"),
70
69
  path.resolve(runtimeHome, "state", "cli-launcher.mjs"),
71
- path.resolve(runtimeHome, "state", "shim-launcher.exe"),
72
70
  ]
73
71
  }
74
72
  return [
@@ -97,6 +95,16 @@ class Bluefairy {
97
95
 
98
96
  async install(req, ondata) {
99
97
  const spec = this.packageSpec().replaceAll('"', '\\"')
98
+ const runtimeHome = this.runtimeHome()
99
+ if (fs.existsSync(runtimeHome)) {
100
+ try {
101
+ await fs.promises.rm(runtimeHome, { recursive: true, force: true })
102
+ ondata({ raw: `Removed existing Bluefairy runtime: ${runtimeHome}\r\n` })
103
+ } catch (error) {
104
+ const message = error && error.message ? error.message : String(error)
105
+ ondata({ raw: `Warning: failed to remove Bluefairy runtime ${runtimeHome}: ${message}\r\n` })
106
+ }
107
+ }
100
108
  await this.kernel.exec({
101
109
  message: `npm install -g "${spec}" --force`,
102
110
  }, ondata)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "7.1.42",
3
+ "version": "7.1.44",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {