@tailor-platform/create-sdk 2.21.0 → 2.23.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 (74) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +79 -17
  3. package/dist/index.js +1 -1
  4. package/package.json +6 -4
  5. package/templates/executor/README.md +4 -3
  6. package/templates/executor/node_modules/.bin/oxfmt +33 -14
  7. package/templates/executor/node_modules/.bin/oxlint +33 -14
  8. package/templates/executor/node_modules/.bin/tailor +33 -14
  9. package/templates/executor/node_modules/.bin/tsc +33 -14
  10. package/templates/executor/node_modules/.bin/tsgolint +33 -14
  11. package/templates/executor/node_modules/.bin/tsserver +33 -14
  12. package/templates/executor/node_modules/.bin/vitest +33 -14
  13. package/templates/executor/package.json +4 -4
  14. package/templates/generators/node_modules/.bin/oxfmt +33 -14
  15. package/templates/generators/node_modules/.bin/oxlint +33 -14
  16. package/templates/generators/node_modules/.bin/tailor +33 -14
  17. package/templates/generators/node_modules/.bin/tailor-seed +33 -14
  18. package/templates/generators/node_modules/.bin/tsc +33 -14
  19. package/templates/generators/node_modules/.bin/tsgolint +33 -14
  20. package/templates/generators/node_modules/.bin/tsserver +33 -14
  21. package/templates/generators/node_modules/.bin/vitest +33 -14
  22. package/templates/generators/package.json +5 -5
  23. package/templates/hello-world/node_modules/.bin/oxfmt +33 -14
  24. package/templates/hello-world/node_modules/.bin/oxlint +33 -14
  25. package/templates/hello-world/node_modules/.bin/tailor +33 -14
  26. package/templates/hello-world/node_modules/.bin/tsc +33 -14
  27. package/templates/hello-world/node_modules/.bin/tsgolint +33 -14
  28. package/templates/hello-world/node_modules/.bin/tsserver +33 -14
  29. package/templates/hello-world/package.json +4 -4
  30. package/templates/inventory-management/node_modules/.bin/oxfmt +33 -14
  31. package/templates/inventory-management/node_modules/.bin/oxlint +33 -14
  32. package/templates/inventory-management/node_modules/.bin/tailor +33 -14
  33. package/templates/inventory-management/node_modules/.bin/tsc +33 -14
  34. package/templates/inventory-management/node_modules/.bin/tsgolint +33 -14
  35. package/templates/inventory-management/node_modules/.bin/tsserver +33 -14
  36. package/templates/inventory-management/package.json +4 -4
  37. package/templates/multi-application/node_modules/.bin/oxfmt +33 -14
  38. package/templates/multi-application/node_modules/.bin/oxlint +33 -14
  39. package/templates/multi-application/node_modules/.bin/tailor +33 -14
  40. package/templates/multi-application/node_modules/.bin/tsc +33 -14
  41. package/templates/multi-application/node_modules/.bin/tsgolint +33 -14
  42. package/templates/multi-application/node_modules/.bin/tsserver +33 -14
  43. package/templates/multi-application/package.json +4 -4
  44. package/templates/resolver/node_modules/.bin/oxfmt +33 -14
  45. package/templates/resolver/node_modules/.bin/oxlint +33 -14
  46. package/templates/resolver/node_modules/.bin/tailor +33 -14
  47. package/templates/resolver/node_modules/.bin/tsc +33 -14
  48. package/templates/resolver/node_modules/.bin/tsgolint +33 -14
  49. package/templates/resolver/node_modules/.bin/tsserver +33 -14
  50. package/templates/resolver/node_modules/.bin/vitest +33 -14
  51. package/templates/resolver/package.json +4 -4
  52. package/templates/static-web-site/node_modules/.bin/oxfmt +33 -14
  53. package/templates/static-web-site/node_modules/.bin/oxlint +33 -14
  54. package/templates/static-web-site/node_modules/.bin/tailor +33 -14
  55. package/templates/static-web-site/node_modules/.bin/tsc +33 -14
  56. package/templates/static-web-site/node_modules/.bin/tsgolint +33 -14
  57. package/templates/static-web-site/node_modules/.bin/tsserver +33 -14
  58. package/templates/static-web-site/package.json +4 -4
  59. package/templates/tailordb/node_modules/.bin/oxfmt +33 -14
  60. package/templates/tailordb/node_modules/.bin/oxlint +33 -14
  61. package/templates/tailordb/node_modules/.bin/tailor +33 -14
  62. package/templates/tailordb/node_modules/.bin/tsc +33 -14
  63. package/templates/tailordb/node_modules/.bin/tsgolint +33 -14
  64. package/templates/tailordb/node_modules/.bin/tsserver +33 -14
  65. package/templates/tailordb/node_modules/.bin/vitest +33 -14
  66. package/templates/tailordb/package.json +4 -4
  67. package/templates/workflow/node_modules/.bin/oxfmt +33 -14
  68. package/templates/workflow/node_modules/.bin/oxlint +33 -14
  69. package/templates/workflow/node_modules/.bin/tailor +33 -14
  70. package/templates/workflow/node_modules/.bin/tsc +33 -14
  71. package/templates/workflow/node_modules/.bin/tsgolint +33 -14
  72. package/templates/workflow/node_modules/.bin/tsserver +33 -14
  73. package/templates/workflow/node_modules/.bin/vitest +33 -14
  74. package/templates/workflow/package.json +4 -4
@@ -1,31 +1,49 @@
1
1
  #!/bin/sh
2
2
  # Resolve $0 through symlinks so basedir is the shim's real directory.
3
3
  # Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim.
4
+ #
5
+ # A shim runs with node_modules/.bin at the front of PATH, so readlink, sed,
6
+ # uname, and printf go through `command -p`, which searches the system default
7
+ # path instead. A dependency's bin cannot stand in for one of them and take over
8
+ # the shim before it reaches its target. Directories come from `${link%/*}`,
9
+ # which needs no helper at all.
4
10
  link="$0"
11
+ # `${link%/*}` needs a separator to strip. A bare name came from a PATH lookup
12
+ # and stands for a file in the current directory.
13
+ case "$link" in
14
+ */*|*\\*) ;;
15
+ *) link="./$link" ;;
16
+ esac
5
17
  hops=0
6
18
  while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
7
19
  hops=$((hops+1))
8
- target=$(readlink "$link")
20
+ target=$(command -p readlink "$link")
9
21
  case "$target" in
10
22
  /*) link="$target" ;;
11
- *) link="$(dirname "$link")/$target" ;;
23
+ *) link="${link%/*}/$target" ;;
12
24
  esac
13
25
  done
14
- basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')")
26
+ basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
27
+ basedir="${basedir%/*}"
15
28
  basedir_win="$basedir"
16
29
  exe=""
17
30
  msys=""
18
31
 
19
- case `uname -a` in
32
+ case `command -p uname -a` in
20
33
  *CYGWIN*|*MINGW*|*MSYS*)
21
- if command -v cygpath > /dev/null 2>&1; then
34
+ if converted=$(command -p cygpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
35
+ basedir_win="$converted"
36
+ elif command -v cygpath > /dev/null 2>&1; then
22
37
  basedir_win=`cygpath -w "$basedir"`
23
38
  fi
24
39
  exe=".exe"
25
40
  msys="true"
26
41
  ;;
27
42
  *WSL2*)
28
- if command -v wslpath > /dev/null 2>&1; then
43
+ if converted=$(command -p wslpath -w "$basedir" 2>/dev/null) && [ -n "$converted" ]; then
44
+ basedir_win="$converted"
45
+ exe=".exe"
46
+ elif command -v wslpath > /dev/null 2>&1; then
29
47
  basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
30
48
  if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
31
49
  basedir_win="$basedir"
@@ -36,20 +54,21 @@ case `uname -a` in
36
54
  ;;
37
55
  esac
38
56
 
57
+ basedir_abs=$(CDPATH= cd -P -- "$basedir" && pwd -P) || exit $?
39
58
  if [ -z "$NODE_PATH" ]; then
40
- export NODE_PATH="/home/runner/work/sdk/sdk/node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_c1e6911aa909148a5c984f92c4a88d15/node_modules/vitest/node_modules:/home/runner/work/sdk/sdk/node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_c1e6911aa909148a5c984f92c4a88d15/node_modules:/home/runner/work/sdk/sdk/node_modules/.pnpm/node_modules"
59
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules"
41
60
  else
42
- export NODE_PATH="/home/runner/work/sdk/sdk/node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_c1e6911aa909148a5c984f92c4a88d15/node_modules/vitest/node_modules:/home/runner/work/sdk/sdk/node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_c1e6911aa909148a5c984f92c4a88d15/node_modules:/home/runner/work/sdk/sdk/node_modules/.pnpm/node_modules:$NODE_PATH"
61
+ export NODE_PATH="$basedir_abs/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules:$basedir_abs/../../../../../../node_modules/.pnpm/node_modules:$NODE_PATH"
43
62
  fi
44
63
  if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
45
- exec "$basedir/node.exe" "$basedir_win/../vitest/vitest.mjs" "$@"
64
+ exec "$basedir/node.exe" "$basedir_win/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/vitest.mjs" "$@"
46
65
  elif [ -x "$basedir/node" ]; then
47
- exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
66
+ exec "$basedir/node" "$basedir_abs/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/vitest.mjs" "$@"
48
67
  elif command -v node >/dev/null 2>&1; then
49
- exec node "$basedir/../vitest/vitest.mjs" "$@"
68
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/vitest.mjs" "$@"
50
69
  elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
51
- exec node.exe "$basedir_win/../vitest/vitest.mjs" "$@"
70
+ exec node.exe "$basedir_win/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/vitest.mjs" "$@"
52
71
  else
53
- exec node "$basedir/../vitest/vitest.mjs" "$@"
72
+ exec node "$basedir_abs/../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/vitest.mjs" "$@"
54
73
  fi
55
- # cmd-shim-target=/home/runner/work/sdk/sdk/packages/create-sdk/templates/workflow/node_modules/vitest/./vitest.mjs
74
+ # cmd-shim-target=../../../../../../node_modules/.pnpm/vitest@5.0.1_@opentelemetry+api@1.9.1_@types+node@24.13.6_@vitest+coverage-v8@5.0.1_vit_16406cb23ebd1c0a63d8c9b509531083/node_modules/vitest/vitest.mjs
@@ -16,13 +16,13 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@tailor-platform/eslint-plugin-sdk": "0.3.0",
19
- "@tailor-platform/sdk": "2.21.0",
19
+ "@tailor-platform/sdk": "2.23.0",
20
20
  "@types/node": "24.13.6",
21
21
  "graphql": "17.0.2",
22
22
  "graphql-request": "7.4.0",
23
- "oxfmt": "0.67.0",
24
- "oxlint": "1.82.0",
25
- "oxlint-tsgolint": "7.0.2002",
23
+ "oxfmt": "0.70.0",
24
+ "oxlint": "1.85.0",
25
+ "oxlint-tsgolint": "7.0.2003",
26
26
  "typescript": "6.0.3",
27
27
  "vitest": "5.0.1"
28
28
  }