esmate 2.0.0 → 2.1.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.
@@ -1,3 +1,4 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE__dotenvx_dotenvx_634a298d__ from "@dotenvx/dotenvx";
1
2
  import * as __WEBPACK_EXTERNAL_MODULE_citty__ from "citty";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_consola__ from "consola";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_es_toolkit_82663681__ from "es-toolkit";
@@ -20,6 +21,9 @@ const task_task = (0, __WEBPACK_EXTERNAL_MODULE_citty__.defineCommand)({
20
21
  const task = __WEBPACK_EXTERNAL_MODULE__pkg_js_ce8daa14__.pkg.tasks[args.task];
21
22
  if (!task) return void __WEBPACK_EXTERNAL_MODULE_consola__.consola.error(`Task "${args.task}" not found in package.json`);
22
23
  const isParallel = (0, __WEBPACK_EXTERNAL_MODULE_es_toolkit_82663681__.isJSONObject)(task);
24
+ __WEBPACK_EXTERNAL_MODULE__dotenvx_dotenvx_634a298d__["default"].config({
25
+ quiet: true
26
+ });
23
27
  if (isParallel) (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.execParallelly)(task);
24
28
  else (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.execSingly)(task);
25
29
  } catch (error) {
package/dist/utils.js CHANGED
@@ -3,8 +3,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__ from "node:c
3
3
  import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
5
5
  function execSingly(command) {
6
- const { env } = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"];
7
6
  const cmd = Array.isArray(command) ? command.join(" && ") : command;
7
+ const { env } = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"];
8
8
  (0, __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__.spawnSync)(cmd, {
9
9
  shell: true,
10
10
  stdio: "inherit",
@@ -12,10 +12,10 @@ function execSingly(command) {
12
12
  });
13
13
  }
14
14
  async function execParallelly(commands) {
15
- const { env } = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"];
16
15
  const concurrentCommands = [];
17
16
  for (const [name, command] of Object.entries(commands)){
18
17
  const cmd = Array.isArray(command) ? command.join(" && ") : command;
18
+ const { env } = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__["default"];
19
19
  concurrentCommands.push({
20
20
  name,
21
21
  command: cmd,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "esmate",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.1.1",
5
5
  "description": "Uncomplicate JavaScript",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,19 +27,22 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
+ "@dotenvx/dotenvx": "^1.51.0",
30
31
  "citty": "^0.1.6",
31
- "concurrently": "^9.1.2",
32
+ "concurrently": "^9.2.1",
32
33
  "consola": "^3.4.2",
33
- "es-toolkit": "^1.35.0",
34
+ "es-toolkit": "^1.39.10",
34
35
  "find-up": "^7.0.0",
35
- "nypm": "^0.6.0"
36
+ "nypm": "^0.6.2"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@rslib/core": "^0.7.1",
39
- "@types/node": "^22.8.1",
40
- "tsx": "^4.19.4",
40
+ "@types/node": "^22.18.6",
41
+ "tsx": "^4.20.6",
41
42
  "type-fest": "^4.41.0",
42
- "typescript": "^5.8.3"
43
+ "typescript": "^5.9.2",
44
+ "@esmate/eslint": "1.0.3",
45
+ "@esmate/prettier": "1.0.4"
43
46
  },
44
47
  "scripts": {
45
48
  "build": "rslib build",