@storm-software/config-tools 1.17.1 → 1.18.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 +7 -0
- package/declarations.d.ts +14 -0
- package/index.cjs +79 -79
- package/index.js +114 -114
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.17.1](https://github.com/storm-software/storm-ops/compare/config-tools-v1.17.0...config-tools-v1.17.1) (2024-01-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **config-tools:** Added the `defineConfig` function to type-check config options ([0676271](https://github.com/storm-software/storm-ops/commit/0676271161ec4a04715fb495f55042328a9f116f))
|
|
7
|
+
|
|
1
8
|
# [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
9
|
|
|
3
10
|
|
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
|
*
|