@modlogtv/zenv 2.0.4 → 2.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.
Files changed (3) hide show
  1. package/bin/zenv +0 -0
  2. package/install.js +2 -4
  3. package/package.json +6 -6
package/bin/zenv CHANGED
Binary file
package/install.js CHANGED
@@ -40,10 +40,8 @@ function main() {
40
40
  const binDir = path.join(__dirname, "bin");
41
41
  const targetBinary = path.join(binDir, process.platform === "win32" ? "zenv.exe" : "zenv");
42
42
 
43
- // Skip if binary already exists (e.g., local development)
44
- if (fs.existsSync(targetBinary)) {
45
- return;
46
- }
43
+ // Always copy platform-specific binary to ensure correct architecture
44
+ // (the package may ship with a default binary that doesn't match the current platform)
47
45
 
48
46
  // Create bin directory
49
47
  if (!fs.existsSync(binDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modlogtv/zenv",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Zod-powered environment variable validation and generation for TypeScript/Node.js projects.",
5
5
  "keywords": [
6
6
  "env",
@@ -33,11 +33,11 @@
33
33
  "postinstall": "node install.js"
34
34
  },
35
35
  "optionalDependencies": {
36
- "@modlogtv/zenv-darwin-arm64": "2.0.4",
37
- "@modlogtv/zenv-darwin-x64": "2.0.4",
38
- "@modlogtv/zenv-linux-arm64": "2.0.4",
39
- "@modlogtv/zenv-linux-x64": "2.0.4",
40
- "@modlogtv/zenv-win32-x64": "2.0.4"
36
+ "@modlogtv/zenv-darwin-arm64": "2.0.5",
37
+ "@modlogtv/zenv-darwin-x64": "2.0.5",
38
+ "@modlogtv/zenv-linux-arm64": "2.0.5",
39
+ "@modlogtv/zenv-linux-x64": "2.0.5",
40
+ "@modlogtv/zenv-win32-x64": "2.0.5"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=16"