newtype-cli 0.0.2 → 0.0.4
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.
- package/package.json +12 -12
- package/postinstall.mjs +6 -5
package/package.json
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.4",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"newtype-cli-linux-x64": "0.0.
|
|
13
|
-
"newtype-cli-linux-arm64-musl": "0.0.
|
|
14
|
-
"newtype-cli-darwin-x64-baseline": "0.0.
|
|
15
|
-
"newtype-cli-linux-x64-baseline": "0.0.
|
|
16
|
-
"newtype-cli-windows-x64-baseline": "0.0.
|
|
17
|
-
"newtype-cli-linux-arm64": "0.0.
|
|
18
|
-
"newtype-cli-linux-x64-baseline-musl": "0.0.
|
|
19
|
-
"newtype-cli-windows-x64": "0.0.
|
|
20
|
-
"newtype-cli-linux-x64-musl": "0.0.
|
|
21
|
-
"newtype-cli-darwin-x64": "0.0.
|
|
22
|
-
"newtype-cli-darwin-arm64": "0.0.
|
|
12
|
+
"newtype-cli-linux-x64": "0.0.4",
|
|
13
|
+
"newtype-cli-linux-arm64-musl": "0.0.4",
|
|
14
|
+
"newtype-cli-darwin-x64-baseline": "0.0.4",
|
|
15
|
+
"newtype-cli-linux-x64-baseline": "0.0.4",
|
|
16
|
+
"newtype-cli-windows-x64-baseline": "0.0.4",
|
|
17
|
+
"newtype-cli-linux-arm64": "0.0.4",
|
|
18
|
+
"newtype-cli-linux-x64-baseline-musl": "0.0.4",
|
|
19
|
+
"newtype-cli-windows-x64": "0.0.4",
|
|
20
|
+
"newtype-cli-linux-x64-musl": "0.0.4",
|
|
21
|
+
"newtype-cli-darwin-x64": "0.0.4",
|
|
22
|
+
"newtype-cli-darwin-arm64": "0.0.4"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -113,13 +113,14 @@ async function main() {
|
|
|
113
113
|
console.log("Wrapper script will handle binary execution")
|
|
114
114
|
} catch (error) {
|
|
115
115
|
console.error("Failed to setup newtype binary:", error.message)
|
|
116
|
-
|
|
116
|
+
console.error("This is not fatal - the wrapper script will attempt to find the binary at runtime.")
|
|
117
|
+
// Don't exit(1) - postinstall failure should not block installation
|
|
118
|
+
// The bin/newtype wrapper script handles binary resolution at runtime
|
|
117
119
|
}
|
|
118
120
|
}
|
|
119
121
|
|
|
120
|
-
|
|
121
|
-
main()
|
|
122
|
-
} catch (error) {
|
|
122
|
+
main().catch((error) => {
|
|
123
123
|
console.error("Postinstall script error:", error.message)
|
|
124
|
+
// Exit 0 so installation is not blocked
|
|
124
125
|
process.exit(0)
|
|
125
|
-
}
|
|
126
|
+
})
|