@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 +4 -0
- package/lib/commands/version.js +2 -2
- package/lib/lib/npm.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/CHANGELOGS.md
CHANGED
package/lib/commands/version.js
CHANGED
|
@@ -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) {
|
package/oclif.manifest.json
CHANGED
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.
|
|
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
|
+
}
|