@evanpurkhiser/tooling-personal 1.49.0 → 1.51.0
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/editor.js +2 -1
- package/dist/fzf.js +2 -2
- package/package.json +18 -12
package/dist/editor.js
CHANGED
|
@@ -14,7 +14,8 @@ async function editPullRequest(commit) {
|
|
|
14
14
|
const prTemplate = `${commit.message}${split}${messageBody}`;
|
|
15
15
|
const pullEditFile = node_path_1.default.join(await (0, utils_1.getRepoPath)(), '.git', 'PULLREQ_EDITMSG');
|
|
16
16
|
await promises_1.default.writeFile(pullEditFile, prTemplate);
|
|
17
|
-
const
|
|
17
|
+
const quotedFile = `'${pullEditFile.replace(/'/g, `'\\''`)}'`;
|
|
18
|
+
const editor = (0, node_child_process_1.spawn)(`${process.env.EDITOR ?? 'vim'} ${quotedFile}`, {
|
|
18
19
|
shell: true,
|
|
19
20
|
stdio: 'inherit',
|
|
20
21
|
});
|
package/dist/fzf.js
CHANGED
|
@@ -7,13 +7,13 @@ async function fzfSelect({ prompt, multi = true, genValues, }) {
|
|
|
7
7
|
'--ansi',
|
|
8
8
|
'--height=40%',
|
|
9
9
|
'--reverse',
|
|
10
|
-
`--header
|
|
10
|
+
`--header=${prompt}`,
|
|
11
11
|
'--with-nth=2..',
|
|
12
12
|
];
|
|
13
13
|
if (multi) {
|
|
14
14
|
fzfArgs.push('-m');
|
|
15
15
|
}
|
|
16
|
-
const fzf = (0, node_child_process_1.spawn)('fzf', fzfArgs, {
|
|
16
|
+
const fzf = (0, node_child_process_1.spawn)('fzf', fzfArgs, { stdio: ['pipe', 'pipe', 'inherit'] });
|
|
17
17
|
fzf.stdin.setDefaultEncoding('utf-8');
|
|
18
18
|
const options = {};
|
|
19
19
|
const valuesDone = genValues(option => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@evanpurkhiser/tooling-personal",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.51.0",
|
|
5
5
|
"description": "Evan Purkhiser's personal tooling",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Evan Purkhiser",
|
|
@@ -13,12 +13,15 @@
|
|
|
13
13
|
"dist/**",
|
|
14
14
|
"README.md"
|
|
15
15
|
],
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
16
|
+
"devEngines": {
|
|
17
|
+
"runtime": {
|
|
18
|
+
"name": "node",
|
|
19
|
+
"version": "^24.15.0"
|
|
20
|
+
},
|
|
21
|
+
"packageManager": {
|
|
22
|
+
"name": "pnpm",
|
|
23
|
+
"version": "11.0.0"
|
|
24
|
+
}
|
|
22
25
|
},
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"@octokit/graphql-schema": "^10.54.0",
|
|
@@ -47,8 +50,11 @@
|
|
|
47
50
|
"ts-node": "^10.9.2",
|
|
48
51
|
"typescript": "^5.8.3"
|
|
49
52
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsc && chmod +x ./dist/index.js",
|
|
55
|
+
"start": "ts-node ./src/index.ts",
|
|
56
|
+
"lint": "oxlint src/",
|
|
57
|
+
"format": "oxfmt .",
|
|
58
|
+
"format:check": "oxfmt --check ."
|
|
59
|
+
}
|
|
60
|
+
}
|