@jcoreio/toolchain 3.9.0 → 3.9.1

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 (2) hide show
  1. package/package.json +1 -1
  2. package/util/findUps.cjs +10 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain",
3
- "version": "3.9.0",
3
+ "version": "3.9.1",
4
4
  "description": "base JS build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
package/util/findUps.cjs CHANGED
@@ -72,6 +72,7 @@ const toolchainManaged = (exports.toolchainManaged = {})
72
72
  for (const toolchainPkgJson of Object.values(toolchainPackageJsons)) {
73
73
  const toolchainPkgDeps = toolchainPkgJson.dependencies || {}
74
74
  const toolchainPkgDevDeps = toolchainPkgJson.devDependencies || {}
75
+ const toolchainPkgPeerDeps = toolchainPkgJson.peerDependencies || {}
75
76
  if (toolchainPkgJson.toolchainManaged) {
76
77
  for (const section in toolchainPkgJson.toolchainManaged) {
77
78
  if (!toolchainManaged[section]) toolchainManaged[section] = {}
@@ -79,9 +80,15 @@ for (const toolchainPkgJson of Object.values(toolchainPackageJsons)) {
79
80
  if (section.endsWith('ependencies')) {
80
81
  for (const dep in sectionCfg) {
81
82
  let version = sectionCfg[dep]
82
- if (version === '*')
83
- version = toolchainPkgDevDeps[dep] || toolchainPkgDeps[dep]
84
- if (version !== '*') toolchainManaged[section][dep] = version
83
+ if (version === '*') {
84
+ version =
85
+ toolchainPkgDevDeps[dep] ||
86
+ toolchainPkgDeps[dep] ||
87
+ toolchainPkgPeerDeps[dep]
88
+ }
89
+ if (version && version !== '*') {
90
+ toolchainManaged[section][dep] = version
91
+ }
85
92
  }
86
93
  continue
87
94
  }