exec-staged 0.1.0 → 0.1.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/lib/constants.js +1 -1
- package/dist/lib/exec_staged.js +3 -1
- package/dist/lib/stage.js +1 -1
- package/package.json +1 -1
- package/src/lib/constants.ts +1 -1
- package/src/lib/exec_staged.ts +3 -1
- package/src/lib/stage.ts +1 -1
package/dist/lib/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import pkg from '../../package.json' with { type: 'json' };
|
|
2
2
|
export const DEFAULT_CONFIG_ENTRY = {
|
|
3
|
-
glob: '*',
|
|
4
3
|
diff: 'ACMR',
|
|
4
|
+
glob: '**',
|
|
5
5
|
};
|
|
6
6
|
export const MERGE_FILES = ['MERGE_HEAD', 'MERGE_MODE', 'MERGE_MSG'];
|
|
7
7
|
export const BACKUP_STASH_MESSAGE = `💾 ${pkg.name} backup stash`;
|
package/dist/lib/exec_staged.js
CHANGED
|
@@ -7,7 +7,9 @@ export const execStaged = async (cwd, tasks, options = {}) => {
|
|
|
7
7
|
return true;
|
|
8
8
|
}
|
|
9
9
|
catch (error) {
|
|
10
|
-
|
|
10
|
+
if (!options.quiet) {
|
|
11
|
+
console.log(`🪲 Log saved to: ${stage.logger.outFile}`);
|
|
12
|
+
}
|
|
11
13
|
return false;
|
|
12
14
|
}
|
|
13
15
|
};
|
package/dist/lib/stage.js
CHANGED
|
@@ -90,7 +90,7 @@ export class Stage {
|
|
|
90
90
|
this.head = this.git(['rev-parse', 'HEAD']);
|
|
91
91
|
this.gitDir = this.git(['rev-parse', '--absolute-git-dir']);
|
|
92
92
|
this.patchPath = path.resolve(this.gitDir, 'patch.diff');
|
|
93
|
-
this.git(['status', '--porcelain'])
|
|
93
|
+
this.git(['status', '--porcelain', '--no-renames'])
|
|
94
94
|
.split('\n')
|
|
95
95
|
.filter((f) => f.length)
|
|
96
96
|
.forEach((f) => (this.status[f.slice(3)] = f.slice(0, 2)));
|
package/package.json
CHANGED
package/src/lib/constants.ts
CHANGED
|
@@ -2,8 +2,8 @@ import pkg from '../../package.json' with { type: 'json' };
|
|
|
2
2
|
import type { ExecStagedConfigEntry } from '../types.js';
|
|
3
3
|
|
|
4
4
|
export const DEFAULT_CONFIG_ENTRY: Omit<ExecStagedConfigEntry, 'task'> = {
|
|
5
|
-
glob: '*',
|
|
6
5
|
diff: 'ACMR',
|
|
6
|
+
glob: '**',
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export const MERGE_FILES = ['MERGE_HEAD', 'MERGE_MODE', 'MERGE_MSG'] as const;
|
package/src/lib/exec_staged.ts
CHANGED
|
@@ -13,7 +13,9 @@ export const execStaged = async (
|
|
|
13
13
|
await stage.exec(resolveConfig(tasks));
|
|
14
14
|
return true;
|
|
15
15
|
} catch (error) {
|
|
16
|
-
|
|
16
|
+
if (!options.quiet) {
|
|
17
|
+
console.log(`🪲 Log saved to: ${stage.logger.outFile}`);
|
|
18
|
+
}
|
|
17
19
|
return false;
|
|
18
20
|
}
|
|
19
21
|
};
|
package/src/lib/stage.ts
CHANGED
|
@@ -118,7 +118,7 @@ export class Stage {
|
|
|
118
118
|
this.gitDir = this.git(['rev-parse', '--absolute-git-dir']);
|
|
119
119
|
this.patchPath = path.resolve(this.gitDir, 'patch.diff');
|
|
120
120
|
|
|
121
|
-
this.git(['status', '--porcelain'])
|
|
121
|
+
this.git(['status', '--porcelain', '--no-renames'])
|
|
122
122
|
.split('\n')
|
|
123
123
|
.filter((f) => f.length)
|
|
124
124
|
.forEach((f) => (this.status[f.slice(3)] = f.slice(0, 2)));
|