alex-c-line 1.5.0 → 1.5.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/dist/index.cjs CHANGED
@@ -164,12 +164,12 @@ function checkVersionNumberChange(program2) {
164
164
  "Check that version number on branch has changed if source code differs between main and current branch"
165
165
  ).action(() => __async(null, null, function* () {
166
166
  console.log("Checking for version change...");
167
- const { stdout: currentBranch } = yield import_execa2.execa`git branch --show-current`;
168
- if (currentBranch === "main") {
169
- console.error("\u274C ERROR: Cannot check differences on main branch!");
170
- process.exit(1);
171
- }
172
- const { exitCode } = yield execaNoFail("git", ["diff", "origin/main...HEAD", "--quiet"]);
167
+ const { exitCode } = yield execaNoFail("git", [
168
+ "diff",
169
+ "origin/main...HEAD",
170
+ "--quiet",
171
+ "src/*"
172
+ ]);
173
173
  if (exitCode === 0) {
174
174
  console.log("No source code changes found. Version does not need changing.");
175
175
  process.exit(0);
package/dist/index.js CHANGED
@@ -143,12 +143,12 @@ function checkVersionNumberChange(program2) {
143
143
  "Check that version number on branch has changed if source code differs between main and current branch"
144
144
  ).action(() => __async(null, null, function* () {
145
145
  console.log("Checking for version change...");
146
- const { stdout: currentBranch } = yield execa2`git branch --show-current`;
147
- if (currentBranch === "main") {
148
- console.error("\u274C ERROR: Cannot check differences on main branch!");
149
- process.exit(1);
150
- }
151
- const { exitCode } = yield execaNoFail("git", ["diff", "origin/main...HEAD", "--quiet"]);
146
+ const { exitCode } = yield execaNoFail("git", [
147
+ "diff",
148
+ "origin/main...HEAD",
149
+ "--quiet",
150
+ "src/*"
151
+ ]);
152
152
  if (exitCode === 0) {
153
153
  console.log("No source code changes found. Version does not need changing.");
154
154
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alex-c-line",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",