@adinsure-ops/ops-cli 5.1.2 → 5.1.3

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/CHANGELOGS.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelogs
2
2
 
3
+ ## 5.1.3: 2024-07-19
4
+
5
+ - LJADIRD-46495: make the `ops npm:dependency-update` command process `package.json` files in hidden (sub)directories, too.
6
+
3
7
  ## 5.1.2: 2024-07-04
4
8
 
5
9
  - LJADIRD-43932: updated all core (oclif) and non-core dependencies
@@ -23,7 +23,7 @@ class Version extends CommandBase {
23
23
  const currentPrereleaseDate = moment().format('YYYYMM');
24
24
  const bumpedPackageName = [];
25
25
  // Find all package.json files that are not in node modules
26
- const searchPattern = ['**/package.json', '!**/node_modules'];
26
+ const searchPattern = ['**/package.json', '.**/package.json', '!**/node_modules'];
27
27
  if (excludeDirs) {
28
28
  for (const exclude of excludeDirs) {
29
29
  searchPattern.push(`!${exclude}`);
@@ -94,7 +94,7 @@ class Version extends CommandBase {
94
94
  updateDependencies(version, updatedPackages) {
95
95
  return __awaiter(this, void 0, void 0, function* () {
96
96
  // Find all package.json files that are not in node modules
97
- const paths = yield globby(['**/package.json', '!**/node_modules']);
97
+ const paths = yield globby(['**/package.json', '.**/package.json', '!**/node_modules']);
98
98
  for (const path of paths) {
99
99
  for (const packageName of updatedPackages) {
100
100
  const re = new RegExp('"' + packageName + '": "\\d+\\.\\d+\\..*"', 'g');
package/lib/lib/npm.js CHANGED
@@ -37,10 +37,10 @@ export default class NpmContext {
37
37
  return __awaiter(this, arguments, void 0, function* (context, packages = ['**/*'], excludes = ['']) {
38
38
  try {
39
39
  const workspaces = yield this.getWorkspaces();
40
- let searchPattern = ['package.json', '**/package.json', '!**/node_modules'];
40
+ let searchPattern = ['package.json', '**/package.json', '.**/package.json', '!**/node_modules'];
41
41
  const pkgs = [];
42
42
  if (workspaces.length > 0) {
43
- searchPattern = [...workspaces, 'package.json', '!**/node_modules'];
43
+ searchPattern = [...workspaces, 'package.json', '.*/package.json', '!**/node_modules'];
44
44
  }
45
45
  const pkgPaths = yield globby(searchPattern);
46
46
  for (const pkgPath of pkgPaths) {
@@ -1589,5 +1589,5 @@
1589
1589
  ]
1590
1590
  }
1591
1591
  },
1592
- "version": "5.1.2"
1592
+ "version": "5.1.3"
1593
1593
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adinsure-ops/ops-cli",
3
3
  "description": "Operations CLI for working with AdInsure",
4
- "version": "5.1.2",
4
+ "version": "5.1.3",
5
5
  "author": "Adacta Digital Service Department",
6
6
  "bin": {
7
7
  "ops": "./bin/run.js"
@@ -123,4 +123,4 @@
123
123
  "eslint": "eslint --quiet --config .eslint.config.js --fix"
124
124
  },
125
125
  "types": "lib/index.d.ts"
126
- }
126
+ }