@ms-cloudpack/config
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -9,3 +9,3 @@ import type { GeneratedConfig } from './types/GeneratedConfig.js'; | ||
*/ | ||
export declare function getConfigPath(cwd?: string): { | ||
export declare function getConfigPath(cwd: string): { | ||
configPath: string; | ||
@@ -19,3 +19,3 @@ overridesPath: string; | ||
*/ | ||
export declare function readConfigSync(cwd?: string): CloudpackConfig; | ||
export declare function readConfigSync(cwd: string): CloudpackConfig; | ||
/** | ||
@@ -26,3 +26,3 @@ * Reads the config file asynchronously | ||
*/ | ||
export declare function readConfig(cwd?: string): Promise<CloudpackConfig>; | ||
export declare function readConfig(cwd: string): Promise<CloudpackConfig>; | ||
/** | ||
@@ -33,3 +33,3 @@ * Writes generated config. This is used for `init` to provide package overrides needed. | ||
*/ | ||
export declare function writeGeneratedConfig(config: GeneratedConfig, cwd?: string): Promise<void>; | ||
export declare function writeGeneratedConfig(config: GeneratedConfig, cwd: string): Promise<void>; | ||
//# sourceMappingURL=config.d.ts.map |
@@ -10,6 +10,5 @@ import path from 'path'; | ||
export function getConfigPath(cwd) { | ||
const basePath = cwd || process.cwd(); | ||
return { | ||
configPath: path.join(basePath, configFileName), | ||
overridesPath: path.join(basePath, generatedConfigFileName), | ||
configPath: path.join(cwd, configFileName), | ||
overridesPath: path.join(cwd, generatedConfigFileName), | ||
}; | ||
@@ -16,0 +15,0 @@ } |
{ | ||
"name": "@ms-cloudpack/config", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "Configuration handling for cloudpack.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29169
292