esmate 2.0.0 → 2.1.0
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/dist/commands/task.d.ts +1 -0
- package/dist/commands/task.js +1 -0
- package/dist/utils.js +2 -2
- package/package.json +10 -7
package/dist/commands/task.d.ts
CHANGED
package/dist/commands/task.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_citty__ from "citty";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_consola__ from "consola";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_es_toolkit_82663681__ from "es-toolkit";
|
|
4
|
+
import "@dotenvx/dotenvx/config";
|
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE__pkg_js_ce8daa14__ from "../pkg.js";
|
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__ from "../utils.js";
|
|
6
7
|
const task_task = (0, __WEBPACK_EXTERNAL_MODULE_citty__.defineCommand)({
|
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.
|
|
4
|
+
"version": "2.1.0",
|
|
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
|
|
32
|
+
"concurrently": "^9.2.1",
|
|
32
33
|
"consola": "^3.4.2",
|
|
33
|
-
"es-toolkit": "^1.
|
|
34
|
+
"es-toolkit": "^1.39.10",
|
|
34
35
|
"find-up": "^7.0.0",
|
|
35
|
-
"nypm": "^0.6.
|
|
36
|
+
"nypm": "^0.6.2"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@rslib/core": "^0.7.1",
|
|
39
|
-
"@types/node": "^22.
|
|
40
|
-
"tsx": "^4.
|
|
40
|
+
"@types/node": "^22.18.6",
|
|
41
|
+
"tsx": "^4.20.6",
|
|
41
42
|
"type-fest": "^4.41.0",
|
|
42
|
-
"typescript": "^5.
|
|
43
|
+
"typescript": "^5.9.2",
|
|
44
|
+
"@esmate/prettier": "1.0.4",
|
|
45
|
+
"@esmate/eslint": "1.0.3"
|
|
43
46
|
},
|
|
44
47
|
"scripts": {
|
|
45
48
|
"build": "rslib build",
|