@storm-software/config-tools 1.17.1 → 1.19.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.18.0](https://github.com/storm-software/storm-ops/compare/config-tools-v1.17.1...config-tools-v1.18.0) (2024-01-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * **config-tools:** Added the `getConfigFileByName` function export ([9f56a9c](https://github.com/storm-software/storm-ops/commit/9f56a9ca2c1df0bccbf533cc63f15602e8de0dff))
7
+
8
+ ## [1.17.1](https://github.com/storm-software/storm-ops/compare/config-tools-v1.17.0...config-tools-v1.17.1) (2024-01-19)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **config-tools:** Added the `defineConfig` function to type-check config options ([0676271](https://github.com/storm-software/storm-ops/commit/0676271161ec4a04715fb495f55042328a9f116f))
14
+
1
15
  # [1.17.0](https://github.com/storm-software/storm-ops/compare/config-tools-v1.16.2...config-tools-v1.17.0) (2024-01-19)
2
16
 
3
17
 
package/declarations.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { CosmiconfigResult } from "cosmiconfig";
1
2
  import type * as z from "zod";
2
3
  import type { StormConfigSchema } from "./src/schema";
3
4
 
@@ -73,6 +74,19 @@ declare function createStormConfig<
73
74
  ): StormConfig<TExtensionName, TExtensionConfig>;
74
75
  export { createStormConfig };
75
76
 
77
+ /**
78
+ * Get the config file for the current Storm workspace
79
+ *
80
+ * @param fileName - The name of the config file to search for
81
+ * @param filePath - The path to search for the config file in
82
+ * @returns The config file for the current Storm workspace
83
+ */
84
+ declare function getConfigFileByName(
85
+ fileName: string,
86
+ filePath?: string
87
+ ): Promise<CosmiconfigResult>;
88
+ export { getConfigFileByName };
89
+
76
90
  /**
77
91
  * Get the config file for the current Storm workspace
78
92
  *