@ttoss/read-config-file 2.0.16 → 2.0.18

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/esm/index.js CHANGED
@@ -11,10 +11,14 @@ var __require = /* @__PURE__ */(x => typeof require !== "undefined" ? require :
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
12
12
  });
13
13
 
14
+ // src/index.ts
15
+ import fs from "fs";
16
+ import yaml from "js-yaml";
17
+
14
18
  // src/loadConfig.ts
19
+ import path from "path";
15
20
  import * as esbuild from "esbuild";
16
21
  import importSync from "import-sync";
17
- import path from "path";
18
22
  var loadConfig = /* @__PURE__ */__name(entryPoint => {
19
23
  const lastEntryPointName = entryPoint.split("/").pop();
20
24
  const filename = lastEntryPointName?.split(".")[0];
@@ -48,8 +52,6 @@ var loadConfig = /* @__PURE__ */__name(entryPoint => {
48
52
  }, "loadConfig");
49
53
 
50
54
  // src/index.ts
51
- import fs from "fs";
52
- import yaml from "js-yaml";
53
55
  var readConfigFileSync = /* @__PURE__ */__name(({
54
56
  configFilePath,
55
57
  options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/read-config-file",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "description": "Read a configuration file",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -23,9 +23,9 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "esbuild": "^0.25.8",
27
- "import-sync": "^2.2.2",
28
- "js-yaml": "^4.1.0"
26
+ "esbuild": "^0.27.0",
27
+ "import-sync": "^2.2.3",
28
+ "js-yaml": "^4.1.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/jest": "^30.0.0",
@@ -33,8 +33,8 @@
33
33
  "@types/react": "^19.2.6",
34
34
  "jest": "^30.2.0",
35
35
  "tsup": "^8.5.1",
36
- "@ttoss/config": "^1.35.10",
37
- "@ttoss/read-config-file-test": "^1.0.1"
36
+ "@fixtures/config-file-ts": "^1.0.1",
37
+ "@ttoss/config": "^1.35.12"
38
38
  },
39
39
  "keywords": [
40
40
  "config",