@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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/package.json +20 -29
  3. 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
  [![Version](https://img.shields.io/npm/v/@adobe/aio-cli-lib-app-config.svg)](https://npmjs.org/package/@adobe/aio-cli-lib-app-config)
14
14
  [![Downloads/week](https://img.shields.io/npm/dw/@adobe/aio-cli-lib-app-config.svg)](https://npmjs.org/package/@adobe/aio-cli-lib-app-config)
15
- ![Node.js CI](https://github.com/adobe/aio-cli-lib-app-configworkflows/Node.js%20CI/badge.svg)
15
+ [![Node.js CI](https://github.com/adobe/aio-cli-lib-app-config/actions/workflows/node.js.yml/badge.svg)](https://github.com/adobe/aio-cli-lib-app-config/actions/workflows/node.js.yml)
16
16
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
17
17
  [![Codecov Coverage](https://img.shields.io/codecov/c/github/adobe/aio-cli-lib-app-config/master.svg?style=flat-square)](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 a Firefly app and extensions
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.1",
4
- "description": "node lib to provide a consistent interface to various config files that make up a Firefly app and extensions",
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": "^2.0.0",
21
- "@adobe/aio-lib-core-logging": "^1.1.2",
22
- "@adobe/aio-lib-env": "^1.0.0",
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": "^1.2.0",
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": "^6.2.2",
41
- "eslint-config-standard": "^14.1.0",
42
- "eslint-plugin-import": "^2.18.0",
43
- "eslint-plugin-jest": "^23.1.1",
44
- "eslint-plugin-jsdoc": "^25.0.1",
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": "^4.2.1",
37
+ "eslint-plugin-promise": "^6",
38
+ "eslint-plugin-n": "^15",
47
39
  "eslint-plugin-standard": "^4.0.0",
48
- "jest": "^26.6.3",
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
- "tsd-jsdoc": "^2.4.0"
46
+ "typescript": "^4.5.2"
57
47
  },
58
48
  "engines": {
59
- "node": ">=12.0.0"
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: false })
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).map(([k, v]) => {
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
  })