jiek 2.2.3-alpha.3 → 2.2.3-alpha.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.
@@ -119,7 +119,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
119
119
 
120
120
  var name = "jiek";
121
121
  var type = "module";
122
- var version = "2.2.3-alpha.2";
122
+ var version = "2.2.3-alpha.3";
123
123
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
124
124
  var author = "YiJie <yijie4188@gmail.com>";
125
125
  var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
@@ -385,7 +385,11 @@ async function checkDependency(dependency) {
385
385
  const { notWorkspace } = getWD();
386
386
  const command = `pnpm install -${notWorkspace ? "" : "w"}D ${dependency}`;
387
387
  if (await prompts.confirm({ message: "Do you want to install it now?" })) {
388
- node_child_process.spawnSync(command);
388
+ node_child_process.execSync(command, {
389
+ stdio: "inherit",
390
+ cwd: process__default.default.cwd(),
391
+ env: process__default.default.env
392
+ });
389
393
  } else {
390
394
  console.warn(`You can run the command '${command}' to install it manually.`);
391
395
  process__default.default.exit(1);
@@ -7,7 +7,7 @@ import { isWorkspaceDir, getWorkspaceDir } from '@jiek/utils/getWorkspaceDir';
7
7
  import process$1 from 'node:process';
8
8
  import { MultiBar, Presets } from 'cli-progress';
9
9
  import { execaCommand } from 'execa';
10
- import { spawnSync } from 'node:child_process';
10
+ import { execSync } from 'node:child_process';
11
11
  import { confirm } from '@inquirer/prompts';
12
12
  import Koa from 'koa';
13
13
 
@@ -109,7 +109,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
109
109
 
110
110
  var name = "jiek";
111
111
  var type = "module";
112
- var version = "2.2.3-alpha.2";
112
+ var version = "2.2.3-alpha.3";
113
113
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
114
114
  var author = "YiJie <yijie4188@gmail.com>";
115
115
  var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
@@ -375,7 +375,11 @@ async function checkDependency(dependency) {
375
375
  const { notWorkspace } = getWD();
376
376
  const command = `pnpm install -${notWorkspace ? "" : "w"}D ${dependency}`;
377
377
  if (await confirm({ message: "Do you want to install it now?" })) {
378
- spawnSync(command);
378
+ execSync(command, {
379
+ stdio: "inherit",
380
+ cwd: process$1.cwd(),
381
+ env: process$1.env
382
+ });
379
383
  } else {
380
384
  console.warn(`You can run the command '${command}' to install it manually.`);
381
385
  process$1.exit(1);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jiek",
3
3
  "type": "module",
4
- "version": "2.2.3-alpha.3",
4
+ "version": "2.2.3-alpha.4",
5
5
  "description": "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.",
6
6
  "author": "YiJie <yijie4188@gmail.com>",
7
7
  "homepage": "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme",
@@ -1,4 +1,4 @@
1
- import { spawnSync } from 'node:child_process'
1
+ import { execSync } from 'node:child_process'
2
2
  import process from 'node:process'
3
3
 
4
4
  import { confirm } from '@inquirer/prompts'
@@ -13,7 +13,11 @@ export async function checkDependency(dependency: string) {
13
13
  const { notWorkspace } = getWD()
14
14
  const command = `pnpm install -${notWorkspace ? '' : 'w'}D ${dependency}`
15
15
  if (await confirm({ message: 'Do you want to install it now?' })) {
16
- spawnSync(command)
16
+ execSync(command, {
17
+ stdio: 'inherit',
18
+ cwd: process.cwd(),
19
+ env: process.env
20
+ })
17
21
  } else {
18
22
  console.warn(`You can run the command '${command}' to install it manually.`)
19
23
  process.exit(1)