@architect/inventory 2.2.0-RC.0 → 2.2.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/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@architect/inventory",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Architect project resource enumeration utility",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"@architect/asap": "~4.1.0",
|
|
24
24
|
"@architect/parser": "~5.0.2",
|
|
25
25
|
"@architect/utils": "~3.0.4",
|
|
26
|
-
"lambda-runtimes": "~1.0
|
|
26
|
+
"lambda-runtimes": "~1.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@architect/eslint-config": "~2.0.1",
|
|
30
30
|
"aws-sdk": "2.880.0",
|
|
31
31
|
"aws-sdk-mock": "~5.4.0",
|
|
32
32
|
"cross-env": "~7.0.3",
|
|
33
|
-
"eslint": "~8.0
|
|
34
|
-
"mock-fs": "~5.1.
|
|
33
|
+
"eslint": "~8.2.0",
|
|
34
|
+
"mock-fs": "~5.1.2",
|
|
35
35
|
"mock-require": "~3.0.3",
|
|
36
36
|
"nyc": "~15.1.0",
|
|
37
37
|
"tap-spec": "^5.0.0",
|
|
38
|
-
"tape": "^5.3.
|
|
38
|
+
"tape": "^5.3.2"
|
|
39
39
|
},
|
|
40
40
|
"eslintConfig": {
|
|
41
41
|
"extends": "@architect/eslint-config"
|
|
@@ -5,14 +5,14 @@ let is = require('../../../lib/is')
|
|
|
5
5
|
module.exports = function populateTablesStreams ({ type, item, dir, cwd, errors }) {
|
|
6
6
|
if (type === 'tables' && is.object(item)) {
|
|
7
7
|
let name = Object.keys(item)[0]
|
|
8
|
-
// Check for the legacy dir from before `@tables tablename stream true` generated
|
|
8
|
+
// Check for the legacy dir from before `@tables tablename stream true` generated a @tables-streams item
|
|
9
9
|
let legacySrc = join(cwd, dir, name)
|
|
10
10
|
let streamSrc = join(cwd, 'src', 'streams', name)
|
|
11
11
|
let tablesStreamsSrc = join(cwd, 'src', 'tables-streams', name)
|
|
12
12
|
|
|
13
13
|
let src
|
|
14
14
|
if (existsSync(legacySrc)) src = legacySrc
|
|
15
|
-
else if (existsSync(streamSrc)) src = streamSrc
|
|
15
|
+
else if (existsSync(streamSrc)) src = streamSrc // TODO [remove] in 10.0
|
|
16
16
|
else src = tablesStreamsSrc
|
|
17
17
|
|
|
18
18
|
let table = name
|