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 +6 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
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 {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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 {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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);
|