quick-sh 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -2,6 +2,36 @@
2
2
 
3
3
  所有重要的更改都会记录在此文件中。
4
4
 
5
+ ## [1.0.4] - 2025-06-18
6
+
7
+ ### 更新内容
8
+
9
+ - 版本发布
10
+
11
+ ### 详细信息
12
+ - **更新人**: Young6118
13
+ - **更新时间**: 2025-06-18
14
+ - **提交数量**: 0
15
+
16
+ ---
17
+
18
+
19
+ ## [1.0.3] - 2025-06-18
20
+
21
+ ### 更新内容
22
+
23
+ - fix: executor spawn set cwd (9e745e3)
24
+ - feat: locales path fix (48586fb)
25
+
26
+ ### 详细信息
27
+ - **更新人**: Young6118
28
+ - **更新时间**: 2025-06-18
29
+ - **提交数量**: 2
30
+ - **提交范围**: 48586fb..9e745e3
31
+
32
+ ---
33
+
34
+
5
35
  ## [1.0.2] - 2025-06-18
6
36
 
7
37
  ### 更新内容
package/lib/executor.js CHANGED
@@ -14,7 +14,11 @@ async function executeFile(filePath, args = []) {
14
14
  // 使用spawn来保持交互性
15
15
  const child = spawn('node', [filePath, ...args], {
16
16
  stdio: 'inherit',
17
- cwd: path.dirname(filePath)
17
+ cwd: process.cwd(),
18
+ env: {
19
+ ...process.env,
20
+ QUICK_SH_ORIGINAL_CWD: process.cwd()
21
+ }
18
22
  });
19
23
 
20
24
  child.on('close', (code) => {
@@ -31,7 +35,11 @@ async function executeFile(filePath, args = []) {
31
35
 
32
36
  const child = spawn('sh', [filePath, ...args], {
33
37
  stdio: 'inherit',
34
- cwd: path.dirname(filePath)
38
+ cwd: path.dirname(filePath),
39
+ env: {
40
+ ...process.env,
41
+ QUICK_SH_ORIGINAL_CWD: process.cwd()
42
+ }
35
43
  });
36
44
 
37
45
  child.on('close', (code) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quick-sh",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A local script management tool for quick execution of JavaScript and Shell scripts with alias support",
5
5
  "main": "lib/script-manager.js",
6
6
  "bin": {