slopcode 0.2.64 → 0.2.66

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 +12 -12
  2. package/postinstall.mjs +9 -0
package/package.json CHANGED
@@ -34,19 +34,19 @@
34
34
  "scripts": {
35
35
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
36
36
  },
37
- "version": "0.2.64",
37
+ "version": "0.2.66",
38
38
  "license": "MIT",
39
39
  "optionalDependencies": {
40
- "slopcode-bin-linux-arm64": "0.2.64",
41
- "slopcode-bin-linux-x64-musl": "0.2.64",
42
- "slopcode-bin-windows-x64": "0.2.64",
43
- "slopcode-bin-linux-x64-baseline-musl": "0.2.64",
44
- "slopcode-bin-linux-x64": "0.2.64",
45
- "slopcode-bin-windows-x64-baseline": "0.2.64",
46
- "slopcode-bin-darwin-x64-baseline": "0.2.64",
47
- "slopcode-bin-linux-x64-baseline": "0.2.64",
48
- "slopcode-bin-darwin-x64": "0.2.64",
49
- "slopcode-bin-darwin-arm64": "0.2.64",
50
- "slopcode-bin-linux-arm64-musl": "0.2.64"
40
+ "slopcode-bin-linux-arm64": "0.2.66",
41
+ "slopcode-bin-linux-x64-musl": "0.2.66",
42
+ "slopcode-bin-windows-x64": "0.2.66",
43
+ "slopcode-bin-linux-x64-baseline-musl": "0.2.66",
44
+ "slopcode-bin-linux-x64": "0.2.66",
45
+ "slopcode-bin-windows-x64-baseline": "0.2.66",
46
+ "slopcode-bin-darwin-x64-baseline": "0.2.66",
47
+ "slopcode-bin-linux-x64-baseline": "0.2.66",
48
+ "slopcode-bin-darwin-x64": "0.2.66",
49
+ "slopcode-bin-darwin-arm64": "0.2.66",
50
+ "slopcode-bin-linux-arm64-musl": "0.2.66"
51
51
  }
52
52
  }
package/postinstall.mjs CHANGED
@@ -138,6 +138,14 @@ function findBinary() {
138
138
  return
139
139
  }
140
140
 
141
+ function cacheSidecar(sourcePath) {
142
+ const source = path.join(path.dirname(sourcePath), "neovim")
143
+ if (!fs.existsSync(source)) return
144
+ const target = path.join(__dirname, "bin", "neovim")
145
+ fs.rmSync(target, { recursive: true, force: true })
146
+ fs.cpSync(source, target, { recursive: true, force: true })
147
+ }
148
+
141
149
  function prepareBinDirectory(binaryName) {
142
150
  const binDir = path.join(__dirname, "bin")
143
151
  const targetPath = path.join(binDir, binaryName)
@@ -192,6 +200,7 @@ async function main() {
192
200
  fs.copyFileSync(binaryPath, target)
193
201
  }
194
202
  fs.chmodSync(target, 0o755)
203
+ cacheSidecar(binaryPath)
195
204
  } catch (error) {
196
205
  console.error("Failed to setup slopcode binary cache:", error.message)
197
206
  process.exit(0)