typeslayer 0.1.6 → 0.1.7
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 +4 -4
- package/scripts/postinstall.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typeslayer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Slay your TypeScript types",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"postinstall": "node scripts/postinstall.js"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@typeslayer/linux-x64": "0.1.
|
|
52
|
-
"@typeslayer/darwin-arm64": "0.1.
|
|
53
|
-
"@typeslayer/win32-x64": "0.1.
|
|
51
|
+
"@typeslayer/linux-x64": "0.1.7",
|
|
52
|
+
"@typeslayer/darwin-arm64": "0.1.7",
|
|
53
|
+
"@typeslayer/win32-x64": "0.1.7"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -50,7 +50,7 @@ const getBinaryInfo = () => {
|
|
|
50
50
|
(async () => {
|
|
51
51
|
try {
|
|
52
52
|
const { platformDir, binaryName, npmPackage } = getBinaryInfo();
|
|
53
|
-
const binariesDir = join(__dirname, "..", "
|
|
53
|
+
const binariesDir = join(__dirname, "..", "binaries", platformDir);
|
|
54
54
|
const binaryPath = join(binariesDir, binaryName);
|
|
55
55
|
|
|
56
56
|
// Skip if binary already exists
|
|
@@ -92,7 +92,7 @@ const getBinaryInfo = () => {
|
|
|
92
92
|
stdio: "inherit",
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
// Copy the binary from node_modules to our
|
|
95
|
+
// Copy the binary from node_modules to our binaries directory
|
|
96
96
|
const nodeModulesBinaryPath = join(
|
|
97
97
|
__dirname,
|
|
98
98
|
"..",
|