@zokugun/exec-lite 0.0.0 → 0.3.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.
Files changed (67) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +306 -34
  3. package/lib/cjs/create-command.cjs +19 -0
  4. package/lib/cjs/create-command.d.cts +3 -0
  5. package/lib/cjs/exec-process.cjs +241 -0
  6. package/lib/cjs/exec-process.d.cts +41 -0
  7. package/lib/cjs/exec.cjs +9 -0
  8. package/lib/cjs/exec.d.cts +3 -0
  9. package/lib/cjs/index.cjs +9 -0
  10. package/lib/cjs/index.d.cts +4 -0
  11. package/lib/cjs/types.cjs +2 -0
  12. package/lib/cjs/types.d.cts +70 -0
  13. package/lib/cjs/utils/combineSignals.cjs +19 -0
  14. package/lib/cjs/utils/combineSignals.d.cts +1 -0
  15. package/lib/cjs/utils/command/detectShebang.cjs +36 -0
  16. package/lib/cjs/utils/command/detectShebang.d.cts +1 -0
  17. package/lib/cjs/utils/command/normalizeCommand.cjs +59 -0
  18. package/lib/cjs/utils/command/normalizeCommand.d.cts +6 -0
  19. package/lib/cjs/utils/command/resolveCommand.cjs +43 -0
  20. package/lib/cjs/utils/command/resolveCommand.d.cts +2 -0
  21. package/lib/cjs/utils/env/addNodeBinToPath.cjs +24 -0
  22. package/lib/cjs/utils/env/addNodeBinToPath.d.cts +2 -0
  23. package/lib/cjs/utils/env/computeEnv.cjs +17 -0
  24. package/lib/cjs/utils/env/computeEnv.d.cts +2 -0
  25. package/lib/cjs/utils/env/getPathFromEnv.cjs +22 -0
  26. package/lib/cjs/utils/env/getPathFromEnv.d.cts +2 -0
  27. package/lib/cjs/utils/env/types.cjs +2 -0
  28. package/lib/cjs/utils/env/types.d.cts +5 -0
  29. package/lib/cjs/utils/normalizeOptions.cjs +31 -0
  30. package/lib/cjs/utils/normalizeOptions.d.cts +2 -0
  31. package/lib/cjs/utils/stream/combineStreams.cjs +25 -0
  32. package/lib/cjs/utils/stream/combineStreams.d.cts +2 -0
  33. package/lib/cjs/utils/stream/readStream.cjs +16 -0
  34. package/lib/cjs/utils/stream/readStream.d.cts +5 -0
  35. package/lib/esm/create-command.d.mts +3 -0
  36. package/lib/esm/create-command.mjs +17 -0
  37. package/lib/esm/exec-process.d.mts +41 -0
  38. package/lib/esm/exec-process.mjs +235 -0
  39. package/lib/esm/exec.d.mts +3 -0
  40. package/lib/esm/exec.mjs +7 -0
  41. package/lib/esm/index.d.mts +4 -0
  42. package/lib/esm/index.mjs +3 -0
  43. package/lib/esm/types.d.mts +70 -0
  44. package/lib/esm/types.mjs +1 -0
  45. package/lib/esm/utils/combineSignals.d.mts +1 -0
  46. package/lib/esm/utils/combineSignals.mjs +16 -0
  47. package/lib/esm/utils/command/detectShebang.d.mts +1 -0
  48. package/lib/esm/utils/command/detectShebang.mjs +30 -0
  49. package/lib/esm/utils/command/normalizeCommand.d.mts +6 -0
  50. package/lib/esm/utils/command/normalizeCommand.mjs +53 -0
  51. package/lib/esm/utils/command/resolveCommand.d.mts +2 -0
  52. package/lib/esm/utils/command/resolveCommand.mjs +37 -0
  53. package/lib/esm/utils/env/addNodeBinToPath.d.mts +2 -0
  54. package/lib/esm/utils/env/addNodeBinToPath.mjs +18 -0
  55. package/lib/esm/utils/env/computeEnv.d.mts +2 -0
  56. package/lib/esm/utils/env/computeEnv.mjs +14 -0
  57. package/lib/esm/utils/env/getPathFromEnv.d.mts +2 -0
  58. package/lib/esm/utils/env/getPathFromEnv.mjs +19 -0
  59. package/lib/esm/utils/env/types.d.mts +5 -0
  60. package/lib/esm/utils/env/types.mjs +1 -0
  61. package/lib/esm/utils/normalizeOptions.d.mts +2 -0
  62. package/lib/esm/utils/normalizeOptions.mjs +25 -0
  63. package/lib/esm/utils/stream/combineStreams.d.mts +2 -0
  64. package/lib/esm/utils/stream/combineStreams.mjs +22 -0
  65. package/lib/esm/utils/stream/readStream.d.mts +5 -0
  66. package/lib/esm/utils/stream/readStream.mjs +13 -0
  67. package/package.json +145 -3
package/package.json CHANGED
@@ -1,5 +1,147 @@
1
1
  {
2
- "name": "@zokugun/exec-lite",
3
- "version": "0.0.0",
4
- "description": "OIDC trusted publishing setup package for @zokugun/exec-lite"
2
+ "name": "@zokugun/exec-lite",
3
+ "description": "A lightweight tool for running shell commands and reading their output easily.",
4
+ "version": "0.3.0",
5
+ "author": {
6
+ "name": "Baptiste Augrain",
7
+ "email": "daiyam@zokugun.org"
8
+ },
9
+ "license": "MIT",
10
+ "homepage": "https://github.com/zokugun/node-exec-lite",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/zokugun/node-exec-lite.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/zokugun/node-exec-lite/discussions/categories/issue-triage"
17
+ },
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "import": "./lib/esm/index.mjs",
22
+ "require": "./lib/cjs/index.cjs"
23
+ },
24
+ "./command-line": {
25
+ "import": "./lib/esm/command-line.mjs",
26
+ "require": "./lib/cjs/command-line.cjs"
27
+ },
28
+ "./exec-process": {
29
+ "import": "./lib/esm/exec-process.mjs",
30
+ "require": "./lib/cjs/exec-process.cjs"
31
+ },
32
+ "./exec": {
33
+ "import": "./lib/esm/exec.mjs",
34
+ "require": "./lib/cjs/exec.cjs"
35
+ }
36
+ },
37
+ "main": "lib/cjs/index.cjs",
38
+ "module": "lib/esm/index.mjs",
39
+ "typesVersions": {
40
+ "*": {
41
+ ".": [
42
+ "./lib/cjs/index.d.cts"
43
+ ],
44
+ "command-line": [
45
+ "./lib/cjs/command-line.d.cts"
46
+ ],
47
+ "exec-process": [
48
+ "./lib/cjs/exec-process.d.cts"
49
+ ],
50
+ "exec": [
51
+ "./lib/cjs/exec.d.cts"
52
+ ]
53
+ }
54
+ },
55
+ "scripts": {
56
+ "audit:fix": "npm audit fix --min-release-age=0",
57
+ "build": "npm run clean && npm run build:out",
58
+ "build:out": "tsc-leda generate",
59
+ "build:package": "tsc-leda update-package && npm run lint:package",
60
+ "ci:lint": "zizmor .",
61
+ "ci:lint:fix": "zizmor . --fix=all",
62
+ "clean": "rimraf .src .test lib",
63
+ "compile:src": "tsc -p src",
64
+ "compile:test": "tsc -p test",
65
+ "lint": "eslint",
66
+ "lint:all": "npm run lint:package && npm audit && npm run ci:lint",
67
+ "lint:fix": "eslint --fix",
68
+ "lint:package": "fixpack || true",
69
+ "prepack": "npm run build",
70
+ "prepare": "husky; npm run lint:package",
71
+ "release": "bump-n-ship release --all --pause",
72
+ "test": "vitest run --reporter tree",
73
+ "test:coverage": "vitest run --reporter tree --coverage --coverage.reporter text",
74
+ "test:ui": "vitest --ui --coverage",
75
+ "test:watch": "vitest",
76
+ "update:artifacts": "artifact update",
77
+ "update:ci": "pinact run -min-age 7 -update",
78
+ "update:deps": "taze --all",
79
+ "watch:build": "tsc-watch -p src --onSuccess 'npm run build'",
80
+ "watch:src": "tsc-watch -p src",
81
+ "watch:test": "tsc-watch -p test"
82
+ },
83
+ "dependencies": {
84
+ "@zokugun/xtry": "0.12.2"
85
+ },
86
+ "devDependencies": {
87
+ "@commitlint/cli": "20.5.3",
88
+ "@commitlint/config-conventional": "20.5.3",
89
+ "@types/node": "20.19.43",
90
+ "@vitest/coverage-v8": "4.1.12",
91
+ "@vitest/ui": "4.1.12",
92
+ "@zokugun/bump-n-ship": "0.1.1",
93
+ "@zokugun/eslint-config": "0.2.1",
94
+ "@zokugun/eslint-config-data": "0.2.1",
95
+ "@zokugun/eslint-config-glossary": "0.2.0",
96
+ "@zokugun/eslint-config-js": "0.2.1",
97
+ "@zokugun/eslint-config-md": "0.4.1",
98
+ "@zokugun/eslint-config-nodejs": "0.2.0",
99
+ "@zokugun/eslint-config-style": "0.3.1",
100
+ "@zokugun/eslint-config-test": "0.2.0",
101
+ "@zokugun/eslint-config-ts": "0.3.2",
102
+ "@zokugun/fs-extra-plus": "0.7.0",
103
+ "@zokugun/tsc-leda": "0.9.5",
104
+ "eslint": "10.13.0",
105
+ "fixpack": "4.0.0",
106
+ "get-node": "15.0.4",
107
+ "husky": "9.1.7",
108
+ "lint-staged": "16.4.0",
109
+ "rimraf": "6.1.4",
110
+ "taze": "19.17.2",
111
+ "tsc-watch": "7.2.1",
112
+ "typescript": "5.9.3",
113
+ "vitest": "4.1.12",
114
+ "yaml": "2.9.1"
115
+ },
116
+ "overrides": {
117
+ "@eslint/config-array": {
118
+ "minimatch": "11.0.1"
119
+ },
120
+ "@typescript-eslint/typescript-estree": {
121
+ "minimatch": "11.0.1"
122
+ },
123
+ "eslint": {
124
+ "minimatch": "11.0.1"
125
+ },
126
+ "eslint-plugin-import-x": {
127
+ "minimatch": "11.0.1"
128
+ },
129
+ "micromark-extension-math": {
130
+ "katex": "0.18.2"
131
+ }
132
+ },
133
+ "allowScripts": {
134
+ "fsevents": true,
135
+ "unrs-resolver": true
136
+ },
137
+ "keywords": [
138
+ "child_process",
139
+ "command",
140
+ "exec",
141
+ "execute",
142
+ "process",
143
+ "shell",
144
+ "spawn",
145
+ "subprocess"
146
+ ]
5
147
  }