@ms-cloudpack/config 0.36.0 → 0.37.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/lib/constants.d.ts +7 -1
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +6 -0
- package/lib/constants.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -6,7 +6,13 @@ export declare const appConfigFileName = "cloudpack.config.json";
|
|
|
6
6
|
/**
|
|
7
7
|
* File name constants for the user defined app config JS.
|
|
8
8
|
*/
|
|
9
|
-
export declare const appConfigFileNamesJS:
|
|
9
|
+
export declare const appConfigFileNamesJS: readonly ["cloudpack.config.js", "cloudpack.config.mjs", "cloudpack.config.cjs"];
|
|
10
|
+
/**
|
|
11
|
+
* Glob pattern for matching any Cloudpack config file (basename only).
|
|
12
|
+
* Use with appropriate prefixes like `./` as needed.
|
|
13
|
+
* Matches: cloudpack.config.json, cloudpack.config.js, cloudpack.config.mjs, cloudpack.config.cjs
|
|
14
|
+
*/
|
|
15
|
+
export declare const appConfigFileGlob = "cloudpack.config.{json,js,mjs,cjs}";
|
|
10
16
|
export declare const generatedConfigFileName = "cloudpack.generated.json";
|
|
11
17
|
export declare const userPreferencesFileName = ".cloudpack.preferences.json";
|
|
12
18
|
/**
|
package/lib/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,oBAAoB,kFAAmF,CAAC;AAErH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,uCAAuC,CAAC;AAEtE,eAAO,MAAM,uBAAuB,6BAA6B,CAAC;AAElE,eAAO,MAAM,uBAAuB,gCAAgC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,eAAe,EAAE,MAAM,CAAC,CAE9E,CAAC;AAIF,oDAAoD;AACpD,eAAO,MAAM,2BAA2B,6EAAyC,CAAC;AAElF,8CAA8C;AAC9C,eAAO,MAAM,kBAAkB,uEAAmC,CAAC;AAEnE,oDAAoD;AACpD,eAAO,MAAM,wBAAwB,6EAAyC,CAAC"}
|
package/lib/constants.js
CHANGED
|
@@ -6,6 +6,12 @@ export const appConfigFileName = 'cloudpack.config.json';
|
|
|
6
6
|
* File name constants for the user defined app config JS.
|
|
7
7
|
*/
|
|
8
8
|
export const appConfigFileNamesJS = ['cloudpack.config.js', 'cloudpack.config.mjs', 'cloudpack.config.cjs'];
|
|
9
|
+
/**
|
|
10
|
+
* Glob pattern for matching any Cloudpack config file (basename only).
|
|
11
|
+
* Use with appropriate prefixes like `./` as needed.
|
|
12
|
+
* Matches: cloudpack.config.json, cloudpack.config.js, cloudpack.config.mjs, cloudpack.config.cjs
|
|
13
|
+
*/
|
|
14
|
+
export const appConfigFileGlob = 'cloudpack.config.{json,js,mjs,cjs}';
|
|
9
15
|
export const generatedConfigFileName = 'cloudpack.generated.json';
|
|
10
16
|
export const userPreferencesFileName = '.cloudpack.preferences.json';
|
|
11
17
|
/**
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,sBAAsB,CAAU,CAAC;AAErH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,oCAAoC,CAAC;AAEtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAoD;IACjF,SAAS,EAAE,6EAA6E;CACzF,CAAC;AAEF,MAAM,YAAY,GAAG,qDAAqD,CAAC;AAE3E,oDAAoD;AACpD,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,YAAY,uBAAuB,CAAC;AAElF,8CAA8C;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,YAAY,iBAAiB,CAAC;AAEnE,oDAAoD;AACpD,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,YAAY,uBAAuB,CAAC","sourcesContent":["import type { UserPreferences } from '@ms-cloudpack/common-types';\n\n/**\n * File name constant for the user defined app config JSON.\n */\nexport const appConfigFileName = 'cloudpack.config.json';\n\n/**\n * File name constants for the user defined app config JS.\n */\nexport const appConfigFileNamesJS = ['cloudpack.config.js', 'cloudpack.config.mjs', 'cloudpack.config.cjs'] as const;\n\n/**\n * Glob pattern for matching any Cloudpack config file (basename only).\n * Use with appropriate prefixes like `./` as needed.\n * Matches: cloudpack.config.json, cloudpack.config.js, cloudpack.config.mjs, cloudpack.config.cjs\n */\nexport const appConfigFileGlob = 'cloudpack.config.{json,js,mjs,cjs}';\n\nexport const generatedConfigFileName = 'cloudpack.generated.json';\n\nexport const userPreferencesFileName = '.cloudpack.preferences.json';\n\n/**\n * Object with descriptions of each user preference key.\n */\nexport const allUserPreferences: Readonly<Record<keyof UserPreferences, string>> = {\n cachePath: 'Absolute path to the cache folder, instead of the default <home>/.cloudpack',\n};\n\nconst schemaPrefix = 'https://unpkg.com/@ms-cloudpack/common-types/schema';\n\n/** unpkg URL for the GeneratedConfig JSON schema */\nexport const generatedAppConfigSchemaUrl = `${schemaPrefix}/GeneratedConfig.json`;\n\n/** unpkg URL for the AppConfig JSON schema */\nexport const appConfigSchemaUrl = `${schemaPrefix}/AppConfig.json`;\n\n/** unpkg URL for the UserPreferences JSON schema */\nexport const userPreferencesSchemaUrl = `${schemaPrefix}/UserPreferences.json`;\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { augmentAppConfig } from './readConfig/augmentAppConfig.js';
|
|
|
2
2
|
export { checkMatch } from './packageSettings/checkMatch.js';
|
|
3
3
|
export { ensureAppConfig } from './writeConfig/ensureAppConfig.js';
|
|
4
4
|
export { getBuiltInSettings } from './builtInSettings/getBuiltInSettings.js';
|
|
5
|
-
export { generatedConfigFileName, appConfigFileName } from './constants.js';
|
|
5
|
+
export { generatedConfigFileName, appConfigFileName, appConfigFileNamesJS, appConfigFileGlob } from './constants.js';
|
|
6
6
|
export { allUserPreferences } from './constants.js';
|
|
7
7
|
export { createPackageDefinitions } from './packageDefinitions/createPackageDefinitions.js';
|
|
8
8
|
export { getCachePath, getLocalCachePath } from './userPreferences/getCachePath.js';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM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AM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { augmentAppConfig } from './readConfig/augmentAppConfig.js';
|
|
|
2
2
|
export { checkMatch } from './packageSettings/checkMatch.js';
|
|
3
3
|
export { ensureAppConfig } from './writeConfig/ensureAppConfig.js';
|
|
4
4
|
export { getBuiltInSettings } from './builtInSettings/getBuiltInSettings.js';
|
|
5
|
-
export { generatedConfigFileName, appConfigFileName } from './constants.js';
|
|
5
|
+
export { generatedConfigFileName, appConfigFileName, appConfigFileNamesJS, appConfigFileGlob } from './constants.js';
|
|
6
6
|
export { allUserPreferences } from './constants.js';
|
|
7
7
|
export { createPackageDefinitions } from './packageDefinitions/createPackageDefinitions.js';
|
|
8
8
|
export { getCachePath, getLocalCachePath } from './userPreferences/getCachePath.js';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAChH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,UAAU,EAA0B,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wDAAwD,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC","sourcesContent":["export { augmentAppConfig } from './readConfig/augmentAppConfig.js';\nexport { checkMatch } from './packageSettings/checkMatch.js';\nexport { ensureAppConfig } from './writeConfig/ensureAppConfig.js';\nexport { getBuiltInSettings } from './builtInSettings/getBuiltInSettings.js';\nexport { generatedConfigFileName, appConfigFileName, appConfigFileNamesJS, appConfigFileGlob } from './constants.js';\nexport { allUserPreferences } from './constants.js';\nexport { createPackageDefinitions } from './packageDefinitions/createPackageDefinitions.js';\nexport { getCachePath, getLocalCachePath } from './userPreferences/getCachePath.js';\nexport { getConfigPath } from './getConfigPath.js';\nexport { getUserPreferencesPath, setMockUserPreferencesDir } from './userPreferences/getUserPreferencesPath.js';\nexport { getPackageSettings } from './packageSettings/getPackageSettings.js';\nexport { getGeneratedPackageSettings } from './packageSettings/getGeneratedPackageSettings.js';\nexport { readConfig, type ReadConfigOptions } from './readConfig/readConfig.js';\nexport { readGeneratedConfig } from './readConfig/readGeneratedConfig.js';\nexport { readAppConfig } from './readConfig/readAppConfig.js';\nexport { readUserPreferences } from './userPreferences/readUserPreferences.js';\nexport { writeGeneratedConfig } from './writeConfig/writeGeneratedConfig.js';\nexport { writeAppConfig } from './writeConfig/writeAppConfig.js';\nexport { ensureGeneratedSettingsForPackage } from './packageSettings/ensureGeneratedSettingsForPackage.js';\nexport { updateUserPreference } from './userPreferences/updateUserPreference.js';\nexport { validateMatch } from './packageSettings/validateMatch.js';\n"]}
|