@lumpcode/core 0.0.7 → 0.0.9
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/README.md +12 -5
- package/dist/helpers/executeStepsForContextList/main.d.ts.map +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types/SetupWorkspaceFn.d.ts +4 -0
- package/dist/types/SetupWorkspaceFn.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3432,7 +3432,7 @@ async function executeStepsForContextList({ baseBranch, branchFn, lumpVariables,
|
|
|
3432
3432
|
contextList,
|
|
3433
3433
|
workspacePath: '.',
|
|
3434
3434
|
};
|
|
3435
|
-
const { command: setupWorkspaceCommand, workspacePath } = await setupWorkspaceFn(injectedGitAndWorkspaceFnsInput);
|
|
3435
|
+
const { command: setupWorkspaceCommand, workspacePath, afterExec } = await setupWorkspaceFn(injectedGitAndWorkspaceFnsInput);
|
|
3436
3436
|
logger.verbose(`setupWorkspaceCommand ${setupWorkspaceCommand}`);
|
|
3437
3437
|
logger.verbose(`workspacePath ${workspacePath}`);
|
|
3438
3438
|
if (setupWorkspaceCommand) {
|
|
@@ -3443,6 +3443,9 @@ async function executeStepsForContextList({ baseBranch, branchFn, lumpVariables,
|
|
|
3443
3443
|
if (!setupWorkspaceCommandExec.success) {
|
|
3444
3444
|
return set(setupWorkspaceCommandExec, ['data', 'message'], `Failed to setup the workspace: ${setupWorkspaceCommandExec.data.message}`);
|
|
3445
3445
|
}
|
|
3446
|
+
if (afterExec) {
|
|
3447
|
+
await afterExec({ workspacePath });
|
|
3448
|
+
}
|
|
3446
3449
|
}
|
|
3447
3450
|
const gitStatusCommand = await execAsync(`git status`, { cwd: workspacePath });
|
|
3448
3451
|
logger.verbose(`gitStatusCommand ${JSON.stringify(gitStatusCommand.data)}`);
|