@adobe/aio-cli-lib-app-config 0.2.1 → 0.2.2-pre.2022-07-21.sha-19131c23
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/README.md +2 -2
- package/package.json +20 -29
- package/src/index.js +2 -2
package/README.md
CHANGED
|
@@ -12,14 +12,14 @@ governing permissions and limitations under the License.
|
|
|
12
12
|
|
|
13
13
|
[](https://npmjs.org/package/@adobe/aio-cli-lib-app-config)
|
|
14
14
|
[](https://npmjs.org/package/@adobe/aio-cli-lib-app-config)
|
|
15
|
-
](https://github.com/adobe/aio-cli-lib-app-config/actions/workflows/node.js.yml)
|
|
16
16
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
17
17
|
[](https://codecov.io/gh/adobe/aio-cli-lib-app-config/)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
# aio-cli-lib-app-config
|
|
21
21
|
|
|
22
|
-
node lib to provide a consistent interface to various config files that make up
|
|
22
|
+
node lib to provide a consistent interface to various config files that make up Adobe Developer App Builder applications and extensions
|
|
23
23
|
|
|
24
24
|
### Loading the app config returns an object that describes the entire applications.
|
|
25
25
|
Including:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-cli-lib-app-config",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "node lib to provide a consistent interface to various config files that make up
|
|
3
|
+
"version": "0.2.2-pre.2022-07-21.sha-19131c23",
|
|
4
|
+
"description": "node lib to provide a consistent interface to various config files that make up Adobe Developer App Builder applications and extensions",
|
|
5
5
|
"repository": "https://github.com/adobe/aio-cli-lib-app-config/",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "src/index.js",
|
|
@@ -17,46 +17,36 @@
|
|
|
17
17
|
"generate-docs": "npm run typings && npm run jsdoc"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@adobe/aio-lib-core-config": "
|
|
21
|
-
"@adobe/aio-lib-core-logging": "
|
|
22
|
-
"@adobe/aio-lib-env": "
|
|
23
|
-
"archiver": "^5.0.0",
|
|
24
|
-
"cross-fetch": "^3.0.4",
|
|
25
|
-
"execa": "^4.0.3",
|
|
20
|
+
"@adobe/aio-lib-core-config": "next",
|
|
21
|
+
"@adobe/aio-lib-core-logging": "next",
|
|
22
|
+
"@adobe/aio-lib-env": "next",
|
|
26
23
|
"fs-extra": "^9.0.1",
|
|
27
|
-
"globby": "^11.0.1",
|
|
28
24
|
"js-yaml": "^3.14.0",
|
|
29
|
-
"lodash.clonedeep": "^4.5.0"
|
|
30
|
-
"semver": "^7.3.2",
|
|
31
|
-
"sha1": "^1.1.1"
|
|
25
|
+
"lodash.clonedeep": "^4.5.0"
|
|
32
26
|
},
|
|
33
27
|
"devDependencies": {
|
|
34
|
-
"@adobe/eslint-config-aio-lib-config": "^
|
|
35
|
-
"@types/node-fetch": "^2.5.4",
|
|
28
|
+
"@adobe/eslint-config-aio-lib-config": "^2",
|
|
36
29
|
"babel-runtime": "^6.26.0",
|
|
37
|
-
"codecov": "^3.5.0",
|
|
38
|
-
"dotenv": "^8.1.0",
|
|
39
30
|
"eol": "^0.9.1",
|
|
40
|
-
"eslint": "^
|
|
41
|
-
"eslint-config-standard": "^
|
|
42
|
-
"eslint-plugin-import": "^2.
|
|
43
|
-
"eslint-plugin-jest": "^23
|
|
44
|
-
"eslint-plugin-jsdoc": "^
|
|
31
|
+
"eslint": "^8",
|
|
32
|
+
"eslint-config-standard": "^17",
|
|
33
|
+
"eslint-plugin-import": "^2.25.3",
|
|
34
|
+
"eslint-plugin-jest": "^23",
|
|
35
|
+
"eslint-plugin-jsdoc": "^37",
|
|
45
36
|
"eslint-plugin-node": "^11.1.0",
|
|
46
|
-
"eslint-plugin-promise": "^
|
|
37
|
+
"eslint-plugin-promise": "^6",
|
|
38
|
+
"eslint-plugin-n": "^15",
|
|
47
39
|
"eslint-plugin-standard": "^4.0.0",
|
|
48
|
-
"jest": "^
|
|
49
|
-
"jest-fetch-mock": "^3.0.2",
|
|
40
|
+
"jest": "^27",
|
|
50
41
|
"jest-junit": "^10.0.0",
|
|
51
42
|
"jest-plugin-fs": "^2.9.0",
|
|
52
43
|
"jsdoc": "^3.6.3",
|
|
53
44
|
"jsdoc-to-markdown": "^5.0.0",
|
|
54
|
-
"openapi-schema-validator": "^3.0.3",
|
|
55
45
|
"stdout-stderr": "^0.1.9",
|
|
56
|
-
"
|
|
46
|
+
"typescript": "^4.5.2"
|
|
57
47
|
},
|
|
58
48
|
"engines": {
|
|
59
|
-
"node": "
|
|
49
|
+
"node": "^14.18 || ^16.13 || >=18"
|
|
60
50
|
},
|
|
61
51
|
"jest": {
|
|
62
52
|
"collectCoverage": true,
|
|
@@ -81,5 +71,6 @@
|
|
|
81
71
|
"setupFilesAfterEnv": [
|
|
82
72
|
"./test/jest.setup.js"
|
|
83
73
|
]
|
|
84
|
-
}
|
|
85
|
-
|
|
74
|
+
},
|
|
75
|
+
"prereleaseSha": "19131c238681f1e3639cd3a37bd248e868bcee50"
|
|
76
|
+
}
|
package/src/index.js
CHANGED
|
@@ -135,7 +135,7 @@ function loadCommonConfig () {
|
|
|
135
135
|
aioConfigLoader.reload()
|
|
136
136
|
const aioConfig = aioConfigLoader.get() || {}
|
|
137
137
|
|
|
138
|
-
const packagejson = fs.readJsonSync('package.json', { throws:
|
|
138
|
+
const packagejson = fs.readJsonSync('package.json', { throws: true })
|
|
139
139
|
|
|
140
140
|
// defaults
|
|
141
141
|
// remove scoped name to use this for open whisk entities
|
|
@@ -291,7 +291,7 @@ function loadUserConfigLegacy (commonConfig) {
|
|
|
291
291
|
if (commonConfig.aio.cna !== undefined || commonConfig.aio.app !== undefined) {
|
|
292
292
|
aioLogger.warn('App config in \'.aio\' file is deprecated. Please move your \'.aio.app\' or \'.aio.cna\' to \'app.config.yaml\'.')
|
|
293
293
|
const appConfig = { ...commonConfig.aio.app, ...commonConfig.aio.cna }
|
|
294
|
-
Object.entries(appConfig).
|
|
294
|
+
Object.entries(appConfig).forEach(([k, v]) => {
|
|
295
295
|
legacyAppConfig[k] = v
|
|
296
296
|
includeIndex[`${defaults.APPLICATION_CONFIG_KEY}.${k}`] = { file: '.aio', key: `app.${k}` }
|
|
297
297
|
})
|