@leverege/build-tools 2.8.7 → 2.8.8

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.
Binary file
@@ -13,7 +13,7 @@ const getCurrentBranchName = async () => {
13
13
  };
14
14
 
15
15
  const isProtected = async () => {
16
- const protectedBranches = ['master', 'development', ...process.argv.slice(2)];
16
+ const protectedBranches = ['main', 'master', 'development', ...process.argv.slice(2)];
17
17
  const theBranch = await getCurrentBranchName();
18
18
  return protectedBranches.includes(theBranch);
19
19
  };
@@ -13,7 +13,7 @@ const getCurrentBranchName = async () => {
13
13
  };
14
14
 
15
15
  const isProtected = async () => {
16
- const protectedBranches = ['master', 'development', ...process.argv.slice(2)];
16
+ const protectedBranches = ['main', 'master', 'development', ...process.argv.slice(2)];
17
17
  const theBranch = await getCurrentBranchName();
18
18
  return protectedBranches.includes(theBranch);
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.8.7",
3
+ "version": "2.8.8",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  "parse-gitignore": "^1.0.1",
72
72
  "readline-sync": "^1.4.10",
73
73
  "semver": "^7.3.5",
74
- "simple-git": "^2.47.0"
74
+ "simple-git": "^2.48.0"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@babel/cli": "^7.16.0",
@@ -79,6 +79,6 @@
79
79
  "@babel/node": "^7.16.0",
80
80
  "@leverege/babel-preset-leverege-node": "^2.0.0",
81
81
  "@leverege/eslint-config-leverege": "^3.0.1",
82
- "npm": "^8.1.4"
82
+ "npm": "^8.2.0"
83
83
  }
84
84
  }
package/src/unleash.js CHANGED
@@ -12,7 +12,7 @@ const getCurrentBranchName = async () => {
12
12
  }
13
13
 
14
14
  const isProtected = async () => {
15
- const protectedBranches = [ 'master', 'development', ...process.argv.slice( 2 ) ]
15
+ const protectedBranches = [ 'main', 'master', 'development', ...process.argv.slice( 2 ) ]
16
16
  const theBranch = await getCurrentBranchName()
17
17
  return protectedBranches.includes( theBranch )
18
18
  }