react-native-worklets 0.11.0-nightly-20260714-71053ec96 → 0.11.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.
@@ -23,9 +23,13 @@ fun safeAppExtGet(prop: String, fallback: Any?): Any? {
23
23
  }
24
24
 
25
25
  fun resolveReactNativeDirectory(): File {
26
- val reactNativeLocation = safeAppExtGet("REACT_NATIVE_NODE_MODULES_DIR", null) as String?
27
- if (reactNativeLocation != null) {
28
- return file(reactNativeLocation)
26
+ val reactNativeLocationProperty = safeAppExtGet("REACT_NATIVE_NODE_MODULES_DIR", null)
27
+ if (reactNativeLocationProperty != null) {
28
+ return when (reactNativeLocationProperty) {
29
+ is File -> reactNativeLocationProperty
30
+ is String -> file(reactNativeLocationProperty)
31
+ else -> file(reactNativeLocationProperty.toString())
32
+ }
29
33
  }
30
34
 
31
35
  // Fallback to node resolver for custom directory structures like monorepos.
@@ -5,5 +5,5 @@
5
5
  * version used to build the native part of the library in runtime. Remember to
6
6
  * keep this in sync with the version declared in `package.json`
7
7
  */
8
- export const jsVersion = '0.11.0-nightly-20260714-71053ec96';
8
+ export const jsVersion = '0.11.0';
9
9
  //# sourceMappingURL=jsVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["jsVersion"],"sourceRoot":"../../../src","sources":["debug/jsVersion.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,mCAAmC","ignoreList":[]}
1
+ {"version":3,"names":["jsVersion"],"sourceRoot":"../../../src","sources":["debug/jsVersion.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,QAAQ","ignoreList":[]}
@@ -3,5 +3,5 @@
3
3
  * version used to build the native part of the library in runtime. Remember to
4
4
  * keep this in sync with the version declared in `package.json`
5
5
  */
6
- export declare const jsVersion = "0.11.0-nightly-20260714-71053ec96";
6
+ export declare const jsVersion = "0.11.0";
7
7
  //# sourceMappingURL=jsVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsVersion.d.ts","sourceRoot":"","sources":["../../../src/debug/jsVersion.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,SAAS,sCAAsC,CAAC"}
1
+ {"version":3,"file":"jsVersion.d.ts","sourceRoot":"","sources":["../../../src/debug/jsVersion.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,SAAS,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-worklets",
3
- "version": "0.11.0-nightly-20260714-71053ec96",
3
+ "version": "0.11.0",
4
4
  "description": "The React Native multithreading library",
5
5
  "keywords": [
6
6
  "react-native",
package/plugin/index.js CHANGED
@@ -761,7 +761,7 @@ var require_generate = __commonJS({
761
761
  const newProg = (0, types_12.program)([...imports, (0, types_12.exportDefaultDeclaration)(factory)]);
762
762
  const transformedProg = (_a = (0, core_1.transformFromAstSync)(newProg, void 0, {
763
763
  filename: state.file.opts.filename,
764
- presets: ["@babel/preset-typescript"],
764
+ presets: [resolvePresetTypescript()],
765
765
  plugins: [state.autoworkletizationPlugin, stripJsxDevAttributesPlugin],
766
766
  ast: false,
767
767
  babelrc: false,
@@ -772,6 +772,15 @@ var require_generate = __commonJS({
772
772
  const dedicatedFilePath = (0, path_1.resolve)(filesDirPath, `${workletHash}.js`);
773
773
  (0, fs_1.writeFileSync)(dedicatedFilePath, transformedProg);
774
774
  }
775
+ function resolvePresetTypescript() {
776
+ try {
777
+ return require.resolve("@babel/preset-typescript");
778
+ } catch (_a) {
779
+ return require.resolve("@babel/preset-typescript", {
780
+ paths: [(0, path_1.dirname)(require.resolve("react-native-worklets/package.json"))]
781
+ });
782
+ }
783
+ }
775
784
  var stripJsxDevAttributesPlugin = {
776
785
  name: "worklets-strip-jsx-dev-attributes",
777
786
  visitor: {
@@ -5,4 +5,4 @@
5
5
  * version used to build the native part of the library in runtime. Remember to
6
6
  * keep this in sync with the version declared in `package.json`
7
7
  */
8
- export const jsVersion = '0.11.0-nightly-20260714-71053ec96';
8
+ export const jsVersion = '0.11.0';