@op-engineering/op-sqlite 0.0.0-resolution-test → 0.0.0-resolution-test2

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/op-sqlite.podspec CHANGED
@@ -12,11 +12,13 @@ fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
12
12
 
13
13
  parent_folder_name = File.basename(__dir__)
14
14
  app_package = nil
15
+ package_json_path = nil
15
16
 
16
17
  # When installed on user node_modules lives inside node_modules/@op-engineering/op-sqlite
17
18
  if is_user_app
18
19
  current_dir = File.expand_path(__dir__)
19
- package_json_path = nil
20
+ # Move one level up to the parent directory
21
+ current_dir = File.dirname(current_dir)
20
22
 
21
23
  # Find the package.json by searching up through parent directories
22
24
  loop do
@@ -36,6 +38,7 @@ if is_user_app
36
38
  app_package = JSON.parse(File.read(package_json_path))
37
39
  # When running on the example app
38
40
  else
41
+ package_json_path = File.join(__dir__, "example", "package.json")
39
42
  app_package = JSON.parse(File.read(File.join(__dir__, "example", "package.json")))
40
43
  end
41
44
 
@@ -119,8 +122,8 @@ Pod::Spec.new do |s|
119
122
  :CLANG_CXX_LANGUAGE_STANDARD => "c++17",
120
123
  }
121
124
 
122
- log_message.call("[OP-SQLITE] Configuration:")
123
-
125
+ log_message.call("[OP-SQLITE] Configuration found at #{package_json_path}")
126
+
124
127
  exclude_files = []
125
128
 
126
129
  if use_sqlcipher then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@op-engineering/op-sqlite",
3
- "version": "0.0.0-resolution-test",
3
+ "version": "0.0.0-resolution-test2",
4
4
  "description": "Next generation SQLite for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",