houdini-react 2.0.0-go.7 → 2.0.0-go.9
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 +10 -10
- package/postInstall.js +6 -6
- /package/{shim.cjs → bin/houdini-react} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-react",
|
|
3
|
-
"version": "2.0.0-go.
|
|
3
|
+
"version": "2.0.0-go.9",
|
|
4
4
|
"description": "The React plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"express": "^4.18.2",
|
|
36
36
|
"graphql": "^15.8.0",
|
|
37
37
|
"graphql-yoga": "^4.0.4",
|
|
38
|
-
"houdini": "^2.0.0-go.
|
|
38
|
+
"houdini": "^2.0.0-go.9",
|
|
39
39
|
"react": "^19.0.0",
|
|
40
40
|
"react-dom": "^19.0.0",
|
|
41
41
|
"react-streaming-compat": "^0.3.18",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"use-deep-compare-effect": "^1.8.1"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
|
+
"bin",
|
|
47
48
|
"postInstall.js",
|
|
48
49
|
"runtime",
|
|
49
50
|
"server",
|
|
50
|
-
"shim.cjs",
|
|
51
51
|
"vite"
|
|
52
52
|
],
|
|
53
53
|
"exports": {
|
|
@@ -80,14 +80,14 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"optionalDependencies": {
|
|
83
|
-
"houdini-react-darwin-x64": "2.0.0-go.
|
|
84
|
-
"houdini-react-darwin-arm64": "2.0.0-go.
|
|
85
|
-
"houdini-react-linux-x64": "2.0.0-go.
|
|
86
|
-
"houdini-react-linux-arm64": "2.0.0-go.
|
|
87
|
-
"houdini-react-win32-x64": "2.0.0-go.
|
|
88
|
-
"houdini-react-win32-arm64": "2.0.0-go.
|
|
83
|
+
"houdini-react-darwin-x64": "2.0.0-go.9",
|
|
84
|
+
"houdini-react-darwin-arm64": "2.0.0-go.9",
|
|
85
|
+
"houdini-react-linux-x64": "2.0.0-go.9",
|
|
86
|
+
"houdini-react-linux-arm64": "2.0.0-go.9",
|
|
87
|
+
"houdini-react-win32-x64": "2.0.0-go.9",
|
|
88
|
+
"houdini-react-win32-arm64": "2.0.0-go.9"
|
|
89
89
|
},
|
|
90
|
-
"bin": "
|
|
90
|
+
"bin": "bin/houdini-react",
|
|
91
91
|
"scripts": {
|
|
92
92
|
"compile": "scripts build-go",
|
|
93
93
|
"typedefs": "scripts typedefs --plugin --go-package",
|
package/postInstall.js
CHANGED
|
@@ -5,7 +5,7 @@ const https = require('https')
|
|
|
5
5
|
const child_process = require('child_process')
|
|
6
6
|
|
|
7
7
|
// Adjust the version you want to install. You can also make this dynamic.
|
|
8
|
-
const BINARY_DISTRIBUTION_VERSION = '2.0.0-go.
|
|
8
|
+
const BINARY_DISTRIBUTION_VERSION = '2.0.0-go.9'
|
|
9
9
|
|
|
10
10
|
// Windows binaries end with .exe so we need to special case them.
|
|
11
11
|
const binaryName = process.platform === 'win32' ? 'houdini-react.exe' : 'houdini-react'
|
|
@@ -228,8 +228,8 @@ function maybeOptimizePackage() {
|
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
const shimPath = path.join(__dirname, '
|
|
232
|
-
const tempPath = path.join(__dirname, '
|
|
231
|
+
const shimPath = path.join(__dirname, 'bin', packageJSON.name)
|
|
232
|
+
const tempPath = path.join(__dirname, 'bin', `${packageJSON.name}-temp`)
|
|
233
233
|
|
|
234
234
|
try {
|
|
235
235
|
// First create a hard link to avoid taking up additional disk space
|
|
@@ -278,7 +278,7 @@ function validateBinaryVersion(binaryPath) {
|
|
|
278
278
|
function applyManualBinaryPathOverride(overridePath) {
|
|
279
279
|
console.log(`[${packageJSON.name}] Using manual binary path: ${overridePath}`);
|
|
280
280
|
|
|
281
|
-
const shimPath = path.join(__dirname, '
|
|
281
|
+
const shimPath = path.join(__dirname, 'bin', packageJSON.name);
|
|
282
282
|
const shimContent = `#!/usr/bin/env node
|
|
283
283
|
require('child_process').execFileSync(${JSON.stringify(overridePath)}, process.argv.slice(2), { stdio: 'inherit' });
|
|
284
284
|
`;
|
|
@@ -320,7 +320,7 @@ if (!isPlatformSpecificPackageInstalled()) {
|
|
|
320
320
|
maybeOptimizePackage();
|
|
321
321
|
|
|
322
322
|
// Final validation
|
|
323
|
-
const shimPath = path.join(__dirname, '
|
|
323
|
+
const shimPath = path.join(__dirname, 'bin', packageJSON.name);
|
|
324
324
|
if (isShimJS) {
|
|
325
325
|
// Validate the JavaScript shim can find and run the binary
|
|
326
326
|
if (!validateBinaryVersion(shimPath)) {
|
|
@@ -336,7 +336,7 @@ if (!isPlatformSpecificPackageInstalled()) {
|
|
|
336
336
|
maybeOptimizePackage();
|
|
337
337
|
|
|
338
338
|
// Final validation
|
|
339
|
-
const shimPath = path.join(__dirname, '
|
|
339
|
+
const shimPath = path.join(__dirname, 'bin', packageJSON.name);
|
|
340
340
|
if (isShimJS) {
|
|
341
341
|
// Validate the JavaScript shim can find and run the binary
|
|
342
342
|
if (!validateBinaryVersion(shimPath)) {
|
|
File without changes
|