esmate 1.0.11 → 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/README.md CHANGED
@@ -22,14 +22,14 @@ npm install -D esmate
22
22
  First, you need to install Prettier:
23
23
 
24
24
  ```bash
25
- npm install -D prettier
25
+ npm install -D prettier @esmate/prettier
26
26
  ```
27
27
 
28
28
  Define your Prettier configuration in a `prettier.config.js` file:
29
29
 
30
30
  ```ts
31
31
  // @ts-check
32
- import { defineConfig } from "esmate/prettier";
32
+ import { defineConfig } from "@esmate/prettier";
33
33
 
34
34
  export default defineConfig({
35
35
  tailwind: {
@@ -60,14 +60,14 @@ esmate fmt
60
60
  First, you need to install ESLint:
61
61
 
62
62
  ```bash
63
- npm install -D eslint
63
+ npm install -D eslint @esmate/eslint
64
64
  ```
65
65
 
66
66
  Define your ESLint configuration in a `eslintrc.config.js` file:
67
67
 
68
68
  ```ts
69
69
  // @ts-check
70
- import { defineConfig } from "esmate/eslint";
70
+ import { defineConfig } from "@esmate/eslint";
71
71
 
72
72
  export default defineConfig({
73
73
  type: "app",
@@ -1,3 +1,4 @@
1
+ import "@dotenvx/dotenvx/config";
1
2
  export declare const task: import("citty").CommandDef<{
2
3
  task: {
3
4
  type: "positional";
@@ -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": "1.0.11",
4
+ "version": "2.1.0",
5
5
  "description": "Uncomplicate JavaScript",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -19,12 +19,6 @@
19
19
  "toolkit",
20
20
  "utility"
21
21
  ],
22
- "exports": {
23
- "./*": {
24
- "types": "./dist/exports/*.d.ts",
25
- "import": "./dist/exports/*.js"
26
- }
27
- },
28
22
  "bin": {
29
23
  "esm": "./dist/index.js",
30
24
  "esmate": "./dist/index.js"
@@ -33,21 +27,22 @@
33
27
  "dist"
34
28
  ],
35
29
  "dependencies": {
30
+ "@dotenvx/dotenvx": "^1.51.0",
36
31
  "citty": "^0.1.6",
37
- "concurrently": "^9.1.2",
32
+ "concurrently": "^9.2.1",
38
33
  "consola": "^3.4.2",
39
- "es-toolkit": "^1.35.0",
34
+ "es-toolkit": "^1.39.10",
40
35
  "find-up": "^7.0.0",
41
- "nypm": "^0.6.0",
42
- "@esmate/eslint": "1.0.3",
43
- "@esmate/prettier": "1.0.4"
36
+ "nypm": "^0.6.2"
44
37
  },
45
38
  "devDependencies": {
46
39
  "@rslib/core": "^0.7.1",
47
- "@types/node": "^22.8.1",
48
- "tsx": "^4.19.4",
40
+ "@types/node": "^22.18.6",
41
+ "tsx": "^4.20.6",
49
42
  "type-fest": "^4.41.0",
50
- "typescript": "^5.8.3"
43
+ "typescript": "^5.9.2",
44
+ "@esmate/prettier": "1.0.4",
45
+ "@esmate/eslint": "1.0.3"
51
46
  },
52
47
  "scripts": {
53
48
  "build": "rslib build",
@@ -1 +0,0 @@
1
- export * from "@esmate/eslint";
@@ -1 +0,0 @@
1
- export * from "@esmate/eslint";
@@ -1 +0,0 @@
1
- export * from "@esmate/prettier";
@@ -1 +0,0 @@
1
- export * from "@esmate/prettier";