Skip to content

Commit 983e473

Browse files
committed
🚑 windows
1 parent 65421fd commit 983e473

File tree

7 files changed

+20
-17
lines changed

7 files changed

+20
-17
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-editor-cli",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "GraphQL -> anything. Use GraphQL as your source of truth. GraphQL Editor Official CLI.",
55
"main": "lib/api.js",
66
"author": "Artur Czemiel",

packages/cli/src/commands/gei/integrate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'url';
44
import { spawn } from 'child_process';
55
import { DEFAULT_INTEGRATION_PATH } from '@/commands/gei/shared/consts.js';
66
import { Config } from '@/Configuration/index.js';
7-
7+
import os from 'os';
88
const makeAbs = ({ integrationPath }: { integrationPath: string }) => {
99
if (integrationPath && !path.isAbsolute(integrationPath)) {
1010
integrationPath = path.join(process.cwd(), integrationPath);
@@ -61,6 +61,7 @@ export const integrateStuccoJson = async (props?: {
6161
{
6262
cwd: process.cwd(),
6363
stdio: ['ignore', 'ignore', 'pipe'],
64+
shell: os.platform() === 'win32',
6465
},
6566
);
6667
let stderr = [] as Uint8Array[];

packages/cli/src/common/spawn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ChildProcess, spawn } from 'child_process';
22
import path from 'path';
33
import { SIGINT } from 'constants';
44
import { findNodeModules } from '@/api.js';
5+
import os from 'os';
56

67
export const terminate = async (ch?: ChildProcess): Promise<void | number> => {
78
if (!ch) return;
@@ -35,6 +36,7 @@ export const spawnPromise = async ({
3536
['PATH']: `${path.join(nodeModules, '.bin')}:${process.env.PATH}`,
3637
...envs,
3738
},
39+
shell: os.platform() === 'win32',
3840
});
3941
return new Promise<ChildProcess>((resolve, reject) => {
4042
child.on('error', reject);

packages/sandbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sandbox",
33
"private": true,
4-
"version": "0.8.0",
4+
"version": "0.8.1",
55
"description": "GraphQL -> anything. Use GraphQL as your source of truth. GraphQL Editor Official CLI.",
66
"author": "Artur Czemiel",
77
"license": "MIT",

packages/sandbox/stucco.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"resolvers": {
3-
"Query.restProxy": {
4-
"resolve": {
5-
"name": "lib/handler"
6-
}
2+
"resolvers": {
3+
"Query.restProxy": {
4+
"resolve": {
5+
"name": "lib/handler"
6+
}
7+
}
78
}
8-
}
9-
}
9+
}

0 commit comments

Comments
 (0)