@taiga-ui/syncer 0.299.0 → 0.301.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/bin/src/index.js CHANGED
@@ -11,7 +11,7 @@ if (syncerOptions) {
11
11
  ignorePackageNames: syncerOptions.ignorePackageNames,
12
12
  includePaths: syncerOptions.includePaths,
13
13
  matchPackageNames: syncerOptions.matchPackageNames,
14
- newVersion: packageJson.version,
14
+ newVersion: packageJson?.version,
15
15
  });
16
16
  }
17
17
  else {
@@ -46,15 +46,15 @@ function tuiBumpDeps(options) {
46
46
  Object.keys(deps)
47
47
  .filter((key) => tuiIsMatchedPackageName({ ignorePackageNames, matchPackageNames, name: key }))
48
48
  .forEach((key) => {
49
- if (typeof deps[key] === 'string') {
49
+ const value = deps[key];
50
+ if (typeof value === 'string') {
50
51
  deps[key] = isPeerDependency
51
- ? deps[key]?.replace(prevVersion, newVersion)
52
+ ? value.replace(prevVersion, newVersion)
52
53
  : `^${newVersion}`;
53
54
  }
54
55
  else if (deps[key]?.hasOwnProperty('requires')) {
55
56
  tuiBumpDeps({
56
- deps: deps[key]?.requires ??
57
- {},
57
+ deps: value?.requires ?? {},
58
58
  ignorePackageNames,
59
59
  isPeerDependency,
60
60
  matchPackageNames,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/syncer",
3
- "version": "0.299.0",
3
+ "version": "0.301.0",
4
4
  "description": "Taiga UI CLI tool for sync version in npm workspaces",
5
5
  "keywords": [
6
6
  "sync version"