@toa.io/operations 0.20.0-dev.12 → 0.20.0-dev.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/operations",
3
- "version": "0.20.0-dev.12",
3
+ "version": "0.20.0-dev.14",
4
4
  "description": "Toa Deployment",
5
5
  "homepage": "https://toa.io",
6
6
  "author": {
@@ -26,10 +26,10 @@
26
26
  "test": "echo \"Error: run tests from root\" && exit 1"
27
27
  },
28
28
  "dependencies": {
29
- "@toa.io/filesystem": "0.20.0-dev.12",
30
- "@toa.io/generic": "0.20.0-dev.12",
31
- "@toa.io/yaml": "0.20.0-dev.12",
29
+ "@toa.io/filesystem": "0.20.0-dev.14",
30
+ "@toa.io/generic": "0.20.0-dev.14",
31
+ "@toa.io/yaml": "0.20.0-dev.14",
32
32
  "execa": "5.1.1"
33
33
  },
34
- "gitHead": "2b41c30d83b0435a3f3b2dfd27ccbc6a950c36e5"
34
+ "gitHead": "bb2aed156c9e6b76bb802628bb249d4dd7adcebe"
35
35
  }
@@ -14,7 +14,7 @@ const describe = (context, compositions, dependency) => {
14
14
  const components = get.components(compositions)
15
15
  const dependencies = get.dependencies(references)
16
16
  const variables = get.variables(context, dependency.variables)
17
- const credentials = context.registry.credentials
17
+ const credentials = context.registry?.credentials
18
18
 
19
19
  return {
20
20
  compositions,
@@ -13,7 +13,7 @@ COPY --chown=node:node . /composition
13
13
  {{build.run}}
14
14
 
15
15
  # run 'npm i' in each component
16
- RUN find . -maxdepth 1 -type d \( ! -name . \) -exec /bin/sh -c "cd '{}' && if [ -f package.json ]; then npm i --omit=dev; fi" \;
16
+ RUN for entry in *; do if [ -f "$entry/package.json" ]; then (cd $entry && npm i --omit=dev); fi; done
17
17
 
18
18
  USER node
19
19
  CMD toa compose *