@hubspot/local-dev-lib 0.5.0-experimental.14 → 0.5.0-experimental.15
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/config/index.d.ts +1 -1
- package/config/index.js +2 -2
- package/package.json +1 -1
package/config/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { HubSpotConfig, ConfigFlag, HubSpotConfigValidationResult } from '../typ
|
|
|
3
3
|
import { CmsPublishMode } from '../types/Files';
|
|
4
4
|
import { Environment } from '../types/Config';
|
|
5
5
|
export declare function getGlobalConfigFilePath(): string;
|
|
6
|
-
export declare function getLocalConfigFilePathIfExists(): string | null;
|
|
6
|
+
export declare function getLocalConfigFilePathIfExists(cwd?: string): string | null;
|
|
7
7
|
export declare function localConfigFileExists(): boolean;
|
|
8
8
|
export declare function globalConfigFileExists(): boolean;
|
|
9
9
|
export declare function configFileExists(): boolean;
|
package/config/index.js
CHANGED
|
@@ -22,11 +22,11 @@ function getGlobalConfigFilePath() {
|
|
|
22
22
|
return config_1.GLOBAL_CONFIG_PATH;
|
|
23
23
|
}
|
|
24
24
|
exports.getGlobalConfigFilePath = getGlobalConfigFilePath;
|
|
25
|
-
function getLocalConfigFilePathIfExists() {
|
|
25
|
+
function getLocalConfigFilePathIfExists(cwd) {
|
|
26
26
|
return (0, findup_sync_1.default)([
|
|
27
27
|
config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME,
|
|
28
28
|
config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME.replace('.yml', '.yaml'),
|
|
29
|
-
], { cwd: (0, path_1.getCwd)() });
|
|
29
|
+
], { cwd: cwd || (0, path_1.getCwd)() });
|
|
30
30
|
}
|
|
31
31
|
exports.getLocalConfigFilePathIfExists = getLocalConfigFilePathIfExists;
|
|
32
32
|
function localConfigFileExists() {
|
package/package.json
CHANGED