@wocker/ws 1.1.2 → 1.1.3-beta.1

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.
@@ -232,19 +232,11 @@ let ProjectService = class ProjectService extends core_1.ProjectService {
232
232
  const cli = new PublicCli();
233
233
  const cmd = cli.parseCommand(`command ${project.scripts[script]}`, 0);
234
234
  this.logService.debug(cmd);
235
- const exec = await container.exec({
236
- AttachStdin: true,
237
- AttachStdout: true,
238
- AttachStderr: true,
239
- Tty: process.stdin.isTTY,
240
- Cmd: [...cmd, ...args || []]
235
+ await this.dockerService.exec(project.containerName, {
236
+ tty: process.stdin.isTTY,
237
+ attach: true,
238
+ cmd: [...cmd, ...args || []]
241
239
  });
242
- const stream = await exec.start({
243
- hijack: true,
244
- stdin: true,
245
- Tty: process.stdin.isTTY
246
- });
247
- await this.dockerService.attachStream(stream);
248
240
  break;
249
241
  }
250
242
  case core_1.ProjectType.COMPOSE: {
@@ -258,7 +250,11 @@ let ProjectService = class ProjectService extends core_1.ProjectService {
258
250
  case core_1.ProjectType.IMAGE:
259
251
  case core_1.ProjectType.DOCKERFILE:
260
252
  case core_1.ProjectType.PRESET:
261
- await this.dockerService.exec(project.containerName, command, this.processService.stdout.isTTY ?? false);
253
+ await this.dockerService.exec(project.containerName, {
254
+ tty: this.processService.stdout.isTTY ?? false,
255
+ attach: true,
256
+ cmd: command
257
+ });
262
258
  break;
263
259
  case core_1.ProjectType.COMPOSE: {
264
260
  const [service, ...args] = command;
@@ -290,7 +286,7 @@ let ProjectService = class ProjectService extends core_1.ProjectService {
290
286
  stderr: true,
291
287
  follow: false
292
288
  });
293
- process.stdout.write(data);
289
+ this.processService.write(data);
294
290
  }
295
291
  break;
296
292
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wocker/ws",
3
3
  "type": "commonjs",
4
- "version": "1.1.2",
4
+ "version": "1.1.3-beta.1",
5
5
  "author": "Kris Papercut <krispcut@gmail.com>",
6
6
  "description": "Docker workspace for web projects",
7
7
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "make-coverage-badge": "make-coverage-badge"
36
36
  },
37
37
  "dependencies": {
38
- "@wocker/core": "1.1.2",
38
+ "@wocker/core": "1.1.3",
39
39
  "@wocker/docker-module": "^1.0.1",
40
40
  "@wocker/prompts": "^1.0.0",
41
41
  "@wocker/utils": "^2.0.6",