create-confluence-sync 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/hook.js +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-confluence-sync",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Bidirectional Confluence Server documentation sync via Git. Edit XHTML locally, commit, auto-sync with Confluence.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/hook.js CHANGED
@@ -30,10 +30,8 @@ function loadConfig(projectRoot) {
30
30
  }
31
31
 
32
32
  async function main() {
33
- // Guard: prevent recursion
34
- if (process.env.CONFLUENCE_SYNC_RUNNING === '1') {
35
- return;
36
- }
33
+ // Guard is handled by the shell hook script (post-commit).
34
+ // Set env for child processes (e.g. commitAll) to prevent recursion.
37
35
  process.env.CONFLUENCE_SYNC_RUNNING = '1';
38
36
 
39
37
  // Normalize projectRoot (Windows backslashes)