react-native-asset 2.1.0 → 2.2.0-rc0

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 (570) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +34 -16
  3. package/esm/_dnt.polyfills.d.ts +111 -0
  4. package/esm/_dnt.polyfills.d.ts.map +1 -0
  5. package/esm/_dnt.polyfills.js +141 -0
  6. package/esm/_dnt.shims.d.ts +6 -0
  7. package/esm/_dnt.shims.d.ts.map +1 -0
  8. package/esm/_dnt.shims.js +61 -0
  9. package/esm/clean-assets/android.d.ts +6 -0
  10. package/esm/clean-assets/android.d.ts.map +1 -0
  11. package/esm/clean-assets/android.js +24 -0
  12. package/esm/clean-assets/ios.d.ts +7 -0
  13. package/esm/clean-assets/ios.d.ts.map +1 -0
  14. package/esm/clean-assets/ios.js +22 -0
  15. package/esm/cli.d.ts +2 -0
  16. package/esm/cli.d.ts.map +1 -0
  17. package/esm/cli.js +68 -0
  18. package/esm/copy-assets/android.d.ts +6 -0
  19. package/esm/copy-assets/android.d.ts.map +1 -0
  20. package/esm/copy-assets/android.js +31 -0
  21. package/esm/copy-assets/ios.d.ts +7 -0
  22. package/esm/copy-assets/ios.d.ts.map +1 -0
  23. package/esm/copy-assets/ios.js +27 -0
  24. package/esm/deps/jsr.io/@std/cli/1.0.24/parse_args.d.ts +343 -0
  25. package/esm/deps/jsr.io/@std/cli/1.0.24/parse_args.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@std/cli/1.0.24/parse_args.js +358 -0
  27. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  28. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
  30. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  31. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
  33. package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +2 -0
  34. package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +7 -0
  36. package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +4 -0
  37. package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/path/1.1.3/_common/basename.js +40 -0
  39. package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +2 -0
  40. package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +1 -0
  41. package/esm/deps/jsr.io/@std/path/1.1.3/_common/common.js +23 -0
  42. package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +40 -0
  43. package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@std/path/1.1.3/_common/constants.js +46 -0
  45. package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +2 -0
  46. package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +1 -0
  47. package/esm/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +8 -0
  48. package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +4 -0
  49. package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +1 -0
  50. package/esm/deps/jsr.io/@std/path/1.1.3/_common/format.js +19 -0
  51. package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +2 -0
  52. package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +1 -0
  53. package/esm/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +9 -0
  54. package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +35 -0
  55. package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +1 -0
  56. package/esm/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +234 -0
  57. package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +2 -0
  58. package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +1 -0
  59. package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +8 -0
  60. package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +2 -0
  61. package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +1 -0
  62. package/esm/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +77 -0
  63. package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +2 -0
  64. package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +1 -0
  65. package/esm/deps/jsr.io/@std/path/1.1.3/_common/relative.js +9 -0
  66. package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +2 -0
  67. package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +1 -0
  68. package/esm/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +19 -0
  69. package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +2 -0
  70. package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +1 -0
  71. package/esm/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +15 -0
  72. package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts +27 -0
  73. package/esm/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
  74. package/esm/deps/jsr.io/@std/path/1.1.3/basename.js +35 -0
  75. package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts +28 -0
  76. package/esm/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +1 -0
  77. package/esm/deps/jsr.io/@std/path/1.1.3/common.js +33 -0
  78. package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts +15 -0
  79. package/esm/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +1 -0
  80. package/esm/deps/jsr.io/@std/path/1.1.3/constants.js +17 -0
  81. package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +22 -0
  82. package/esm/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
  83. package/esm/deps/jsr.io/@std/path/1.1.3/dirname.js +28 -0
  84. package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts +22 -0
  85. package/esm/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
  86. package/esm/deps/jsr.io/@std/path/1.1.3/extname.js +28 -0
  87. package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts +22 -0
  88. package/esm/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +1 -0
  89. package/esm/deps/jsr.io/@std/path/1.1.3/format.js +27 -0
  90. package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +22 -0
  91. package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +1 -0
  92. package/esm/deps/jsr.io/@std/path/1.1.3/from_file_url.js +28 -0
  93. package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +77 -0
  94. package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +1 -0
  95. package/esm/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +83 -0
  96. package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +22 -0
  97. package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +1 -0
  98. package/esm/deps/jsr.io/@std/path/1.1.3/is_absolute.js +28 -0
  99. package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +17 -0
  100. package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +1 -0
  101. package/esm/deps/jsr.io/@std/path/1.1.3/is_glob.js +42 -0
  102. package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts +23 -0
  103. package/esm/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
  104. package/esm/deps/jsr.io/@std/path/1.1.3/join.js +29 -0
  105. package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +28 -0
  106. package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +1 -0
  107. package/esm/deps/jsr.io/@std/path/1.1.3/join_globs.js +34 -0
  108. package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
  109. package/esm/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
  110. package/esm/deps/jsr.io/@std/path/1.1.3/mod.js +216 -0
  111. package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +26 -0
  112. package/esm/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
  113. package/esm/deps/jsr.io/@std/path/1.1.3/normalize.js +32 -0
  114. package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +29 -0
  115. package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +1 -0
  116. package/esm/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +35 -0
  117. package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts +35 -0
  118. package/esm/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +1 -0
  119. package/esm/deps/jsr.io/@std/path/1.1.3/parse.js +39 -0
  120. package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +2 -0
  121. package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +1 -0
  122. package/esm/deps/jsr.io/@std/path/1.1.3/posix/_util.js +8 -0
  123. package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +39 -0
  124. package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
  125. package/esm/deps/jsr.io/@std/path/1.1.3/posix/basename.js +52 -0
  126. package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +13 -0
  127. package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +1 -0
  128. package/esm/deps/jsr.io/@std/path/1.1.3/posix/constants.js +14 -0
  129. package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +30 -0
  130. package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
  131. package/esm/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +64 -0
  132. package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +37 -0
  133. package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
  134. package/esm/deps/jsr.io/@std/path/1.1.3/posix/extname.js +93 -0
  135. package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +24 -0
  136. package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +1 -0
  137. package/esm/deps/jsr.io/@std/path/1.1.3/posix/format.js +28 -0
  138. package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +16 -0
  139. package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +1 -0
  140. package/esm/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +21 -0
  141. package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +72 -0
  142. package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +1 -0
  143. package/esm/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +82 -0
  144. package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +17 -0
  145. package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +1 -0
  146. package/esm/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +23 -0
  147. package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +31 -0
  148. package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
  149. package/esm/deps/jsr.io/@std/path/1.1.3/posix/join.js +45 -0
  150. package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +20 -0
  151. package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +1 -0
  152. package/esm/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +40 -0
  153. package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +37 -0
  154. package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
  155. package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +58 -0
  156. package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +20 -0
  157. package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +1 -0
  158. package/esm/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +32 -0
  159. package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +25 -0
  160. package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +1 -0
  161. package/esm/deps/jsr.io/@std/path/1.1.3/posix/parse.js +115 -0
  162. package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +20 -0
  163. package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +1 -0
  164. package/esm/deps/jsr.io/@std/path/1.1.3/posix/relative.js +106 -0
  165. package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +17 -0
  166. package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +1 -0
  167. package/esm/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +59 -0
  168. package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +17 -0
  169. package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +1 -0
  170. package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +27 -0
  171. package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +16 -0
  172. package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +1 -0
  173. package/esm/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +20 -0
  174. package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts +24 -0
  175. package/esm/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +1 -0
  176. package/esm/deps/jsr.io/@std/path/1.1.3/relative.js +30 -0
  177. package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +22 -0
  178. package/esm/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +1 -0
  179. package/esm/deps/jsr.io/@std/path/1.1.3/resolve.js +30 -0
  180. package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +22 -0
  181. package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +1 -0
  182. package/esm/deps/jsr.io/@std/path/1.1.3/to_file_url.js +28 -0
  183. package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +21 -0
  184. package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +1 -0
  185. package/esm/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +29 -0
  186. package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts +38 -0
  187. package/esm/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +1 -0
  188. package/esm/deps/jsr.io/@std/path/1.1.3/types.js +3 -0
  189. package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +4 -0
  190. package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +1 -0
  191. package/esm/deps/jsr.io/@std/path/1.1.3/windows/_util.js +15 -0
  192. package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +22 -0
  193. package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
  194. package/esm/deps/jsr.io/@std/path/1.1.3/windows/basename.js +47 -0
  195. package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +13 -0
  196. package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +1 -0
  197. package/esm/deps/jsr.io/@std/path/1.1.3/windows/constants.js +14 -0
  198. package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
  199. package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
  200. package/esm/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +113 -0
  201. package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +17 -0
  202. package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
  203. package/esm/deps/jsr.io/@std/path/1.1.3/windows/extname.js +82 -0
  204. package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +24 -0
  205. package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +1 -0
  206. package/esm/deps/jsr.io/@std/path/1.1.3/windows/format.js +28 -0
  207. package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +18 -0
  208. package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +1 -0
  209. package/esm/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +30 -0
  210. package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +71 -0
  211. package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +1 -0
  212. package/esm/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +82 -0
  213. package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +17 -0
  214. package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +1 -0
  215. package/esm/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +38 -0
  216. package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
  217. package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
  218. package/esm/deps/jsr.io/@std/path/1.1.3/windows/join.js +77 -0
  219. package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +21 -0
  220. package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +1 -0
  221. package/esm/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +41 -0
  222. package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +19 -0
  223. package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
  224. package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +135 -0
  225. package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +20 -0
  226. package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +1 -0
  227. package/esm/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +32 -0
  228. package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +25 -0
  229. package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +1 -0
  230. package/esm/deps/jsr.io/@std/path/1.1.3/windows/parse.js +176 -0
  231. package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +23 -0
  232. package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +1 -0
  233. package/esm/deps/jsr.io/@std/path/1.1.3/windows/relative.js +131 -0
  234. package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +17 -0
  235. package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +1 -0
  236. package/esm/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +154 -0
  237. package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +17 -0
  238. package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +1 -0
  239. package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +34 -0
  240. package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +17 -0
  241. package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +1 -0
  242. package/esm/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +49 -0
  243. package/esm/get-config.d.ts +14 -0
  244. package/esm/get-config.d.ts.map +1 -0
  245. package/esm/get-config.js +41 -0
  246. package/esm/main.d.ts +11 -0
  247. package/esm/main.d.ts.map +1 -0
  248. package/esm/main.js +235 -0
  249. package/esm/manifest/index.d.ts +11 -0
  250. package/esm/manifest/index.d.ts.map +1 -0
  251. package/esm/manifest/index.js +32 -0
  252. package/esm/mod.d.ts +4 -0
  253. package/esm/mod.d.ts.map +1 -0
  254. package/esm/mod.js +11 -0
  255. package/esm/package.json +3 -0
  256. package/esm/react-native-lib/ios/createGroup.d.ts +8 -0
  257. package/esm/react-native-lib/ios/createGroup.d.ts.map +1 -0
  258. package/esm/react-native-lib/ios/createGroup.js +26 -0
  259. package/esm/react-native-lib/ios/createGroupWithMessage.d.ts +8 -0
  260. package/esm/react-native-lib/ios/createGroupWithMessage.d.ts.map +1 -0
  261. package/esm/react-native-lib/ios/createGroupWithMessage.js +22 -0
  262. package/esm/react-native-lib/ios/getBuildProperty.d.ts +19 -0
  263. package/esm/react-native-lib/ios/getBuildProperty.d.ts.map +1 -0
  264. package/{lib → esm}/react-native-lib/ios/getBuildProperty.js +6 -9
  265. package/esm/react-native-lib/ios/getGroup.d.ts +10 -0
  266. package/esm/react-native-lib/ios/getGroup.d.ts.map +1 -0
  267. package/esm/react-native-lib/ios/getGroup.js +35 -0
  268. package/esm/react-native-lib/ios/getPlist.d.ts +7 -0
  269. package/esm/react-native-lib/ios/getPlist.d.ts.map +1 -0
  270. package/esm/react-native-lib/ios/getPlist.js +28 -0
  271. package/esm/react-native-lib/ios/getPlistPath.d.ts +2 -0
  272. package/esm/react-native-lib/ios/getPlistPath.d.ts.map +1 -0
  273. package/esm/react-native-lib/ios/getPlistPath.js +15 -0
  274. package/esm/react-native-lib/ios/writePlist.d.ts +7 -0
  275. package/esm/react-native-lib/ios/writePlist.d.ts.map +1 -0
  276. package/esm/react-native-lib/ios/writePlist.js +24 -0
  277. package/package.json +24 -30
  278. package/script/_dnt.polyfills.d.ts +111 -0
  279. package/script/_dnt.polyfills.d.ts.map +1 -0
  280. package/script/_dnt.polyfills.js +144 -0
  281. package/script/_dnt.shims.d.ts +6 -0
  282. package/script/_dnt.shims.d.ts.map +1 -0
  283. package/script/_dnt.shims.js +65 -0
  284. package/script/clean-assets/android.d.ts +6 -0
  285. package/script/clean-assets/android.d.ts.map +1 -0
  286. package/script/clean-assets/android.js +60 -0
  287. package/script/clean-assets/ios.d.ts +7 -0
  288. package/script/clean-assets/ios.d.ts.map +1 -0
  289. package/script/clean-assets/ios.js +61 -0
  290. package/script/cli.d.ts +2 -0
  291. package/script/cli.d.ts.map +1 -0
  292. package/script/cli.js +105 -0
  293. package/script/copy-assets/android.d.ts +6 -0
  294. package/script/copy-assets/android.d.ts.map +1 -0
  295. package/script/copy-assets/android.js +67 -0
  296. package/script/copy-assets/ios.d.ts +7 -0
  297. package/script/copy-assets/ios.d.ts.map +1 -0
  298. package/script/copy-assets/ios.js +66 -0
  299. package/script/deps/jsr.io/@std/cli/1.0.24/parse_args.d.ts +343 -0
  300. package/script/deps/jsr.io/@std/cli/1.0.24/parse_args.d.ts.map +1 -0
  301. package/script/deps/jsr.io/@std/cli/1.0.24/parse_args.js +361 -0
  302. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  303. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  304. package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +48 -0
  305. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  306. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  307. package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
  308. package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts +2 -0
  309. package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.d.ts.map +1 -0
  310. package/script/deps/jsr.io/@std/path/1.1.3/_common/assert_path.js +10 -0
  311. package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts +4 -0
  312. package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.d.ts.map +1 -0
  313. package/script/deps/jsr.io/@std/path/1.1.3/_common/basename.js +45 -0
  314. package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts +2 -0
  315. package/script/deps/jsr.io/@std/path/1.1.3/_common/common.d.ts.map +1 -0
  316. package/script/deps/jsr.io/@std/path/1.1.3/_common/common.js +26 -0
  317. package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts +40 -0
  318. package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.d.ts.map +1 -0
  319. package/script/deps/jsr.io/@std/path/1.1.3/_common/constants.js +49 -0
  320. package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts +2 -0
  321. package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.d.ts.map +1 -0
  322. package/script/deps/jsr.io/@std/path/1.1.3/_common/dirname.js +11 -0
  323. package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts +4 -0
  324. package/script/deps/jsr.io/@std/path/1.1.3/_common/format.d.ts.map +1 -0
  325. package/script/deps/jsr.io/@std/path/1.1.3/_common/format.js +23 -0
  326. package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts +2 -0
  327. package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.d.ts.map +1 -0
  328. package/script/deps/jsr.io/@std/path/1.1.3/_common/from_file_url.js +12 -0
  329. package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts +35 -0
  330. package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.d.ts.map +1 -0
  331. package/script/deps/jsr.io/@std/path/1.1.3/_common/glob_to_reg_exp.js +237 -0
  332. package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts +2 -0
  333. package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.d.ts.map +1 -0
  334. package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize.js +11 -0
  335. package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts +2 -0
  336. package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.d.ts.map +1 -0
  337. package/script/deps/jsr.io/@std/path/1.1.3/_common/normalize_string.js +80 -0
  338. package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts +2 -0
  339. package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.d.ts.map +1 -0
  340. package/script/deps/jsr.io/@std/path/1.1.3/_common/relative.js +12 -0
  341. package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts +2 -0
  342. package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.d.ts.map +1 -0
  343. package/script/deps/jsr.io/@std/path/1.1.3/_common/strip_trailing_separators.js +22 -0
  344. package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts +2 -0
  345. package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.d.ts.map +1 -0
  346. package/script/deps/jsr.io/@std/path/1.1.3/_common/to_file_url.js +18 -0
  347. package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts +27 -0
  348. package/script/deps/jsr.io/@std/path/1.1.3/basename.d.ts.map +1 -0
  349. package/script/deps/jsr.io/@std/path/1.1.3/basename.js +38 -0
  350. package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts +28 -0
  351. package/script/deps/jsr.io/@std/path/1.1.3/common.d.ts.map +1 -0
  352. package/script/deps/jsr.io/@std/path/1.1.3/common.js +36 -0
  353. package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts +15 -0
  354. package/script/deps/jsr.io/@std/path/1.1.3/constants.d.ts.map +1 -0
  355. package/script/deps/jsr.io/@std/path/1.1.3/constants.js +20 -0
  356. package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts +22 -0
  357. package/script/deps/jsr.io/@std/path/1.1.3/dirname.d.ts.map +1 -0
  358. package/script/deps/jsr.io/@std/path/1.1.3/dirname.js +31 -0
  359. package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts +22 -0
  360. package/script/deps/jsr.io/@std/path/1.1.3/extname.d.ts.map +1 -0
  361. package/script/deps/jsr.io/@std/path/1.1.3/extname.js +31 -0
  362. package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts +22 -0
  363. package/script/deps/jsr.io/@std/path/1.1.3/format.d.ts.map +1 -0
  364. package/script/deps/jsr.io/@std/path/1.1.3/format.js +30 -0
  365. package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts +22 -0
  366. package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.d.ts.map +1 -0
  367. package/script/deps/jsr.io/@std/path/1.1.3/from_file_url.js +31 -0
  368. package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts +77 -0
  369. package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.d.ts.map +1 -0
  370. package/script/deps/jsr.io/@std/path/1.1.3/glob_to_regexp.js +86 -0
  371. package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts +22 -0
  372. package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.d.ts.map +1 -0
  373. package/script/deps/jsr.io/@std/path/1.1.3/is_absolute.js +31 -0
  374. package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts +17 -0
  375. package/script/deps/jsr.io/@std/path/1.1.3/is_glob.d.ts.map +1 -0
  376. package/script/deps/jsr.io/@std/path/1.1.3/is_glob.js +45 -0
  377. package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts +23 -0
  378. package/script/deps/jsr.io/@std/path/1.1.3/join.d.ts.map +1 -0
  379. package/script/deps/jsr.io/@std/path/1.1.3/join.js +32 -0
  380. package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts +28 -0
  381. package/script/deps/jsr.io/@std/path/1.1.3/join_globs.d.ts.map +1 -0
  382. package/script/deps/jsr.io/@std/path/1.1.3/join_globs.js +37 -0
  383. package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts +213 -0
  384. package/script/deps/jsr.io/@std/path/1.1.3/mod.d.ts.map +1 -0
  385. package/script/deps/jsr.io/@std/path/1.1.3/mod.js +232 -0
  386. package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts +26 -0
  387. package/script/deps/jsr.io/@std/path/1.1.3/normalize.d.ts.map +1 -0
  388. package/script/deps/jsr.io/@std/path/1.1.3/normalize.js +35 -0
  389. package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts +29 -0
  390. package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.d.ts.map +1 -0
  391. package/script/deps/jsr.io/@std/path/1.1.3/normalize_glob.js +38 -0
  392. package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts +35 -0
  393. package/script/deps/jsr.io/@std/path/1.1.3/parse.d.ts.map +1 -0
  394. package/script/deps/jsr.io/@std/path/1.1.3/parse.js +42 -0
  395. package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts +2 -0
  396. package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.d.ts.map +1 -0
  397. package/script/deps/jsr.io/@std/path/1.1.3/posix/_util.js +11 -0
  398. package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts +39 -0
  399. package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.d.ts.map +1 -0
  400. package/script/deps/jsr.io/@std/path/1.1.3/posix/basename.js +55 -0
  401. package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts +13 -0
  402. package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.d.ts.map +1 -0
  403. package/script/deps/jsr.io/@std/path/1.1.3/posix/constants.js +17 -0
  404. package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts +30 -0
  405. package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.d.ts.map +1 -0
  406. package/script/deps/jsr.io/@std/path/1.1.3/posix/dirname.js +67 -0
  407. package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts +37 -0
  408. package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.d.ts.map +1 -0
  409. package/script/deps/jsr.io/@std/path/1.1.3/posix/extname.js +96 -0
  410. package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts +24 -0
  411. package/script/deps/jsr.io/@std/path/1.1.3/posix/format.d.ts.map +1 -0
  412. package/script/deps/jsr.io/@std/path/1.1.3/posix/format.js +31 -0
  413. package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts +16 -0
  414. package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.d.ts.map +1 -0
  415. package/script/deps/jsr.io/@std/path/1.1.3/posix/from_file_url.js +24 -0
  416. package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts +72 -0
  417. package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.d.ts.map +1 -0
  418. package/script/deps/jsr.io/@std/path/1.1.3/posix/glob_to_regexp.js +85 -0
  419. package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts +17 -0
  420. package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.d.ts.map +1 -0
  421. package/script/deps/jsr.io/@std/path/1.1.3/posix/is_absolute.js +26 -0
  422. package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts +31 -0
  423. package/script/deps/jsr.io/@std/path/1.1.3/posix/join.d.ts.map +1 -0
  424. package/script/deps/jsr.io/@std/path/1.1.3/posix/join.js +48 -0
  425. package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts +20 -0
  426. package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.d.ts.map +1 -0
  427. package/script/deps/jsr.io/@std/path/1.1.3/posix/join_globs.js +43 -0
  428. package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts +37 -0
  429. package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.d.ts.map +1 -0
  430. package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize.js +61 -0
  431. package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts +20 -0
  432. package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.d.ts.map +1 -0
  433. package/script/deps/jsr.io/@std/path/1.1.3/posix/normalize_glob.js +35 -0
  434. package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts +25 -0
  435. package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.d.ts.map +1 -0
  436. package/script/deps/jsr.io/@std/path/1.1.3/posix/parse.js +118 -0
  437. package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts +20 -0
  438. package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.d.ts.map +1 -0
  439. package/script/deps/jsr.io/@std/path/1.1.3/posix/relative.js +109 -0
  440. package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts +17 -0
  441. package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.d.ts.map +1 -0
  442. package/script/deps/jsr.io/@std/path/1.1.3/posix/resolve.js +95 -0
  443. package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts +17 -0
  444. package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.d.ts.map +1 -0
  445. package/script/deps/jsr.io/@std/path/1.1.3/posix/to_file_url.js +30 -0
  446. package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts +16 -0
  447. package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.d.ts.map +1 -0
  448. package/script/deps/jsr.io/@std/path/1.1.3/posix/to_namespaced_path.js +23 -0
  449. package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts +24 -0
  450. package/script/deps/jsr.io/@std/path/1.1.3/relative.d.ts.map +1 -0
  451. package/script/deps/jsr.io/@std/path/1.1.3/relative.js +33 -0
  452. package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts +22 -0
  453. package/script/deps/jsr.io/@std/path/1.1.3/resolve.d.ts.map +1 -0
  454. package/script/deps/jsr.io/@std/path/1.1.3/resolve.js +33 -0
  455. package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts +22 -0
  456. package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.d.ts.map +1 -0
  457. package/script/deps/jsr.io/@std/path/1.1.3/to_file_url.js +31 -0
  458. package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts +21 -0
  459. package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.d.ts.map +1 -0
  460. package/script/deps/jsr.io/@std/path/1.1.3/to_namespaced_path.js +32 -0
  461. package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts +38 -0
  462. package/script/deps/jsr.io/@std/path/1.1.3/types.d.ts.map +1 -0
  463. package/script/deps/jsr.io/@std/path/1.1.3/types.js +4 -0
  464. package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts +4 -0
  465. package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.d.ts.map +1 -0
  466. package/script/deps/jsr.io/@std/path/1.1.3/windows/_util.js +20 -0
  467. package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts +22 -0
  468. package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.d.ts.map +1 -0
  469. package/script/deps/jsr.io/@std/path/1.1.3/windows/basename.js +50 -0
  470. package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts +13 -0
  471. package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.d.ts.map +1 -0
  472. package/script/deps/jsr.io/@std/path/1.1.3/windows/constants.js +17 -0
  473. package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts +17 -0
  474. package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.d.ts.map +1 -0
  475. package/script/deps/jsr.io/@std/path/1.1.3/windows/dirname.js +116 -0
  476. package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts +17 -0
  477. package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.d.ts.map +1 -0
  478. package/script/deps/jsr.io/@std/path/1.1.3/windows/extname.js +85 -0
  479. package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts +24 -0
  480. package/script/deps/jsr.io/@std/path/1.1.3/windows/format.d.ts.map +1 -0
  481. package/script/deps/jsr.io/@std/path/1.1.3/windows/format.js +31 -0
  482. package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts +18 -0
  483. package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.d.ts.map +1 -0
  484. package/script/deps/jsr.io/@std/path/1.1.3/windows/from_file_url.js +33 -0
  485. package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts +71 -0
  486. package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.d.ts.map +1 -0
  487. package/script/deps/jsr.io/@std/path/1.1.3/windows/glob_to_regexp.js +85 -0
  488. package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts +17 -0
  489. package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.d.ts.map +1 -0
  490. package/script/deps/jsr.io/@std/path/1.1.3/windows/is_absolute.js +41 -0
  491. package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts +18 -0
  492. package/script/deps/jsr.io/@std/path/1.1.3/windows/join.d.ts.map +1 -0
  493. package/script/deps/jsr.io/@std/path/1.1.3/windows/join.js +80 -0
  494. package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts +21 -0
  495. package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.d.ts.map +1 -0
  496. package/script/deps/jsr.io/@std/path/1.1.3/windows/join_globs.js +44 -0
  497. package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts +19 -0
  498. package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.d.ts.map +1 -0
  499. package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize.js +138 -0
  500. package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts +20 -0
  501. package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.d.ts.map +1 -0
  502. package/script/deps/jsr.io/@std/path/1.1.3/windows/normalize_glob.js +35 -0
  503. package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts +25 -0
  504. package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.d.ts.map +1 -0
  505. package/script/deps/jsr.io/@std/path/1.1.3/windows/parse.js +179 -0
  506. package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts +23 -0
  507. package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.d.ts.map +1 -0
  508. package/script/deps/jsr.io/@std/path/1.1.3/windows/relative.js +134 -0
  509. package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts +17 -0
  510. package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.d.ts.map +1 -0
  511. package/script/deps/jsr.io/@std/path/1.1.3/windows/resolve.js +190 -0
  512. package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts +17 -0
  513. package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.d.ts.map +1 -0
  514. package/script/deps/jsr.io/@std/path/1.1.3/windows/to_file_url.js +37 -0
  515. package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts +17 -0
  516. package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.d.ts.map +1 -0
  517. package/script/deps/jsr.io/@std/path/1.1.3/windows/to_namespaced_path.js +52 -0
  518. package/script/get-config.d.ts +14 -0
  519. package/script/get-config.d.ts.map +1 -0
  520. package/script/get-config.js +78 -0
  521. package/script/main.d.ts +11 -0
  522. package/script/main.d.ts.map +1 -0
  523. package/script/main.js +275 -0
  524. package/script/manifest/index.d.ts +11 -0
  525. package/script/manifest/index.d.ts.map +1 -0
  526. package/script/manifest/index.js +68 -0
  527. package/script/mod.d.ts +4 -0
  528. package/script/mod.d.ts.map +1 -0
  529. package/script/mod.js +48 -0
  530. package/script/package.json +3 -0
  531. package/script/react-native-lib/ios/createGroup.d.ts +8 -0
  532. package/script/react-native-lib/ios/createGroup.d.ts.map +1 -0
  533. package/script/react-native-lib/ios/createGroup.js +32 -0
  534. package/script/react-native-lib/ios/createGroupWithMessage.d.ts +8 -0
  535. package/script/react-native-lib/ios/createGroupWithMessage.d.ts.map +1 -0
  536. package/script/react-native-lib/ios/createGroupWithMessage.js +28 -0
  537. package/script/react-native-lib/ios/getBuildProperty.d.ts +19 -0
  538. package/script/react-native-lib/ios/getBuildProperty.d.ts.map +1 -0
  539. package/script/react-native-lib/ios/getBuildProperty.js +26 -0
  540. package/script/react-native-lib/ios/getGroup.d.ts +10 -0
  541. package/script/react-native-lib/ios/getGroup.d.ts.map +1 -0
  542. package/script/react-native-lib/ios/getGroup.js +38 -0
  543. package/script/react-native-lib/ios/getPlist.d.ts +7 -0
  544. package/script/react-native-lib/ios/getPlist.d.ts.map +1 -0
  545. package/script/react-native-lib/ios/getPlist.js +67 -0
  546. package/script/react-native-lib/ios/getPlistPath.d.ts +2 -0
  547. package/script/react-native-lib/ios/getPlistPath.d.ts.map +1 -0
  548. package/script/react-native-lib/ios/getPlistPath.js +54 -0
  549. package/script/react-native-lib/ios/writePlist.d.ts +7 -0
  550. package/script/react-native-lib/ios/writePlist.d.ts.map +1 -0
  551. package/script/react-native-lib/ios/writePlist.js +63 -0
  552. package/.eslintignore +0 -1
  553. package/lib/clean-assets/android.js +0 -8
  554. package/lib/clean-assets/ios.js +0 -44
  555. package/lib/cli-args.js +0 -45
  556. package/lib/cli.js +0 -69
  557. package/lib/copy-assets/android.js +0 -8
  558. package/lib/copy-assets/ios.js +0 -44
  559. package/lib/get-config.js +0 -28
  560. package/lib/index.js +0 -289
  561. package/lib/manifest/index.js +0 -24
  562. package/lib/manifest/migartion/0.js +0 -20
  563. package/lib/manifest/migartion/1.js +0 -5
  564. package/lib/manifest/migartion/index.js +0 -7
  565. package/lib/react-native-lib/ios/createGroup.js +0 -34
  566. package/lib/react-native-lib/ios/createGroupWithMessage.js +0 -32
  567. package/lib/react-native-lib/ios/getGroup.js +0 -42
  568. package/lib/react-native-lib/ios/getPlist.js +0 -25
  569. package/lib/react-native-lib/ios/getPlistPath.js +0 -22
  570. package/lib/react-native-lib/ios/writePlist.js +0 -31
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Yuval Saraf
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,23 +1,31 @@
1
1
  # react-native-asset
2
- [![npm version](https://badge.fury.io/js/react-native-asset.svg)](https://badge.fury.io/js/react-native-asset)[![Build Status](https://travis-ci.org/unimonkiez/react-native-asset.svg?branch=master)](https://travis-ci.org/unimonkiez/react-native-asset)
2
+
3
+ [![npm version](https://badge.fury.io/js/react-native-asset.svg)](https://badge.fury.io/js/react-native-asset)
4
+ [![Build Status](https://travis-ci.org/unimonkiez/react-native-asset.svg?branch=master)](https://travis-ci.org/unimonkiez/react-native-asset)
3
5
 
4
6
  ## Link and unlink assets to your react-native project with ease!
5
7
 
6
8
  ## Advantages
7
- * `react-native link` only supports font files, this tool supports all assets.
8
- * Unlinking is automatic when you delete an asset, with `react-native link`, you need to unlink the files manually.
9
- * Proper link (and unlink) for `mp3` (to use with [`react-native-sound`](https://github.com/zmxv/react-native-sound#basic-usage)) and `ttf` files.
9
+
10
+ - `react-native link` only supports font files, this tool supports all assets.
11
+ - Unlinking is automatic when you delete an asset, with `react-native link`, you
12
+ need to unlink the files manually.
13
+ - Proper link (and unlink) for `mp3` (to use with
14
+ [`react-native-sound`](https://github.com/zmxv/react-native-sound#basic-usage))
15
+ and `ttf` files.
10
16
 
11
17
  ### [Check out this starter-kit to use your assets with even more simplicity.](https://github.com/unimonkiez/react-platformula-boilerplate)
12
18
 
13
19
  ## Usage
14
- * Install
20
+
21
+ - Install
15
22
  ```bash
16
23
  npm install -g react-native-asset
17
24
  # or yarn
18
25
  yarn global add react-native-asset
19
26
  ```
20
- * Add assets to your `react-native.config.js` as you would with `react-native link`
27
+ - Add assets to your `react-native.config.js` as you would with
28
+ `react-native link`
21
29
  ```js
22
30
  ...
23
31
  assets: [
@@ -25,7 +33,7 @@
25
33
  "./src/mp3",
26
34
  ];
27
35
  ```
28
- * Add platform-specific assets to your `react-native.config.js` like so:
36
+ - Add platform-specific assets to your `react-native.config.js` like so:
29
37
  ```js
30
38
  ...
31
39
  assets: [
@@ -39,20 +47,30 @@
39
47
  ],
40
48
  ```
41
49
 
42
- * Run the command and linking + unlinking is automatic!
50
+ - Run the command and linking + unlinking is automatic!
43
51
  ```bash
44
52
  react-native-asset
45
53
  ```
54
+
46
55
  ## Explanation
47
- With `react-native link` you have to unlink the files manually, which is hard work.
48
- Instead this library writes `link-assets-manifest.json` to the root of `android` and `ios` folders to keep track of the files which it added, for later removing it for you if missing from your `assets`!
56
+
57
+ With `react-native link` you have to unlink the files manually, which is hard
58
+ work.\
59
+ Instead this library writes `link-assets-manifest.json` to the root of `android`
60
+ and `ios` folders to keep track of the files which it added, for later removing
61
+ it for you if missing from your `assets`!
49
62
 
50
63
  ## Parameters
51
- * `-p, --path` - path to project, defaults to cwd.
52
- * `-a, --assets` - assets paths, for example `react-native-asset -a ./src/font ./src/mp3`.
53
- * `-ios-a, --ios-assets` - ios assets paths, will disable android linking
54
- * `-android-a, --android-assets` - android assets paths, will disable ios linking.
55
- * `-n-u, --no-unlink` - Not to unlink assets which not longer exists, not recommanded.
64
+
65
+ - `-p, --path` - path to project, defaults to cwd.
66
+ - `-a, --assets` - assets paths, for example
67
+ `react-native-asset -a ./src/font ./src/mp3`.
68
+ - `-ios-a, --ios-assets` - ios assets paths, will disable android linking
69
+ - `-android-a, --android-assets` - android assets paths, will disable ios
70
+ linking.
71
+ - `-n-u, --no-unlink` - Not to unlink assets which not longer exists, not
72
+ recommanded.
56
73
 
57
74
  ## Backward compatability
58
- * to use react-native 0.59 and below, use version 1.1.4
75
+
76
+ - to use react-native 0.59 and below, use version 1.1.4
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
+ * but instead of using npm to install additional dependencies,
4
+ * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
+ *
6
+ * Note that this code might be imported multiple times
7
+ * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
+ * or Node.js might dynamically clear the cache and then force a require).
9
+ * Therefore, it's important to avoid redundant writes to global objects.
10
+ * Additionally, consider that commonjs is used alongside esm,
11
+ * so the two ponyfill functions are stored independently in two separate global objects.
12
+ */
13
+ import { createRequire } from "node:module";
14
+ import { type URL } from "node:url";
15
+ declare global {
16
+ interface ImportMeta {
17
+ /** A string representation of the fully qualified module URL. When the
18
+ * module is loaded locally, the value will be a file URL (e.g.
19
+ * `file:///path/module.ts`).
20
+ *
21
+ * You can also parse the string as a URL to determine more information about
22
+ * how the current module was loaded. For example to determine if a module was
23
+ * local or not:
24
+ *
25
+ * ```ts
26
+ * const url = new URL(import.meta.url);
27
+ * if (url.protocol === "file:") {
28
+ * console.log("this module was loaded locally");
29
+ * }
30
+ * ```
31
+ */
32
+ url: string;
33
+ /**
34
+ * A function that returns resolved specifier as if it would be imported
35
+ * using `import(specifier)`.
36
+ *
37
+ * ```ts
38
+ * console.log(import.meta.resolve("./foo.js"));
39
+ * // file:///dev/foo.js
40
+ * ```
41
+ *
42
+ * @param specifier The module specifier to resolve relative to `parent`.
43
+ * @param parent The absolute parent module URL to resolve from.
44
+ * @returns The absolute (`file:`) URL string for the resolved module.
45
+ */
46
+ resolve(specifier: string, parent?: string | URL | undefined): string;
47
+ /** A flag that indicates if the current module is the main module that was
48
+ * called when starting the program under Deno.
49
+ *
50
+ * ```ts
51
+ * if (import.meta.main) {
52
+ * // this was loaded as the main module, maybe do some bootstrapping
53
+ * }
54
+ * ```
55
+ */
56
+ main: boolean;
57
+ /** The absolute path of the current module.
58
+ *
59
+ * This property is only provided for local modules (ie. using `file://` URLs).
60
+ *
61
+ * Example:
62
+ * ```
63
+ * // Unix
64
+ * console.log(import.meta.filename); // /home/alice/my_module.ts
65
+ *
66
+ * // Windows
67
+ * console.log(import.meta.filename); // C:\alice\my_module.ts
68
+ * ```
69
+ */
70
+ filename: string;
71
+ /** The absolute path of the directory containing the current module.
72
+ *
73
+ * This property is only provided for local modules (ie. using `file://` URLs).
74
+ *
75
+ * * Example:
76
+ * ```
77
+ * // Unix
78
+ * console.log(import.meta.dirname); // /home/alice
79
+ *
80
+ * // Windows
81
+ * console.log(import.meta.dirname); // C:\alice
82
+ * ```
83
+ */
84
+ dirname: string;
85
+ }
86
+ }
87
+ type NodeRequest = ReturnType<typeof createRequire>;
88
+ type NodeModule = NonNullable<NodeRequest["main"]>;
89
+ interface ImportMetaPonyfillCommonjs {
90
+ (require: NodeRequest, module: NodeModule): ImportMeta;
91
+ }
92
+ interface ImportMetaPonyfillEsmodule {
93
+ (importMeta: ImportMeta): ImportMeta;
94
+ }
95
+ interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyfillEsmodule {
96
+ }
97
+ export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
98
+ export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
99
+ export declare let import_meta_ponyfill: ImportMetaPonyfill;
100
+ declare global {
101
+ interface Object {
102
+ /**
103
+ * Determines whether an object has a property with the specified name.
104
+ * @param o An object.
105
+ * @param v A property name.
106
+ */
107
+ hasOwn(o: object, v: PropertyKey): boolean;
108
+ }
109
+ }
110
+ export {};
111
+ //# sourceMappingURL=_dnt.polyfills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAgC,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;;;;;;;WAcG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;;;;;;;;WAYG;QACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,GAAG,MAAM,CAAC;QACtE;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;;;;;;WAYG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;;;;;WAYG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,KAAK,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AACnD,UAAU,0BAA0B;IAClC,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACxD;AACD,UAAU,0BAA0B;IAClC,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;CACtC;AACD,UAAU,kBACR,SAAQ,0BAA0B,EAAE,0BAA0B;CAC/D;AAiBD,eAAO,IAAI,6BAA6B,EA2BnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,6BAA6B,EA4DnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,oBAAoB,EAoB1B,kBAAkB,CAAC;AAgBxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC"}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Based on [import-meta-ponyfill](https://github.com/gaubee/import-meta-ponyfill),
3
+ * but instead of using npm to install additional dependencies,
4
+ * this approach manually consolidates cjs/mjs/d.ts into a single file.
5
+ *
6
+ * Note that this code might be imported multiple times
7
+ * (for example, both dnt.test.polyfills.ts and dnt.polyfills.ts contain this code;
8
+ * or Node.js might dynamically clear the cache and then force a require).
9
+ * Therefore, it's important to avoid redundant writes to global objects.
10
+ * Additionally, consider that commonjs is used alongside esm,
11
+ * so the two ponyfill functions are stored independently in two separate global objects.
12
+ */
13
+ //@ts-ignore
14
+ import { createRequire } from "node:module";
15
+ //@ts-ignore
16
+ import { fileURLToPath, pathToFileURL } from "node:url";
17
+ //@ts-ignore
18
+ import { dirname } from "node:path";
19
+ const defineGlobalPonyfill = (symbolFor, fn) => {
20
+ if (!Reflect.has(globalThis, Symbol.for(symbolFor))) {
21
+ Object.defineProperty(globalThis, Symbol.for(symbolFor), {
22
+ configurable: true,
23
+ get() {
24
+ return fn;
25
+ },
26
+ });
27
+ }
28
+ };
29
+ export let import_meta_ponyfill_commonjs = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-commonjs")) ??
30
+ (() => {
31
+ const moduleImportMetaWM = new WeakMap();
32
+ return (require, module) => {
33
+ let importMetaCache = moduleImportMetaWM.get(module);
34
+ if (importMetaCache == null) {
35
+ const importMeta = Object.assign(Object.create(null), {
36
+ url: pathToFileURL(module.filename).href,
37
+ main: require.main == module,
38
+ resolve: (specifier, parentURL = importMeta.url) => {
39
+ return pathToFileURL((importMeta.url === parentURL
40
+ ? require
41
+ : createRequire(parentURL))
42
+ .resolve(specifier)).href;
43
+ },
44
+ filename: module.filename,
45
+ dirname: module.path,
46
+ });
47
+ moduleImportMetaWM.set(module, importMeta);
48
+ importMetaCache = importMeta;
49
+ }
50
+ return importMetaCache;
51
+ };
52
+ })());
53
+ defineGlobalPonyfill("import-meta-ponyfill-commonjs", import_meta_ponyfill_commonjs);
54
+ export let import_meta_ponyfill_esmodule = (Reflect.get(globalThis, Symbol.for("import-meta-ponyfill-esmodule")) ??
55
+ ((importMeta) => {
56
+ const resolveFunStr = String(importMeta.resolve);
57
+ const shimWs = new WeakSet();
58
+ //@ts-ignore
59
+ const mainUrl = ("file:///" + process.argv[1].replace(/\\/g, "/"))
60
+ .replace(/\/{3,}/, "///");
61
+ const commonShim = (importMeta) => {
62
+ if (typeof importMeta.main !== "boolean") {
63
+ importMeta.main = importMeta.url === mainUrl;
64
+ }
65
+ if (typeof importMeta.filename !== "string") {
66
+ importMeta.filename = fileURLToPath(importMeta.url);
67
+ importMeta.dirname = dirname(importMeta.filename);
68
+ }
69
+ };
70
+ if (
71
+ // v16.2.0+, v14.18.0+: Add support for WHATWG URL object to parentURL parameter.
72
+ resolveFunStr === "undefined" ||
73
+ // v20.0.0+, v18.19.0+"" This API now returns a string synchronously instead of a Promise.
74
+ resolveFunStr.startsWith("async")
75
+ // enable by --experimental-import-meta-resolve flag
76
+ ) {
77
+ import_meta_ponyfill_esmodule = (importMeta) => {
78
+ if (!shimWs.has(importMeta)) {
79
+ shimWs.add(importMeta);
80
+ const importMetaUrlRequire = {
81
+ url: importMeta.url,
82
+ require: createRequire(importMeta.url),
83
+ };
84
+ importMeta.resolve = function resolve(specifier, parentURL = importMeta.url) {
85
+ return pathToFileURL((importMetaUrlRequire.url === parentURL
86
+ ? importMetaUrlRequire.require
87
+ : createRequire(parentURL)).resolve(specifier)).href;
88
+ };
89
+ commonShim(importMeta);
90
+ }
91
+ return importMeta;
92
+ };
93
+ }
94
+ else {
95
+ /// native support
96
+ import_meta_ponyfill_esmodule = (importMeta) => {
97
+ if (!shimWs.has(importMeta)) {
98
+ shimWs.add(importMeta);
99
+ commonShim(importMeta);
100
+ }
101
+ return importMeta;
102
+ };
103
+ }
104
+ return import_meta_ponyfill_esmodule(importMeta);
105
+ }));
106
+ defineGlobalPonyfill("import-meta-ponyfill-esmodule", import_meta_ponyfill_esmodule);
107
+ export let import_meta_ponyfill = ((...args) => {
108
+ const _MODULE = (() => {
109
+ if (typeof require === "function" && typeof module === "object") {
110
+ return "commonjs";
111
+ }
112
+ else {
113
+ // eval("typeof import.meta");
114
+ return "esmodule";
115
+ }
116
+ })();
117
+ if (_MODULE === "commonjs") {
118
+ //@ts-ignore
119
+ import_meta_ponyfill = (r, m) => import_meta_ponyfill_commonjs(r, m);
120
+ }
121
+ else {
122
+ //@ts-ignore
123
+ import_meta_ponyfill = (im) => import_meta_ponyfill_esmodule(im);
124
+ }
125
+ //@ts-ignore
126
+ return import_meta_ponyfill(...args);
127
+ });
128
+ // https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
129
+ if (!Object.hasOwn) {
130
+ Object.defineProperty(Object, "hasOwn", {
131
+ value: function (object, property) {
132
+ if (object == null) {
133
+ throw new TypeError("Cannot convert undefined or null to object");
134
+ }
135
+ return Object.prototype.hasOwnProperty.call(Object(object), property);
136
+ },
137
+ configurable: true,
138
+ enumerable: false,
139
+ writable: true,
140
+ });
141
+ }
@@ -0,0 +1,6 @@
1
+ import { Deno } from "@deno/shim-deno";
2
+ export { Deno } from "@deno/shim-deno";
3
+ export declare const dntGlobalThis: Omit<typeof globalThis, "Deno"> & {
4
+ Deno: typeof Deno;
5
+ };
6
+ //# sourceMappingURL=_dnt.shims.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAKvC,eAAO,MAAM,aAAa;;CAA2C,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { Deno } from "@deno/shim-deno";
2
+ export { Deno } from "@deno/shim-deno";
3
+ const dntGlobals = {
4
+ Deno,
5
+ };
6
+ export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
7
+ function createMergeProxy(baseObj, extObj) {
8
+ return new Proxy(baseObj, {
9
+ get(_target, prop, _receiver) {
10
+ if (prop in extObj) {
11
+ return extObj[prop];
12
+ }
13
+ else {
14
+ return baseObj[prop];
15
+ }
16
+ },
17
+ set(_target, prop, value) {
18
+ if (prop in extObj) {
19
+ delete extObj[prop];
20
+ }
21
+ baseObj[prop] = value;
22
+ return true;
23
+ },
24
+ deleteProperty(_target, prop) {
25
+ let success = false;
26
+ if (prop in extObj) {
27
+ delete extObj[prop];
28
+ success = true;
29
+ }
30
+ if (prop in baseObj) {
31
+ delete baseObj[prop];
32
+ success = true;
33
+ }
34
+ return success;
35
+ },
36
+ ownKeys(_target) {
37
+ const baseKeys = Reflect.ownKeys(baseObj);
38
+ const extKeys = Reflect.ownKeys(extObj);
39
+ const extKeysSet = new Set(extKeys);
40
+ return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
41
+ },
42
+ defineProperty(_target, prop, desc) {
43
+ if (prop in extObj) {
44
+ delete extObj[prop];
45
+ }
46
+ Reflect.defineProperty(baseObj, prop, desc);
47
+ return true;
48
+ },
49
+ getOwnPropertyDescriptor(_target, prop) {
50
+ if (prop in extObj) {
51
+ return Reflect.getOwnPropertyDescriptor(extObj, prop);
52
+ }
53
+ else {
54
+ return Reflect.getOwnPropertyDescriptor(baseObj, prop);
55
+ }
56
+ },
57
+ has(_target, prop) {
58
+ return prop in extObj || prop in baseObj;
59
+ },
60
+ });
61
+ }
@@ -0,0 +1,6 @@
1
+ export default function cleanAssetsAndroid(filePaths: string[], platformConfig: {
2
+ path?: string;
3
+ }, _options: {
4
+ path: string;
5
+ }): Promise<void>;
6
+ //# sourceMappingURL=android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../src/clean-assets/android.ts"],"names":[],"mappings":"AAGA,wBAA8B,kBAAkB,CAC9C,SAAS,EAAE,MAAM,EAAE,EACnB,cAAc,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EACjC,QAAQ,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,iBAoB3B"}
@@ -0,0 +1,24 @@
1
+ import * as dntShim from "../_dnt.shims.js";
2
+ import * as path from "../deps/jsr.io/@std/path/1.1.3/mod.js";
3
+ export default async function cleanAssetsAndroid(filePaths, platformConfig, _options) {
4
+ for (const p of filePaths) {
5
+ try {
6
+ // If absolute path was provided, remove directly, otherwise resolve relative to platform root
7
+ const target = path.isAbsolute(p)
8
+ ? p
9
+ : (platformConfig?.path ? path.resolve(platformConfig.path, p) : p);
10
+ try {
11
+ const st = dntShim.Deno.lstatSync(target);
12
+ if (st.isFile) {
13
+ await dntShim.Deno.remove(target);
14
+ }
15
+ }
16
+ catch (_e) {
17
+ // ignore missing files
18
+ }
19
+ }
20
+ catch (e) {
21
+ console.error("Failed cleaning android asset", p, e);
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,7 @@
1
+ export default function cleanAssetsIos(filePaths: string[], platformConfig: {
2
+ path: string;
3
+ pbxprojPath: string;
4
+ }, options: {
5
+ addFont: boolean;
6
+ }): Promise<void>;
7
+ //# sourceMappingURL=ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../src/clean-assets/ios.ts"],"names":[],"mappings":"AAOA,wBAA8B,cAAc,CAC1C,SAAS,EAAE,MAAM,EAAE,EACnB,cAAc,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EACrD,OAAO,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,iBAgC9B"}
@@ -0,0 +1,22 @@
1
+ import * as dntShim from "../_dnt.shims.js";
2
+ import * as path from "../deps/jsr.io/@std/path/1.1.3/mod.js";
3
+ import * as xcode from "xcode";
4
+ import createGroupWithMessage from "../react-native-lib/ios/createGroupWithMessage.js";
5
+ import getPlist from "../react-native-lib/ios/getPlist.js";
6
+ import writePlist from "../react-native-lib/ios/writePlist.js";
7
+ export default async function cleanAssetsIos(filePaths, platformConfig, options) {
8
+ const project = xcode.project(platformConfig.pbxprojPath).parseSync();
9
+ const plist = await getPlist(project, platformConfig
10
+ .path);
11
+ createGroupWithMessage(project, "Resources");
12
+ const removedFiles = filePaths.map((p) => {
13
+ return project.removeResourceFile(path.relative(platformConfig.path, p), { target: project.getFirstTarget().uuid });
14
+ }).filter((x) => x).map((file) => file.basename);
15
+ if (options.addFont) {
16
+ const existingFonts = plist.UIAppFonts || [];
17
+ const allFonts = existingFonts.filter((file) => removedFiles.indexOf(file) === -1);
18
+ plist.UIAppFonts = Array.from(new Set(allFonts)); // use Set to dedupe w/existing
19
+ }
20
+ await dntShim.Deno.writeFile(platformConfig.pbxprojPath, project.writeSync());
21
+ writePlist(project, platformConfig.path, plist);
22
+ }
package/esm/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const runCli: () => Promise<void>;
2
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,qBAoElB,CAAC"}
package/esm/cli.js ADDED
@@ -0,0 +1,68 @@
1
+ import * as dntShim from "./_dnt.shims.js";
2
+ import * as path from "./deps/jsr.io/@std/path/1.1.3/mod.js";
3
+ import { parseArgs } from "./deps/jsr.io/@std/cli/1.0.24/parse_args.js";
4
+ import { linkAssets } from "./main.js";
5
+ export const runCli = async () => {
6
+ const args = await parseArgs(dntShim.Deno.args, {
7
+ alias: {
8
+ a: "assets",
9
+ "ios-a": "ios-assets",
10
+ "android-a": "android-assets",
11
+ p: "path",
12
+ "n-u": "no-unlink",
13
+ },
14
+ collect: ["assets", "ios-assets", "android-assets"],
15
+ string: ["assets", "ios-assets", "android-assets", "path"],
16
+ boolean: ["no-unlink"],
17
+ default: {
18
+ path: dntShim.Deno.cwd(),
19
+ noUnlink: false,
20
+ },
21
+ });
22
+ const reactNativeConfigPath = path.join(args.path, `react-native-config.js`);
23
+ let reactNativeConfigExists = false;
24
+ try {
25
+ const _ = await dntShim.Deno.lstat(reactNativeConfigPath);
26
+ reactNativeConfigExists = true;
27
+ }
28
+ catch (err) {
29
+ if (!(err instanceof dntShim.Deno.errors.NotFound)) {
30
+ throw err;
31
+ }
32
+ }
33
+ const reactNativeConfig = reactNativeConfigExists
34
+ ? (await import(path.join(args.path, `react-native-config.js`)))
35
+ : {};
36
+ const merged = {
37
+ assets: args.assets.length !== 0
38
+ ? args.assets
39
+ : (reactNativeConfig.assets ?? undefined),
40
+ iosAssets: args["ios-assets"].length !== 0
41
+ ? args["ios-assets"]
42
+ : (reactNativeConfig.iosAssets ?? undefined),
43
+ androidAssets: args["android-assets"].length !== 0
44
+ ? args["android-assets"]
45
+ : (reactNativeConfig.androidAssets ?? undefined),
46
+ };
47
+ await linkAssets({
48
+ rootPath: args.path,
49
+ shouldUnlink: !args.noUnlink,
50
+ platforms: {
51
+ ios: {
52
+ enabled: merged.assets !== undefined || merged.iosAssets !== undefined,
53
+ assets: [
54
+ ...(merged.iosAssets ?? []),
55
+ ...(merged.assets ?? []),
56
+ ],
57
+ },
58
+ android: {
59
+ enabled: merged.assets !== undefined ||
60
+ merged.androidAssets !== undefined,
61
+ assets: [
62
+ ...(merged.androidAssets ?? []),
63
+ ...(merged.assets ?? []),
64
+ ],
65
+ },
66
+ },
67
+ });
68
+ };
@@ -0,0 +1,6 @@
1
+ export default function copyAssetsAndroid(assetPaths: string[], platformConfig: {
2
+ path?: string;
3
+ }, options: {
4
+ path: string;
5
+ }): Promise<void>;
6
+ //# sourceMappingURL=android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../src/copy-assets/android.ts"],"names":[],"mappings":"AAGA,wBAA8B,iBAAiB,CAC7C,UAAU,EAAE,MAAM,EAAE,EACpB,cAAc,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EACjC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,iBA+B1B"}
@@ -0,0 +1,31 @@
1
+ import * as dntShim from "../_dnt.shims.js";
2
+ import * as path from "../deps/jsr.io/@std/path/1.1.3/mod.js";
3
+ export default async function copyAssetsAndroid(assetPaths, platformConfig, options) {
4
+ const destBase = options?.path ??
5
+ (platformConfig?.path
6
+ ? path.resolve(platformConfig.path, "assets")
7
+ : undefined);
8
+ if (!destBase) {
9
+ console.info("No destination configured for android assets — skipping copy");
10
+ return;
11
+ }
12
+ try {
13
+ try {
14
+ await dntShim.Deno.lstat(destBase);
15
+ }
16
+ catch (_e) {
17
+ await dntShim.Deno.mkdir(destBase, { recursive: true });
18
+ }
19
+ Promise.all(assetPaths.map(async (asset) => {
20
+ const dir = path.dirname(asset);
21
+ await dntShim.Deno.mkdir(dir, { recursive: true });
22
+ const base = path.basename(asset);
23
+ const dest = path.resolve(destBase, base);
24
+ await dntShim.Deno.copyFile(asset, dest);
25
+ }));
26
+ }
27
+ catch (e) {
28
+ console.error("Failed copying android assets:", e);
29
+ throw e;
30
+ }
31
+ }
@@ -0,0 +1,7 @@
1
+ export default function cleanAssetsIos(filePaths: string[], platformConfig: {
2
+ path: string;
3
+ pbxprojPath: string;
4
+ }, options: {
5
+ addFont: boolean;
6
+ }): Promise<void>;
7
+ //# sourceMappingURL=ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../src/copy-assets/ios.ts"],"names":[],"mappings":"AAQA,wBAA8B,cAAc,CAC1C,SAAS,EAAE,MAAM,EAAE,EACnB,cAAc,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EACrD,OAAO,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,iBAwC9B"}