@wrongstack/tools 0.6.1 → 0.6.4
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/builtin.js +9 -0
- package/dist/builtin.js.map +1 -1
- package/dist/git.js +9 -0
- package/dist/git.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/pack.js +9 -0
- package/dist/pack.js.map +1 -1
- package/package.json +2 -2
package/dist/builtin.js
CHANGED
|
@@ -1955,6 +1955,15 @@ var gitTool = {
|
|
|
1955
1955
|
},
|
|
1956
1956
|
async execute(input, ctx, opts) {
|
|
1957
1957
|
if (!input?.command) throw new Error("git: command is required");
|
|
1958
|
+
if (input.command === "commit" && !input.message) {
|
|
1959
|
+
return {
|
|
1960
|
+
command: "commit",
|
|
1961
|
+
stdout: "",
|
|
1962
|
+
stderr: "git commit requires a message (-m flag)",
|
|
1963
|
+
exitCode: 1,
|
|
1964
|
+
truncated: false
|
|
1965
|
+
};
|
|
1966
|
+
}
|
|
1958
1967
|
const gitDir = findGitDir2(ctx.cwd, ctx.projectRoot);
|
|
1959
1968
|
if (!gitDir) {
|
|
1960
1969
|
return {
|