better-dx 0.2.4 → 0.2.5
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/config.d.ts +2 -1
- package/dist/index.js +13 -5
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DXConfig } from './types';
|
|
2
|
+
export declare function getConfig(): Promise<DXConfig>;
|
|
2
3
|
export declare const defaultConfig: DXConfig;
|
|
3
|
-
//
|
|
4
|
+
// For backwards compatibility - synchronous access with default fallback
|
|
4
5
|
export declare const config: DXConfig;
|
package/dist/index.js
CHANGED
|
@@ -5072,12 +5072,20 @@ var defaultGeneratedDir3 = resolve7(process12.cwd(), "src/generated");
|
|
|
5072
5072
|
var defaultConfig3 = {
|
|
5073
5073
|
verbose: true
|
|
5074
5074
|
};
|
|
5075
|
-
var
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5075
|
+
var _config = null;
|
|
5076
|
+
async function getConfig() {
|
|
5077
|
+
if (!_config) {
|
|
5078
|
+
_config = await loadConfig5({
|
|
5079
|
+
name: "development",
|
|
5080
|
+
alias: "dx",
|
|
5081
|
+
defaultConfig: defaultConfig3
|
|
5082
|
+
});
|
|
5083
|
+
}
|
|
5084
|
+
return _config;
|
|
5085
|
+
}
|
|
5086
|
+
var config3 = defaultConfig3;
|
|
5080
5087
|
export {
|
|
5088
|
+
getConfig,
|
|
5081
5089
|
defaultConfig3 as defaultConfig,
|
|
5082
5090
|
config3 as config
|
|
5083
5091
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-dx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"description": "All the development dependencies you need.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@types/bun": "^1.3.2",
|
|
78
78
|
"buddy-bot": "^0.9.12",
|
|
79
79
|
"bun-git-hooks": "^0.3.1",
|
|
80
|
-
"bun-plugin-dtsx": "0.
|
|
80
|
+
"bun-plugin-dtsx": "0.9.9",
|
|
81
81
|
"bunfig": "^0.15.6",
|
|
82
82
|
"pickier": "^0.1.9",
|
|
83
83
|
"ts-error-handling": "^0.1.0",
|