react-native-ariel 0.1.0-dev.32 → 0.1.0-dev.33

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.
@@ -5,22 +5,19 @@ project(Ariel)
5
5
  set (CMAKE_VERBOSE_MAKEFILE ON)
6
6
  set (CMAKE_CXX_STANDARD 17)
7
7
 
8
- # Resolve the path to the uniffi-bindgen-react-native package
9
- execute_process(
10
- COMMAND node -p "require.resolve('uniffi-bindgen-react-native/package.json')"
11
- OUTPUT_VARIABLE UNIFFI_BINDGEN_PATH
12
- OUTPUT_STRIP_TRAILING_WHITESPACE
8
+ # Resolve uniffi-bindgen-react-native include path without requiring 'node'
9
+ # in the CMake subprocess PATH. cmake_path normalises Windows separators.
10
+ cmake_path(SET UNIFFI_INCLUDES
11
+ "${CMAKE_CURRENT_LIST_DIR}/../node_modules/uniffi-bindgen-react-native/cpp/includes"
12
+ NORMALIZE
13
13
  )
14
- # Get the directory; get_filename_component and cmake_path will normalize
15
- # paths with Windows path separators.
16
- get_filename_component(UNIFFI_BINDGEN_PATH "${UNIFFI_BINDGEN_PATH}" DIRECTORY)
17
14
 
18
15
  # Specifies a path to native header files.
19
16
  include_directories(
20
17
  ../cpp
21
18
  ../cpp/generated
22
19
 
23
- ${UNIFFI_BINDGEN_PATH}/cpp/includes
20
+ ${UNIFFI_INCLUDES}
24
21
  )
25
22
 
26
23
  add_library(react-native-ariel SHARED
@@ -1 +1,2 @@
1
- {"version":3,"names":["mermaid_wrapper","initAsync","wasmPath","uniffiInitAsync","module_or_path","default","initialize"],"sourceRoot":"../../src","sources":["index.web.ts"],"mappings":";;AAAA;AACA;AACA,cAAc,oCAAiC;;AAE/C;AACA;AACA;AACA,OAAO,KAAKA,eAAe,MAAM,oCAAiC;AAElE,OAAOC,SAAS,MAAM,oDAAoD;AAC1E,OAAOC,QAAQ,MAAM,yDAAyD;AAE9E,OAAO,eAAeC,eAAeA,CAAA,EAAG;EACtC,MAAMF,SAAS,CAAC;IAAEG,cAAc,EAAEF;EAAS,CAAC,CAAC;;EAE7C;EACA;EACA;EACAF,eAAe,CAACK,OAAO,CAACC,UAAU,CAAC,CAAC;AACtC;;AAEA;AACA,eAAe;EACbN;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["mermaid_wrapper","initAsync","wasmPath","uniffiInitAsync","module_or_path","default","initialize"],"sourceRoot":"../../src","sources":["index.web.tsx"],"mappings":";;AAAA;AACA;AACA,cAAc,oCAAiC;AAE/C,OAAO,KAAKA,eAAe,MAAM,oCAAiC;AAElE,OAAOC,SAAS,MAAM,oDAAoD;AAC1E,OAAOC,QAAQ,MAAM,yDAAyD;AAE9E,OAAO,eAAeC,eAAeA,CAAA,EAAG;EACtC,MAAMF,SAAS,CAAC;IAAEG,cAAc,EAAEF;EAAS,CAAC,CAAC;EAC7CF,eAAe,CAACK,OAAO,CAACC,UAAU,CAAC,CAAC;AACtC;AAEA,eAAe;EACbN;AACF,CAAC","ignoreList":[]}
2
+ Ae;EACbN;AACF,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ariel",
3
- "version": "0.1.0-dev.32",
3
+ "version": "0.1.0-dev.33",
4
4
  "description": "Mermaid diagrams for React Native and React Native Web. No DOM. No WebView. Pure Rust.",
5
5
  "main": "./lib/module/index.js",
6
6
  "source": "./src/index.tsx",