@leverege/build-tools 2.8.0 → 2.8.2
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/lib/server/overwhelm.js
CHANGED
|
@@ -68,8 +68,9 @@ const optionsDefinitions = [
|
|
|
68
68
|
];
|
|
69
69
|
const args = cliArgs(optionsDefinitions); // The kubernetes context is equal to the git branch name.
|
|
70
70
|
|
|
71
|
-
const gitBranch =
|
|
72
|
-
|
|
71
|
+
const gitBranch = exec('git rev-parse --abbrev-ref HEAD', {
|
|
72
|
+
stdio: [undefined]
|
|
73
|
+
}).toString().trim();
|
|
73
74
|
const context = args.context || gitBranch;
|
|
74
75
|
|
|
75
76
|
if (context === 'master') {
|
|
Binary file
|
package/lib/web/overwhelm.js
CHANGED
|
@@ -68,8 +68,9 @@ const optionsDefinitions = [
|
|
|
68
68
|
];
|
|
69
69
|
const args = cliArgs(optionsDefinitions); // The kubernetes context is equal to the git branch name.
|
|
70
70
|
|
|
71
|
-
const gitBranch =
|
|
72
|
-
|
|
71
|
+
const gitBranch = exec('git rev-parse --abbrev-ref HEAD', {
|
|
72
|
+
stdio: [undefined]
|
|
73
|
+
}).toString().trim();
|
|
73
74
|
const context = args.context || gitBranch;
|
|
74
75
|
|
|
75
76
|
if (context === 'master') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -60,26 +60,25 @@
|
|
|
60
60
|
"dotenv": "^10.0.0",
|
|
61
61
|
"execa": "^5.1.1",
|
|
62
62
|
"figlet": "^1.5.2",
|
|
63
|
-
"git-branch": "^2.0.1",
|
|
64
63
|
"glob": "^7.2.0",
|
|
65
|
-
"inquirer": "^8.
|
|
64
|
+
"inquirer": "^8.2.0",
|
|
66
65
|
"js-yaml": "^4.1.0",
|
|
67
66
|
"ncp": "^2.0.0",
|
|
68
|
-
"npm-check-updates": "^
|
|
67
|
+
"npm-check-updates": "^12.0.0",
|
|
69
68
|
"npm-registry-fetch": "^11.0.0",
|
|
70
|
-
"open": "^8.
|
|
69
|
+
"open": "^8.4.0",
|
|
71
70
|
"ora": "^5.4.1",
|
|
72
71
|
"parse-gitignore": "^1.0.1",
|
|
73
72
|
"readline-sync": "^1.4.10",
|
|
74
73
|
"semver": "^7.3.5",
|
|
75
|
-
"simple-git": "^2.
|
|
74
|
+
"simple-git": "^2.47.0"
|
|
76
75
|
},
|
|
77
76
|
"devDependencies": {
|
|
78
|
-
"@babel/cli": "^7.
|
|
79
|
-
"@babel/core": "^7.
|
|
80
|
-
"@babel/node": "^7.
|
|
77
|
+
"@babel/cli": "^7.16.0",
|
|
78
|
+
"@babel/core": "^7.16.0",
|
|
79
|
+
"@babel/node": "^7.16.0",
|
|
81
80
|
"@leverege/babel-preset-leverege-node": "^2.0.0",
|
|
82
81
|
"@leverege/eslint-config-leverege": "^3.0.1",
|
|
83
|
-
"npm": "^
|
|
82
|
+
"npm": "^8.1.3"
|
|
84
83
|
}
|
|
85
84
|
}
|
package/src/overwhelm.js
CHANGED
|
@@ -28,7 +28,9 @@ const optionsDefinitions = [
|
|
|
28
28
|
const args = cliArgs( optionsDefinitions )
|
|
29
29
|
|
|
30
30
|
// The kubernetes context is equal to the git branch name.
|
|
31
|
-
const gitBranch =
|
|
31
|
+
const gitBranch = exec(
|
|
32
|
+
'git rev-parse --abbrev-ref HEAD', { stdio : [ undefined ] }
|
|
33
|
+
).toString().trim()
|
|
32
34
|
|
|
33
35
|
const context = args.context || gitBranch
|
|
34
36
|
|