@tailor-platform/create-sdk 2.23.0 → 2.25.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 (76) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +3 -3
  3. package/templates/executor/node_modules/.bin/oxfmt +31 -9
  4. package/templates/executor/node_modules/.bin/oxlint +31 -9
  5. package/templates/executor/node_modules/.bin/tailor +23 -1
  6. package/templates/executor/node_modules/.bin/tsc +23 -1
  7. package/templates/executor/node_modules/.bin/tsgolint +23 -1
  8. package/templates/executor/node_modules/.bin/tsserver +23 -1
  9. package/templates/executor/node_modules/.bin/vite +96 -0
  10. package/templates/executor/node_modules/.bin/vitest +31 -9
  11. package/templates/executor/package.json +4 -4
  12. package/templates/generators/node_modules/.bin/oxfmt +31 -9
  13. package/templates/generators/node_modules/.bin/oxlint +31 -9
  14. package/templates/generators/node_modules/.bin/tailor +23 -1
  15. package/templates/generators/node_modules/.bin/tailor-seed +23 -1
  16. package/templates/generators/node_modules/.bin/tsc +23 -1
  17. package/templates/generators/node_modules/.bin/tsgolint +23 -1
  18. package/templates/generators/node_modules/.bin/tsserver +23 -1
  19. package/templates/generators/node_modules/.bin/vite +96 -0
  20. package/templates/generators/node_modules/.bin/vitest +31 -9
  21. package/templates/generators/package.json +5 -5
  22. package/templates/hello-world/node_modules/.bin/oxfmt +31 -9
  23. package/templates/hello-world/node_modules/.bin/oxlint +31 -9
  24. package/templates/hello-world/node_modules/.bin/tailor +23 -1
  25. package/templates/hello-world/node_modules/.bin/tsc +23 -1
  26. package/templates/hello-world/node_modules/.bin/tsgolint +23 -1
  27. package/templates/hello-world/node_modules/.bin/tsserver +23 -1
  28. package/templates/hello-world/package.json +4 -4
  29. package/templates/inventory-management/node_modules/.bin/oxfmt +31 -9
  30. package/templates/inventory-management/node_modules/.bin/oxlint +31 -9
  31. package/templates/inventory-management/node_modules/.bin/tailor +23 -1
  32. package/templates/inventory-management/node_modules/.bin/tsc +23 -1
  33. package/templates/inventory-management/node_modules/.bin/tsgolint +23 -1
  34. package/templates/inventory-management/node_modules/.bin/tsserver +23 -1
  35. package/templates/inventory-management/package.json +4 -4
  36. package/templates/multi-application/node_modules/.bin/oxfmt +31 -9
  37. package/templates/multi-application/node_modules/.bin/oxlint +31 -9
  38. package/templates/multi-application/node_modules/.bin/tailor +23 -1
  39. package/templates/multi-application/node_modules/.bin/tsc +23 -1
  40. package/templates/multi-application/node_modules/.bin/tsgolint +23 -1
  41. package/templates/multi-application/node_modules/.bin/tsserver +23 -1
  42. package/templates/multi-application/package.json +4 -4
  43. package/templates/resolver/node_modules/.bin/oxfmt +31 -9
  44. package/templates/resolver/node_modules/.bin/oxlint +31 -9
  45. package/templates/resolver/node_modules/.bin/tailor +23 -1
  46. package/templates/resolver/node_modules/.bin/tsc +23 -1
  47. package/templates/resolver/node_modules/.bin/tsgolint +23 -1
  48. package/templates/resolver/node_modules/.bin/tsserver +23 -1
  49. package/templates/resolver/node_modules/.bin/vite +96 -0
  50. package/templates/resolver/node_modules/.bin/vitest +31 -9
  51. package/templates/resolver/package.json +4 -4
  52. package/templates/static-web-site/node_modules/.bin/oxfmt +31 -9
  53. package/templates/static-web-site/node_modules/.bin/oxlint +31 -9
  54. package/templates/static-web-site/node_modules/.bin/tailor +23 -1
  55. package/templates/static-web-site/node_modules/.bin/tsc +23 -1
  56. package/templates/static-web-site/node_modules/.bin/tsgolint +23 -1
  57. package/templates/static-web-site/node_modules/.bin/tsserver +23 -1
  58. package/templates/static-web-site/package.json +4 -4
  59. package/templates/tailordb/node_modules/.bin/oxfmt +31 -9
  60. package/templates/tailordb/node_modules/.bin/oxlint +31 -9
  61. package/templates/tailordb/node_modules/.bin/tailor +23 -1
  62. package/templates/tailordb/node_modules/.bin/tsc +23 -1
  63. package/templates/tailordb/node_modules/.bin/tsgolint +23 -1
  64. package/templates/tailordb/node_modules/.bin/tsserver +23 -1
  65. package/templates/tailordb/node_modules/.bin/vite +96 -0
  66. package/templates/tailordb/node_modules/.bin/vitest +31 -9
  67. package/templates/tailordb/package.json +4 -4
  68. package/templates/workflow/node_modules/.bin/oxfmt +31 -9
  69. package/templates/workflow/node_modules/.bin/oxlint +31 -9
  70. package/templates/workflow/node_modules/.bin/tailor +23 -1
  71. package/templates/workflow/node_modules/.bin/tsc +23 -1
  72. package/templates/workflow/node_modules/.bin/tsgolint +23 -1
  73. package/templates/workflow/node_modules/.bin/tsserver +23 -1
  74. package/templates/workflow/node_modules/.bin/vite +96 -0
  75. package/templates/workflow/node_modules/.bin/vitest +31 -9
  76. package/templates/workflow/package.json +4 -4
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,22 +73,24 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
79
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
61
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
81
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
62
82
  fi
63
83
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
- exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
84
+ exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
- exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
86
+ exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
90
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
70
- exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
92
+ exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
71
93
  else
72
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
94
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
73
95
  fi
74
- # cmd-shim-target=../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt
96
+ # cmd-shim-target=../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,22 +73,24 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
79
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
61
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
81
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
62
82
  fi
63
83
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
- exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
84
+ exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
- exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
86
+ exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
90
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
70
- exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
92
+ exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
71
93
  else
72
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
94
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
73
95
  fi
74
- # cmd-shim-target=../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint
96
+ # cmd-shim-target=../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,8 +73,8 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
79
  export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
@@ -64,6 +84,8 @@ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
84
  exec "$basedir/node.exe" "$basedir_win/../../../../../sdk/bin/tailor.mjs" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
86
  exec "$basedir/node" "$basedir_abs/../../../../../sdk/bin/tailor.mjs" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../sdk/bin/tailor.mjs" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
90
  exec node "$basedir_abs/../../../../../sdk/bin/tailor.mjs" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,8 +73,8 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
79
  export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
@@ -64,6 +84,8 @@ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
84
  exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
86
  exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
90
  exec node "$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,8 +73,8 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
79
  export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint-tsgolint@7.0.2003/node_modules/oxlint-tsgolint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
@@ -64,6 +84,8 @@ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
84
  exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxlint-tsgolint@7.0.2003/node_modules/oxlint-tsgolint/bin/tsgolint.js" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
86
  exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint-tsgolint@7.0.2003/node_modules/oxlint-tsgolint/bin/tsgolint.js" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/oxlint-tsgolint@7.0.2003/node_modules/oxlint-tsgolint/bin/tsgolint.js" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
90
  exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint-tsgolint@7.0.2003/node_modules/oxlint-tsgolint/bin/tsgolint.js" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,8 +73,8 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
79
  export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
@@ -64,6 +84,8 @@ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
84
  exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsserver" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
86
  exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsserver" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsserver" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
90
  exec node "$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsserver" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
@@ -13,10 +13,10 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@tailor-platform/eslint-plugin-sdk": "0.3.0",
16
- "@tailor-platform/sdk": "2.23.0",
17
- "@types/node": "24.13.6",
18
- "oxfmt": "0.70.0",
19
- "oxlint": "1.85.0",
16
+ "@tailor-platform/sdk": "2.25.0",
17
+ "@types/node": "24.19.0",
18
+ "oxfmt": "0.71.0",
19
+ "oxlint": "1.86.0",
20
20
  "oxlint-tsgolint": "7.0.2003",
21
21
  "typescript": "6.0.3"
22
22
  }
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,22 +73,24 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
79
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
61
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
81
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
62
82
  fi
63
83
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
- exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
84
+ exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
- exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
86
+ exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
90
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
70
- exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
92
+ exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
71
93
  else
72
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt" "$@"
94
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt" "$@"
73
95
  fi
74
- # cmd-shim-target=../../../../../../node_modules/.pnpm/oxfmt@0.70.0/node_modules/oxfmt/bin/oxfmt
96
+ # cmd-shim-target=../../../../../../node_modules/.pnpm/oxfmt@0.71.0/node_modules/oxfmt/bin/oxfmt
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,22 +73,24 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
79
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
61
- export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
81
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
62
82
  fi
63
83
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
- exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
84
+ exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
- exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
86
+ exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
90
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
70
- exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
92
+ exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
71
93
  else
72
- exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
94
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint" "$@"
73
95
  fi
74
- # cmd-shim-target=../../../../../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint
96
+ # cmd-shim-target=../../../../../../node_modules/.pnpm/oxlint@1.86.0_oxlint-tsgolint@7.0.2003/node_modules/oxlint/bin/oxlint
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,8 +73,8 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
79
  export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
@@ -64,6 +84,8 @@ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
84
  exec "$basedir/node.exe" "$basedir_win/../../../../../sdk/bin/tailor.mjs" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
86
  exec "$basedir/node" "$basedir_abs/../../../../../sdk/bin/tailor.mjs" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../sdk/bin/tailor.mjs" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
90
  exec node "$basedir_abs/../../../../../sdk/bin/tailor.mjs" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
@@ -7,6 +7,24 @@
7
7
  # path instead. A dependency's bin cannot stand in for one of them and take over
8
8
  # the shim before it reaches its target. Directories come from `${link%/*}`,
9
9
  # which needs no helper at all.
10
+ #
11
+ # Where no default path is compiled in, as on Nix, `command -p` searches PATH
12
+ # instead, so the helpers run with node_modules and relative entries dropped from
13
+ # PATH.
14
+ caller_path_set=${PATH+set}
15
+ caller_path=${PATH-}
16
+ helper_path=
17
+ rest=$caller_path:
18
+ while [ -n "$rest" ]; do
19
+ dir=${rest%%:*}
20
+ rest=${rest#*:}
21
+ case "$dir" in
22
+ */node_modules/*|*/node_modules) ;;
23
+ /*) helper_path=${helper_path:+$helper_path:}$dir ;;
24
+ esac
25
+ done
26
+ # An empty PATH searches the current directory.
27
+ PATH=${helper_path:-/}
10
28
  link="$0"
11
29
  # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
30
  # and stands for a file in the current directory.
@@ -25,6 +43,8 @@ while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
25
43
  done
26
44
  basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
45
  basedir="${basedir%/*}"
46
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
47
+ basedir="$basedir_abs"
28
48
  basedir_win="$basedir"
29
49
  exe=""
30
50
  msys=""
@@ -53,8 +73,8 @@ case `command -p uname -a` in
53
73
  fi
54
74
  ;;
55
75
  esac
76
+ if [ -n "$caller_path_set" ]; then PATH=$caller_path; else unset PATH; fi
56
77
 
57
- basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
58
78
  if [ -z "$NODE_PATH" ]; then
59
79
  export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
60
80
  else
@@ -64,6 +84,8 @@ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
64
84
  exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
65
85
  elif [ -x "$basedir/node" ]; then
66
86
  exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
87
+ elif [ -n "$msys" ] && command -v node >/dev/null 2>&1; then
88
+ exec node "$basedir_win/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
67
89
  elif command -v node >/dev/null 2>&1; then
68
90
  exec node "$basedir_abs/../../../../../../node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/bin/tsc" "$@"
69
91
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then