@towles/tool 0.0.11-beta.2 → 0.0.11-beta.3

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/dist/index.mjs +3 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ import { homedir } from 'node:os';
18
18
  import { setupDotenv, loadConfig } from 'c12';
19
19
  import { updateConfig } from 'c12/update';
20
20
 
21
- const version = "0.0.11-beta.2";
21
+ const version = "0.0.11-beta.3";
22
22
 
23
23
  class AnyError extends Error {
24
24
  name = "AnyError";
@@ -169,7 +169,8 @@ function execCommand(cmd, cwd) {
169
169
  async function getGitDiff(cwd) {
170
170
  const r = execCommand(
171
171
  // `git --no-pager log "${from ? `${from}...` : ''}${to}" `,
172
- `git --no-pager diff --staged`,
172
+ // using --cached because staged didn't work on MacOS
173
+ `git --no-pager diff --cached`,
173
174
  // --name-status
174
175
  // --pretty="----%n%s|%h|%an|%ae%n%b"
175
176
  cwd
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@towles/tool",
3
3
  "type": "module",
4
- "version": "0.0.11-beta.2",
4
+ "version": "0.0.11-beta.3",
5
5
  "description": "One off quality of life scripts that I use on a daily basis.",
6
6
  "author": "Chris Towles <Chris.Towles.Dev@gmail.com>",
7
7
  "license": "MIT",