@lynx-js/react 0.126.2 → 0.127.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/CHANGELOG.md +18 -0
- package/components/tsconfig.tsbuildinfo +1 -1
- package/docs/directives.md +90 -0
- package/docs/global-events.md +50 -0
- package/docs/import-attributes.md +43 -0
- package/docs/macros.md +285 -0
- package/package.json +3 -2
- package/refresh/.turbo/turbo-build.log +1 -1
- package/refresh/dist/index.js +26 -6
- package/refresh/package.json +1 -1
- package/runtime/__test__/core/main-thread-object.test.js +149 -0
- package/runtime/__test__/element-template/fixtures/background/main-thread-function/run-on-main-thread/index.tsx +26 -3
- package/runtime/__test__/element-template/imports/main-thread-object-api.test.ts +10 -0
- package/runtime/__test__/element-template/internal/legacy-internal-guardrail.test.ts +3 -0
- package/runtime/__test__/element-template/runtime/background/main-thread-function/compiled-fixtures.test.tsx +4 -0
- package/runtime/__test__/snapshot/ctxNotFound.test.ts +271 -0
- package/runtime/__test__/snapshot/event.test.jsx +7 -7
- package/runtime/__test__/snapshot/lazy.test.js +73 -1
- package/runtime/__test__/snapshot/lynx/portals.test.jsx +75 -37
- package/runtime/__test__/snapshot/snapshotPatch.test.jsx +59 -47
- package/runtime/__test__/snapshot/spread.test.jsx +10 -10
- package/runtime/__test__/snapshot/worklet/main-thread-object.test.jsx +306 -0
- package/runtime/__test__/snapshot/worklet/workletRef.test.jsx +1 -0
- package/runtime/__test__/worklet-runtime/mainThreadObject.test.js +182 -0
- package/runtime/__test__/worklet-runtime/object-methods.test.js +60 -0
- package/runtime/__test__/worklet-runtime/workletRef.test.js +362 -2
- package/runtime/__test__/worklet-runtime/workletRuntime.test.js +246 -1
- package/runtime/lazy/compat.js +2 -0
- package/runtime/lazy/element-template-internal.js +1 -0
- package/runtime/lazy/element-template.js +2 -0
- package/runtime/lazy/internal.js +2 -0
- package/runtime/lazy/react.js +2 -0
- package/runtime/lib/core/background-function/run-on-background.d.ts +16 -0
- package/runtime/lib/core/background-function/run-on-background.js +16 -0
- package/runtime/lib/core/background-function/run-on-background.js.map +1 -1
- package/runtime/lib/core/capture-main-thread-object.d.ts +1 -0
- package/runtime/lib/core/capture-main-thread-object.js +16 -0
- package/runtime/lib/core/capture-main-thread-object.js.map +1 -0
- package/runtime/lib/core/globalProps.d.ts +2 -0
- package/runtime/lib/core/globalProps.js.map +1 -1
- package/runtime/lib/core/hooks/react.d.ts +4 -0
- package/runtime/lib/core/hooks/react.js +4 -0
- package/runtime/lib/core/hooks/react.js.map +1 -1
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.d.ts +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js +2 -0
- package/runtime/lib/core/hooks/useLynxGlobalEventListener.js.map +1 -1
- package/runtime/lib/core/initData.d.ts +2 -0
- package/runtime/lib/core/initData.js +2 -0
- package/runtime/lib/core/initData.js.map +1 -1
- package/runtime/lib/core/main-thread-object-handle-registry.d.ts +3 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js +17 -0
- package/runtime/lib/core/main-thread-object-handle-registry.js.map +1 -0
- package/runtime/lib/core/main-thread-object.d.ts +77 -0
- package/runtime/lib/core/main-thread-object.js +261 -0
- package/runtime/lib/core/main-thread-object.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-id.d.ts +1 -0
- package/runtime/lib/core/main-thread-ref-id.js +14 -0
- package/runtime/lib/core/main-thread-ref-id.js.map +1 -0
- package/runtime/lib/core/main-thread-ref-init-value.d.ts +1 -1
- package/runtime/lib/core/main-thread-ref-init-value.js +4 -2
- package/runtime/lib/core/main-thread-ref-init-value.js.map +1 -1
- package/runtime/lib/core/main-thread-ref.d.ts +4 -0
- package/runtime/lib/core/main-thread-ref.js +5 -8
- package/runtime/lib/core/main-thread-ref.js.map +1 -1
- package/runtime/lib/element-template/background/commit-hook.js.map +1 -1
- package/runtime/lib/element-template/index.d.ts +2 -0
- package/runtime/lib/element-template/index.js +1 -0
- package/runtime/lib/element-template/index.js.map +1 -1
- package/runtime/lib/element-template/internal.d.ts +1 -0
- package/runtime/lib/element-template/internal.js +1 -0
- package/runtime/lib/element-template/internal.js.map +1 -1
- package/runtime/lib/element-template/protocol/types.d.ts +1 -1
- package/runtime/lib/internal.d.ts +1 -0
- package/runtime/lib/internal.js +1 -0
- package/runtime/lib/internal.js.map +1 -1
- package/runtime/lib/lynx-api.d.ts +34 -0
- package/runtime/lib/lynx-api.js +21 -0
- package/runtime/lib/lynx-api.js.map +1 -1
- package/runtime/lib/lynx.js +4 -1
- package/runtime/lib/lynx.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.d.ts +11 -1
- package/runtime/lib/snapshot/lifecycle/patch/error.js +24 -16
- package/runtime/lib/snapshot/lifecycle/patch/error.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.d.ts +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js +29 -7
- package/runtime/lib/snapshot/lifecycle/patch/snapshotPatchApply.js.map +1 -1
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js +2 -2
- package/runtime/lib/snapshot/lifecycle/patch/updateMainThread.js.map +1 -1
- package/runtime/lib/snapshot/lynx/children.d.ts +2 -0
- package/runtime/lib/snapshot/lynx/children.js.map +1 -1
- package/runtime/lib/snapshot/lynx/element.d.ts +8 -0
- package/runtime/lib/snapshot/lynx/element.js +4 -0
- package/runtime/lib/snapshot/lynx/element.js.map +1 -1
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.d.ts +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js +2 -0
- package/runtime/lib/snapshot/worklet/call/runOnMainThread.js.map +1 -1
- package/runtime/lib/snapshot/worklet/ref/updateInitValue.js.map +1 -1
- package/runtime/lib/tsconfig.tsbuildinfo +1 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.d.ts +3 -3
- package/runtime/lib/worklet-runtime/bindings/bindings.js +9 -1
- package/runtime/lib/worklet-runtime/bindings/bindings.js.map +1 -1
- package/runtime/lib/worklet-runtime/bindings/types.d.ts +3 -6
- package/runtime/lib/worklet-runtime/bindings/types.js.map +1 -1
- package/runtime/lib/worklet-runtime/hydrate.js +26 -7
- package/runtime/lib/worklet-runtime/hydrate.js.map +1 -1
- package/runtime/lib/worklet-runtime/mainThreadObject.d.ts +8 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js +67 -0
- package/runtime/lib/worklet-runtime/mainThreadObject.js.map +1 -0
- package/runtime/lib/worklet-runtime/workletRef.d.ts +11 -7
- package/runtime/lib/worklet-runtime/workletRef.js +72 -9
- package/runtime/lib/worklet-runtime/workletRef.js.map +1 -1
- package/runtime/lib/worklet-runtime/workletRuntime.js +68 -9
- package/runtime/lib/worklet-runtime/workletRuntime.js.map +1 -1
- package/runtime/package.json +2 -3
- package/runtime/src/core/background-function/run-on-background.ts +16 -0
- package/runtime/src/core/capture-main-thread-object.ts +17 -0
- package/runtime/src/core/globalProps.ts +2 -0
- package/runtime/src/core/hooks/react.ts +4 -0
- package/runtime/src/core/hooks/useLynxGlobalEventListener.ts +2 -0
- package/runtime/src/core/initData.ts +2 -0
- package/runtime/src/core/main-thread-object-handle-registry.ts +25 -0
- package/runtime/src/core/main-thread-object.ts +387 -0
- package/runtime/src/core/main-thread-ref-id.ts +16 -0
- package/runtime/src/core/main-thread-ref-init-value.ts +12 -4
- package/runtime/src/core/main-thread-ref.ts +7 -8
- package/runtime/src/element-template/background/commit-hook.ts +1 -1
- package/runtime/src/element-template/index.ts +6 -0
- package/runtime/src/element-template/internal.ts +2 -0
- package/runtime/src/element-template/protocol/types.ts +1 -1
- package/runtime/src/internal.ts +1 -0
- package/runtime/src/lynx-api.ts +38 -0
- package/runtime/src/lynx.ts +5 -1
- package/runtime/src/snapshot/lifecycle/patch/error.ts +36 -19
- package/runtime/src/snapshot/lifecycle/patch/snapshotPatchApply.ts +29 -7
- package/runtime/src/snapshot/lifecycle/patch/updateMainThread.ts +2 -2
- package/runtime/src/snapshot/lynx/children.ts +2 -0
- package/runtime/src/snapshot/lynx/element.ts +8 -0
- package/runtime/src/snapshot/worklet/call/runOnMainThread.ts +2 -0
- package/runtime/src/snapshot/worklet/ref/updateInitValue.ts +1 -1
- package/runtime/src/worklet-runtime/bindings/bindings.ts +17 -2
- package/runtime/src/worklet-runtime/bindings/types.ts +7 -11
- package/runtime/src/worklet-runtime/hydrate.ts +43 -10
- package/runtime/src/worklet-runtime/mainThreadObject.ts +117 -0
- package/runtime/src/worklet-runtime/workletRef.ts +120 -19
- package/runtime/src/worklet-runtime/workletRuntime.ts +83 -11
- package/runtime/worklet-runtime/dev.js +154 -17
- package/runtime/worklet-runtime/main.js +1 -1
- package/testing-library/.turbo/turbo-build.log +6 -6
- package/testing-library/dist/index.d.ts +165 -2
- package/testing-library/package.json +2 -1
- package/testing-library/src/__tests__/lynx.test.jsx +1 -1
- package/testing-library/src/__tests__/worklet.test.jsx +46 -1
- package/testing-library/tsconfig.docs.json +9 -0
- package/testing-library/typedoc.json +22 -0
- package/transform/.turbo/turbo-build$colon$wasm.log +150 -78
- package/transform/__test__/fixture.spec.js +72 -30
- package/transform/__test__/object-methods.spec.js +84 -0
- package/transform/crates/swc_plugin_worklet/decl_collect.rs +10 -0
- package/transform/crates/swc_plugin_worklet/extract_ident.rs +14 -0
- package/transform/crates/swc_plugin_worklet/gen_stmt.rs +202 -3
- package/transform/crates/swc_plugin_worklet/lib.rs +468 -3
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_js.js +8 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_capture_env_lepus.js +10 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_js.js +27 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_expose_object_method_capture_channels_lepus.js +45 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_js.js +16 -14
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_2_lepus.js +16 -16
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_js.js +7 -5
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_extract_member_expr_lepus.js +7 -7
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_computed_object_method_key_lepus.js +24 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_not_capture_object_method_local_decls_lepus.js +16 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_js.js +42 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_preserve_main_thread_objects_in_class_lepus.js +58 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_js.js +3 -1
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_lepus.js +3 -3
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_js.js +9 -0
- package/transform/crates/swc_plugin_worklet/tests/__swc_snapshots__/lib.rs/should_transform_object_methods_lepus.js +16 -0
- package/transform/dist/wasm.cjs +1 -1
- package/transform/rspack-napi/tsconfig.tsbuildinfo +1 -1
- package/transform/swc-plugin-reactlynx/.turbo/turbo-build.log +66 -469
- package/transform/swc-plugin-reactlynx/swc_plugin_reactlynx.wasm +0 -0
- package/transform/swc-plugin-reactlynx-compat/.turbo/turbo-build.log +364 -30
- package/transform/swc-plugin-reactlynx-compat/swc_plugin_reactlynx_compat.wasm +0 -0
- package/transform/vitest.config.ts +5 -1
- package/types/react.docs.d.ts +130 -11
- package/testing-library/node_modules/.bin/rsbuild +0 -68
- package/testing-library/node_modules/.bin/rspeedy +0 -68
- package/testing-library/node_modules/.bin/rstest +0 -68
- package/transform/node_modules/.bin/esbuild +0 -59
- package/transform/node_modules/.bin/napi +0 -68
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# Resolve $0 through symlinks so basedir is the shim's real directory.
|
|
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.
|
|
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
|
|
17
|
-
hops=0
|
|
18
|
-
while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
|
|
19
|
-
hops=$((hops+1))
|
|
20
|
-
target=$(command -p readlink "$link")
|
|
21
|
-
case "$target" in
|
|
22
|
-
/*) link="$target" ;;
|
|
23
|
-
*) link="${link%/*}/$target" ;;
|
|
24
|
-
esac
|
|
25
|
-
done
|
|
26
|
-
basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
|
|
27
|
-
basedir="${basedir%/*}"
|
|
28
|
-
basedir_win="$basedir"
|
|
29
|
-
exe=""
|
|
30
|
-
msys=""
|
|
31
|
-
|
|
32
|
-
case `command -p uname -a` in
|
|
33
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
34
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
35
|
-
basedir_win=`cygpath -w "$basedir"`
|
|
36
|
-
fi
|
|
37
|
-
exe=".exe"
|
|
38
|
-
msys="true"
|
|
39
|
-
;;
|
|
40
|
-
*WSL2*)
|
|
41
|
-
if command -v wslpath > /dev/null 2>&1; then
|
|
42
|
-
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
43
|
-
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
44
|
-
basedir_win="$basedir"
|
|
45
|
-
else
|
|
46
|
-
exe=".exe"
|
|
47
|
-
fi
|
|
48
|
-
fi
|
|
49
|
-
;;
|
|
50
|
-
esac
|
|
51
|
-
|
|
52
|
-
if [ -z "$NODE_PATH" ]; then
|
|
53
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules"
|
|
54
|
-
else
|
|
55
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
56
|
-
fi
|
|
57
|
-
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
58
|
-
exec "$basedir/node.exe" "$basedir_win/../@lynx-js/rspeedy/bin/rspeedy-for-dev.js" "$@"
|
|
59
|
-
elif [ -x "$basedir/node" ]; then
|
|
60
|
-
exec "$basedir/node" "$basedir/../@lynx-js/rspeedy/bin/rspeedy-for-dev.js" "$@"
|
|
61
|
-
elif command -v node >/dev/null 2>&1; then
|
|
62
|
-
exec node "$basedir/../@lynx-js/rspeedy/bin/rspeedy-for-dev.js" "$@"
|
|
63
|
-
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
64
|
-
exec node.exe "$basedir_win/../@lynx-js/rspeedy/bin/rspeedy-for-dev.js" "$@"
|
|
65
|
-
else
|
|
66
|
-
exec node "$basedir/../@lynx-js/rspeedy/bin/rspeedy-for-dev.js" "$@"
|
|
67
|
-
fi
|
|
68
|
-
# cmd-shim-target=/home/runner/work/lynx-stack/lynx-stack/packages/react/testing-library/node_modules/@lynx-js/rspeedy/./bin/rspeedy-for-dev.js
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# Resolve $0 through symlinks so basedir is the shim's real directory.
|
|
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.
|
|
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
|
|
17
|
-
hops=0
|
|
18
|
-
while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
|
|
19
|
-
hops=$((hops+1))
|
|
20
|
-
target=$(command -p readlink "$link")
|
|
21
|
-
case "$target" in
|
|
22
|
-
/*) link="$target" ;;
|
|
23
|
-
*) link="${link%/*}/$target" ;;
|
|
24
|
-
esac
|
|
25
|
-
done
|
|
26
|
-
basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
|
|
27
|
-
basedir="${basedir%/*}"
|
|
28
|
-
basedir_win="$basedir"
|
|
29
|
-
exe=""
|
|
30
|
-
msys=""
|
|
31
|
-
|
|
32
|
-
case `command -p uname -a` in
|
|
33
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
34
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
35
|
-
basedir_win=`cygpath -w "$basedir"`
|
|
36
|
-
fi
|
|
37
|
-
exe=".exe"
|
|
38
|
-
msys="true"
|
|
39
|
-
;;
|
|
40
|
-
*WSL2*)
|
|
41
|
-
if command -v wslpath > /dev/null 2>&1; then
|
|
42
|
-
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
43
|
-
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
44
|
-
basedir_win="$basedir"
|
|
45
|
-
else
|
|
46
|
-
exe=".exe"
|
|
47
|
-
fi
|
|
48
|
-
fi
|
|
49
|
-
;;
|
|
50
|
-
esac
|
|
51
|
-
|
|
52
|
-
if [ -z "$NODE_PATH" ]; then
|
|
53
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rstest+core@0.12.1_core-js@3.50.0_happy-dom@20.14.0_jsdom@30.0.1/node_modules/@rstest/core/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rstest+core@0.12.1_core-js@3.50.0_happy-dom@20.14.0_jsdom@30.0.1/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules"
|
|
54
|
-
else
|
|
55
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rstest+core@0.12.1_core-js@3.50.0_happy-dom@20.14.0_jsdom@30.0.1/node_modules/@rstest/core/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@rstest+core@0.12.1_core-js@3.50.0_happy-dom@20.14.0_jsdom@30.0.1/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
56
|
-
fi
|
|
57
|
-
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
58
|
-
exec "$basedir/node.exe" "$basedir_win/../@rstest/core/bin/rstest.js" "$@"
|
|
59
|
-
elif [ -x "$basedir/node" ]; then
|
|
60
|
-
exec "$basedir/node" "$basedir/../@rstest/core/bin/rstest.js" "$@"
|
|
61
|
-
elif command -v node >/dev/null 2>&1; then
|
|
62
|
-
exec node "$basedir/../@rstest/core/bin/rstest.js" "$@"
|
|
63
|
-
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
64
|
-
exec node.exe "$basedir_win/../@rstest/core/bin/rstest.js" "$@"
|
|
65
|
-
else
|
|
66
|
-
exec node "$basedir/../@rstest/core/bin/rstest.js" "$@"
|
|
67
|
-
fi
|
|
68
|
-
# cmd-shim-target=/home/runner/work/lynx-stack/lynx-stack/packages/react/testing-library/node_modules/@rstest/core/./bin/rstest.js
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# Resolve $0 through symlinks so basedir is the shim's real directory.
|
|
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.
|
|
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
|
|
17
|
-
hops=0
|
|
18
|
-
while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
|
|
19
|
-
hops=$((hops+1))
|
|
20
|
-
target=$(command -p readlink "$link")
|
|
21
|
-
case "$target" in
|
|
22
|
-
/*) link="$target" ;;
|
|
23
|
-
*) link="${link%/*}/$target" ;;
|
|
24
|
-
esac
|
|
25
|
-
done
|
|
26
|
-
basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
|
|
27
|
-
basedir="${basedir%/*}"
|
|
28
|
-
basedir_win="$basedir"
|
|
29
|
-
exe=""
|
|
30
|
-
msys=""
|
|
31
|
-
|
|
32
|
-
case `command -p uname -a` in
|
|
33
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
34
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
35
|
-
basedir_win=`cygpath -w "$basedir"`
|
|
36
|
-
fi
|
|
37
|
-
exe=".exe"
|
|
38
|
-
msys="true"
|
|
39
|
-
;;
|
|
40
|
-
*WSL2*)
|
|
41
|
-
if command -v wslpath > /dev/null 2>&1; then
|
|
42
|
-
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
43
|
-
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
44
|
-
basedir_win="$basedir"
|
|
45
|
-
else
|
|
46
|
-
exe=".exe"
|
|
47
|
-
fi
|
|
48
|
-
fi
|
|
49
|
-
;;
|
|
50
|
-
esac
|
|
51
|
-
|
|
52
|
-
if [ -z "$NODE_PATH" ]; then
|
|
53
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/esbuild@0.28.1/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules"
|
|
54
|
-
else
|
|
55
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/esbuild@0.28.1/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
56
|
-
fi
|
|
57
|
-
exec "$basedir/../esbuild/bin/esbuild" "$@"
|
|
58
|
-
exit $?
|
|
59
|
-
# cmd-shim-target=/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/node_modules/esbuild/bin/esbuild
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# Resolve $0 through symlinks so basedir is the shim's real directory.
|
|
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.
|
|
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
|
|
17
|
-
hops=0
|
|
18
|
-
while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
|
|
19
|
-
hops=$((hops+1))
|
|
20
|
-
target=$(command -p readlink "$link")
|
|
21
|
-
case "$target" in
|
|
22
|
-
/*) link="$target" ;;
|
|
23
|
-
*) link="${link%/*}/$target" ;;
|
|
24
|
-
esac
|
|
25
|
-
done
|
|
26
|
-
basedir=$(command -p printf '%s\n' "$link" | command -p sed -e 's,\\,/,g')
|
|
27
|
-
basedir="${basedir%/*}"
|
|
28
|
-
basedir_win="$basedir"
|
|
29
|
-
exe=""
|
|
30
|
-
msys=""
|
|
31
|
-
|
|
32
|
-
case `command -p uname -a` in
|
|
33
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
34
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
35
|
-
basedir_win=`cygpath -w "$basedir"`
|
|
36
|
-
fi
|
|
37
|
-
exe=".exe"
|
|
38
|
-
msys="true"
|
|
39
|
-
;;
|
|
40
|
-
*WSL2*)
|
|
41
|
-
if command -v wslpath > /dev/null 2>&1; then
|
|
42
|
-
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
43
|
-
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
44
|
-
basedir_win="$basedir"
|
|
45
|
-
else
|
|
46
|
-
exe=".exe"
|
|
47
|
-
fi
|
|
48
|
-
fi
|
|
49
|
-
;;
|
|
50
|
-
esac
|
|
51
|
-
|
|
52
|
-
if [ -z "$NODE_PATH" ]; then
|
|
53
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@napi-rs+cli@2.18.4_patch_hash=ba947eb1c48b2a85834e99f92cbbae896722ce61fd5ae67507a3be9041959ebd/node_modules/@napi-rs/cli/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@napi-rs+cli@2.18.4_patch_hash=ba947eb1c48b2a85834e99f92cbbae896722ce61fd5ae67507a3be9041959ebd/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules"
|
|
54
|
-
else
|
|
55
|
-
export NODE_PATH="/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@napi-rs+cli@2.18.4_patch_hash=ba947eb1c48b2a85834e99f92cbbae896722ce61fd5ae67507a3be9041959ebd/node_modules/@napi-rs/cli/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/@napi-rs+cli@2.18.4_patch_hash=ba947eb1c48b2a85834e99f92cbbae896722ce61fd5ae67507a3be9041959ebd/node_modules:/home/runner/work/lynx-stack/lynx-stack/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
56
|
-
fi
|
|
57
|
-
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
58
|
-
exec "$basedir/node.exe" "$basedir_win/../@napi-rs/cli/scripts/index.js" "$@"
|
|
59
|
-
elif [ -x "$basedir/node" ]; then
|
|
60
|
-
exec "$basedir/node" "$basedir/../@napi-rs/cli/scripts/index.js" "$@"
|
|
61
|
-
elif command -v node >/dev/null 2>&1; then
|
|
62
|
-
exec node "$basedir/../@napi-rs/cli/scripts/index.js" "$@"
|
|
63
|
-
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
64
|
-
exec node.exe "$basedir_win/../@napi-rs/cli/scripts/index.js" "$@"
|
|
65
|
-
else
|
|
66
|
-
exec node "$basedir/../@napi-rs/cli/scripts/index.js" "$@"
|
|
67
|
-
fi
|
|
68
|
-
# cmd-shim-target=/home/runner/work/lynx-stack/lynx-stack/packages/react/transform/node_modules/@napi-rs/cli/./scripts/index.js
|