one 1.1.298 → 1.1.300

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/dist/cjs/cleanUrl.js +1 -1
  2. package/dist/cjs/cleanUrl.js.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +1 -1
  4. package/dist/cjs/cleanUrl.native.js.map +1 -1
  5. package/dist/cjs/cli/runAndroid.js +34 -0
  6. package/dist/cjs/cli/runAndroid.js.map +6 -0
  7. package/dist/cjs/cli/runAndroid.native.js +39 -0
  8. package/dist/cjs/cli/runAndroid.native.js.map +6 -0
  9. package/dist/cjs/cli/runIos.js +34 -0
  10. package/dist/cjs/cli/runIos.js.map +6 -0
  11. package/dist/cjs/cli/runIos.native.js +39 -0
  12. package/dist/cjs/cli/runIos.native.js.map +6 -0
  13. package/dist/cjs/cli.js +23 -1
  14. package/dist/cjs/cli.js.map +1 -1
  15. package/dist/cjs/cli.native.js +25 -1
  16. package/dist/cjs/cli.native.js.map +2 -2
  17. package/dist/cjs/createHandleRequest.js +2 -2
  18. package/dist/cjs/createHandleRequest.js.map +1 -1
  19. package/dist/cjs/createHandleRequest.native.js +2 -2
  20. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  21. package/dist/cjs/vite/createFileSystemRouter.js +1 -1
  22. package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
  23. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  24. package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
  25. package/dist/cjs/vite/replaceLoader.js +7 -1
  26. package/dist/cjs/vite/replaceLoader.js.map +1 -1
  27. package/dist/cjs/vite/replaceLoader.native.js +7 -1
  28. package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
  29. package/dist/esm/Root.native.js +110 -104
  30. package/dist/esm/Root.native.js.map +6 -1
  31. package/dist/esm/Route.native.js +12 -10
  32. package/dist/esm/Route.native.js.map +6 -1
  33. package/dist/esm/cleanUrl.js +1 -1
  34. package/dist/esm/cleanUrl.js.map +1 -1
  35. package/dist/esm/cleanUrl.mjs +1 -1
  36. package/dist/esm/cleanUrl.mjs.map +1 -1
  37. package/dist/esm/cleanUrl.native.js +13 -14
  38. package/dist/esm/cleanUrl.native.js.map +6 -1
  39. package/dist/esm/cli/label-process.native.js +5 -4
  40. package/dist/esm/cli/label-process.native.js.map +6 -1
  41. package/dist/esm/cli/main.native.js +8 -13
  42. package/dist/esm/cli/main.native.js.map +6 -1
  43. package/dist/esm/cli/prebuild.native.js +5 -5
  44. package/dist/esm/cli/prebuild.native.js.map +6 -1
  45. package/dist/esm/cli/run.native.js +21 -28
  46. package/dist/esm/cli/run.native.js.map +6 -1
  47. package/dist/esm/cli/runAndroid.js +10 -0
  48. package/dist/esm/cli/runAndroid.js.map +6 -0
  49. package/dist/esm/cli/runAndroid.mjs +10 -0
  50. package/dist/esm/cli/runAndroid.mjs.map +1 -0
  51. package/dist/esm/cli/runAndroid.native.js +10 -0
  52. package/dist/esm/cli/runAndroid.native.js.map +6 -0
  53. package/dist/esm/cli/runIos.js +10 -0
  54. package/dist/esm/cli/runIos.js.map +6 -0
  55. package/dist/esm/cli/runIos.mjs +10 -0
  56. package/dist/esm/cli/runIos.mjs.map +1 -0
  57. package/dist/esm/cli/runIos.native.js +10 -0
  58. package/dist/esm/cli/runIos.native.js.map +6 -0
  59. package/dist/esm/cli.js +23 -1
  60. package/dist/esm/cli.js.map +1 -1
  61. package/dist/esm/cli.mjs +33 -1
  62. package/dist/esm/cli.mjs.map +1 -1
  63. package/dist/esm/cli.native.js +143 -148
  64. package/dist/esm/cli.native.js.map +6 -1
  65. package/dist/esm/clientLoaderResolver.native.js +9 -6
  66. package/dist/esm/clientLoaderResolver.native.js.map +6 -1
  67. package/dist/esm/config.native.js +12 -11
  68. package/dist/esm/config.native.js.map +6 -1
  69. package/dist/esm/constants.native.js +7 -5
  70. package/dist/esm/constants.native.js.map +6 -1
  71. package/dist/esm/createApp.native.js +13 -9
  72. package/dist/esm/createApp.native.js.map +6 -1
  73. package/dist/esm/createHandleRequest.js +2 -2
  74. package/dist/esm/createHandleRequest.js.map +1 -1
  75. package/dist/esm/createHandleRequest.mjs +2 -2
  76. package/dist/esm/createHandleRequest.mjs.map +1 -1
  77. package/dist/esm/createHandleRequest.native.js +57 -66
  78. package/dist/esm/createHandleRequest.native.js.map +6 -1
  79. package/dist/esm/createRoute.native.js +16 -16
  80. package/dist/esm/createRoute.native.js.map +6 -1
  81. package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
  82. package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
  83. package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
  84. package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
  85. package/dist/esm/fork/NavigationContainer.native.js +24 -31
  86. package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
  87. package/dist/esm/fork/createMemoryHistory.native.js +99 -115
  88. package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
  89. package/dist/esm/fork/extractPathFromURL.native.js +16 -15
  90. package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
  91. package/dist/esm/fork/findFocusedRoute.native.js +6 -5
  92. package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
  93. package/dist/esm/fork/getPathFromState.native.js +127 -140
  94. package/dist/esm/fork/getPathFromState.native.js.map +6 -1
  95. package/dist/esm/fork/getStateFromPath.native.js +292 -288
  96. package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
  97. package/dist/esm/fork/useLinking.native.js +70 -61
  98. package/dist/esm/fork/useLinking.native.js.map +6 -1
  99. package/dist/esm/fork/validatePathConfig.native.js +15 -9
  100. package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
  101. package/dist/esm/getLinkingConfig.native.js +11 -6
  102. package/dist/esm/getLinkingConfig.native.js.map +6 -1
  103. package/dist/esm/getReactNavigationConfig.native.js +28 -20
  104. package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
  105. package/dist/esm/getRoutes.native.js +249 -229
  106. package/dist/esm/getRoutes.native.js.map +6 -1
  107. package/dist/esm/getURL.native.js +4 -4
  108. package/dist/esm/getURL.native.js.map +6 -1
  109. package/dist/esm/head/Head.android.js +5 -3
  110. package/dist/esm/head/Head.android.js.map +6 -1
  111. package/dist/esm/head/Head.ios.js +144 -132
  112. package/dist/esm/head/Head.ios.js.map +6 -1
  113. package/dist/esm/head/Head.native.js +7 -7
  114. package/dist/esm/head/Head.native.js.map +6 -1
  115. package/dist/esm/head/HeadModule.native.js +6 -6
  116. package/dist/esm/head/HeadModule.native.js.map +6 -1
  117. package/dist/esm/head/index.native.js +2 -2
  118. package/dist/esm/head/index.native.js.map +6 -1
  119. package/dist/esm/head/types.native.js +1 -2
  120. package/dist/esm/head/types.native.js.map +6 -1
  121. package/dist/esm/head/url.native.js +10 -8
  122. package/dist/esm/head/url.native.js.map +6 -1
  123. package/dist/esm/hooks.native.js +53 -34
  124. package/dist/esm/hooks.native.js.map +6 -1
  125. package/dist/esm/imperative-api.native.js +9 -6
  126. package/dist/esm/imperative-api.native.js.map +6 -1
  127. package/dist/esm/import-mode/index.android.js +4 -3
  128. package/dist/esm/import-mode/index.android.js.map +6 -1
  129. package/dist/esm/import-mode/index.ios.js +4 -3
  130. package/dist/esm/import-mode/index.ios.js.map +6 -1
  131. package/dist/esm/import-mode/index.native.js +3 -1
  132. package/dist/esm/import-mode/index.native.js.map +6 -1
  133. package/dist/esm/index.native.js +65 -27
  134. package/dist/esm/index.native.js.map +6 -1
  135. package/dist/esm/interfaces/router.native.js +4 -2
  136. package/dist/esm/interfaces/router.native.js.map +6 -1
  137. package/dist/esm/layouts/Drawer.native.js +7 -6
  138. package/dist/esm/layouts/Drawer.native.js.map +6 -1
  139. package/dist/esm/layouts/Stack.native.js +7 -6
  140. package/dist/esm/layouts/Stack.native.js.map +6 -1
  141. package/dist/esm/layouts/Tabs.native.js +42 -39
  142. package/dist/esm/layouts/Tabs.native.js.map +6 -1
  143. package/dist/esm/layouts/withLayoutContext.native.js +51 -48
  144. package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
  145. package/dist/esm/link/Link.native.js +62 -53
  146. package/dist/esm/link/Link.native.js.map +6 -1
  147. package/dist/esm/link/Redirect.native.js +8 -9
  148. package/dist/esm/link/Redirect.native.js.map +6 -1
  149. package/dist/esm/link/href.native.js +28 -27
  150. package/dist/esm/link/href.native.js.map +6 -1
  151. package/dist/esm/link/linking.native.js +51 -40
  152. package/dist/esm/link/linking.native.js.map +6 -1
  153. package/dist/esm/link/path.native.js +28 -19
  154. package/dist/esm/link/path.native.js.map +6 -1
  155. package/dist/esm/link/useLinkTo.native.js +22 -20
  156. package/dist/esm/link/useLinkTo.native.js.map +6 -1
  157. package/dist/esm/link/useLoadedNavigation.native.js +30 -23
  158. package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
  159. package/dist/esm/matchers.native.js +16 -3
  160. package/dist/esm/matchers.native.js.map +6 -1
  161. package/dist/esm/platform.native.js +4 -2
  162. package/dist/esm/platform.native.js.map +6 -1
  163. package/dist/esm/polyfills-mobile.native.js +4 -5
  164. package/dist/esm/polyfills-mobile.native.js.map +6 -1
  165. package/dist/esm/polyfills-server.native.js +1 -1
  166. package/dist/esm/polyfills-server.native.js.map +6 -1
  167. package/dist/esm/render.native.js +3 -1
  168. package/dist/esm/render.native.js.map +6 -1
  169. package/dist/esm/router/RouterStore.native.js +1 -2
  170. package/dist/esm/router/RouterStore.native.js.map +6 -1
  171. package/dist/esm/router/constants.native.js +4 -2
  172. package/dist/esm/router/constants.native.js.map +6 -1
  173. package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
  174. package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
  175. package/dist/esm/router/lastAction.native.js +10 -9
  176. package/dist/esm/router/lastAction.native.js.map +6 -1
  177. package/dist/esm/router/router.native.js +135 -114
  178. package/dist/esm/router/router.native.js.map +6 -1
  179. package/dist/esm/router/serverLocationContext.native.js +4 -2
  180. package/dist/esm/router/serverLocationContext.native.js.map +6 -1
  181. package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
  182. package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
  183. package/dist/esm/serve.native.js +77 -104
  184. package/dist/esm/serve.native.js.map +6 -1
  185. package/dist/esm/server/createRoutesManifest.native.js +14 -11
  186. package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
  187. package/dist/esm/server/getServerManifest.native.js +61 -67
  188. package/dist/esm/server/getServerManifest.native.js.map +6 -1
  189. package/dist/esm/server-render.native.js +9 -10
  190. package/dist/esm/server-render.native.js.map +6 -1
  191. package/dist/esm/sortRoutes.native.js +27 -17
  192. package/dist/esm/sortRoutes.native.js.map +6 -1
  193. package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
  194. package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
  195. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
  196. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
  197. package/dist/esm/types.native.js +1 -2
  198. package/dist/esm/types.native.js.map +6 -1
  199. package/dist/esm/useFocusEffect.native.js +25 -22
  200. package/dist/esm/useFocusEffect.native.js.map +6 -1
  201. package/dist/esm/useLoader.native.js +50 -50
  202. package/dist/esm/useLoader.native.js.map +6 -1
  203. package/dist/esm/useNavigation.native.js +23 -19
  204. package/dist/esm/useNavigation.native.js.map +6 -1
  205. package/dist/esm/useScreens.native.js +143 -160
  206. package/dist/esm/useScreens.native.js.map +6 -1
  207. package/dist/esm/useViteRoutes.native.js +25 -28
  208. package/dist/esm/useViteRoutes.native.js.map +6 -1
  209. package/dist/esm/utils/assertIsReady.native.js +6 -3
  210. package/dist/esm/utils/assertIsReady.native.js.map +6 -1
  211. package/dist/esm/utils/dynamicImport.native.js +5 -3
  212. package/dist/esm/utils/dynamicImport.native.js.map +6 -1
  213. package/dist/esm/utils/existsAsync.native.js +6 -4
  214. package/dist/esm/utils/existsAsync.native.js.map +6 -1
  215. package/dist/esm/utils/getPageExport.native.js +12 -11
  216. package/dist/esm/utils/getPageExport.native.js.map +6 -1
  217. package/dist/esm/utils/globDir.native.js +5 -3
  218. package/dist/esm/utils/globDir.native.js.map +6 -1
  219. package/dist/esm/utils/hashString.native.js +4 -2
  220. package/dist/esm/utils/hashString.native.js.map +6 -1
  221. package/dist/esm/utils/isResponse.native.js +4 -2
  222. package/dist/esm/utils/isResponse.native.js.map +6 -1
  223. package/dist/esm/utils/isStatus.native.js +4 -2
  224. package/dist/esm/utils/isStatus.native.js.map +6 -1
  225. package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
  226. package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
  227. package/dist/esm/utils/rand.native.js +5 -3
  228. package/dist/esm/utils/rand.native.js.map +6 -1
  229. package/dist/esm/utils/redirect.native.js +7 -5
  230. package/dist/esm/utils/redirect.native.js.map +6 -1
  231. package/dist/esm/utils/removeSearch.native.js +4 -2
  232. package/dist/esm/utils/removeSearch.native.js.map +6 -1
  233. package/dist/esm/utils/removeUndefined.native.js +6 -3
  234. package/dist/esm/utils/removeUndefined.native.js.map +6 -1
  235. package/dist/esm/utils/requireResolve.native.js +4 -2
  236. package/dist/esm/utils/requireResolve.native.js.map +6 -1
  237. package/dist/esm/utils/url.native.js +6 -2
  238. package/dist/esm/utils/url.native.js.map +6 -1
  239. package/dist/esm/utils/weakKey.native.js +11 -10
  240. package/dist/esm/utils/weakKey.native.js.map +6 -1
  241. package/dist/esm/utils/weakMemo.native.js +8 -8
  242. package/dist/esm/utils/weakMemo.native.js.map +6 -1
  243. package/dist/esm/views/EmptyRoute.native.js +5 -3
  244. package/dist/esm/views/EmptyRoute.native.js.map +6 -1
  245. package/dist/esm/views/ErrorBoundary.native.js +5 -8
  246. package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
  247. package/dist/esm/views/LoadProgressBar.native.js +58 -57
  248. package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
  249. package/dist/esm/views/Navigator.native.js +54 -71
  250. package/dist/esm/views/Navigator.native.js.map +6 -1
  251. package/dist/esm/views/PreloadLinks.native.js +3 -1
  252. package/dist/esm/views/PreloadLinks.native.js.map +6 -1
  253. package/dist/esm/views/RootErrorBoundary.native.js +39 -29
  254. package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
  255. package/dist/esm/views/Screen.native.js +12 -12
  256. package/dist/esm/views/Screen.native.js.map +6 -1
  257. package/dist/esm/views/ScrollRestoration.native.js +27 -27
  258. package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
  259. package/dist/esm/views/Try.native.js +40 -37
  260. package/dist/esm/views/Try.native.js.map +6 -1
  261. package/dist/esm/vite/build.native.js +260 -295
  262. package/dist/esm/vite/build.native.js.map +6 -1
  263. package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
  264. package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
  265. package/dist/esm/vite/constants.native.js +6 -4
  266. package/dist/esm/vite/constants.native.js.map +6 -1
  267. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  268. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  269. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  270. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  271. package/dist/esm/vite/createFileSystemRouter.native.js +100 -131
  272. package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
  273. package/dist/esm/vite/customNodeExternals.native.js +9 -10
  274. package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
  275. package/dist/esm/vite/ensureTsConfig.native.js +7 -5
  276. package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
  277. package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
  278. package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
  279. package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
  280. package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
  281. package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
  282. package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
  283. package/dist/esm/vite/getManifest.native.js +6 -4
  284. package/dist/esm/vite/getManifest.native.js.map +6 -1
  285. package/dist/esm/vite/headers.native.js +11 -5
  286. package/dist/esm/vite/headers.native.js.map +6 -1
  287. package/dist/esm/vite/loadEnv.native.js +7 -6
  288. package/dist/esm/vite/loadEnv.native.js.map +6 -1
  289. package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
  290. package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
  291. package/dist/esm/vite/one.native.js +142 -127
  292. package/dist/esm/vite/one.native.js.map +6 -1
  293. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
  294. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
  295. package/dist/esm/vite/replaceLoader.js +7 -1
  296. package/dist/esm/vite/replaceLoader.js.map +1 -1
  297. package/dist/esm/vite/replaceLoader.mjs +5 -1
  298. package/dist/esm/vite/replaceLoader.mjs.map +1 -1
  299. package/dist/esm/vite/replaceLoader.native.js +13 -10
  300. package/dist/esm/vite/replaceLoader.native.js.map +6 -1
  301. package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
  302. package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
  303. package/dist/esm/vite/server.native.js +5 -4
  304. package/dist/esm/vite/server.native.js.map +6 -1
  305. package/dist/esm/vite/types.native.js +1 -2
  306. package/dist/esm/vite/types.native.js.map +6 -1
  307. package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
  308. package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
  309. package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
  310. package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
  311. package/dist/esm/vite.native.js +19 -10
  312. package/dist/esm/vite.native.js.map +6 -1
  313. package/dist/esm/zero/getQueryKey.native.js +5 -3
  314. package/dist/esm/zero/getQueryKey.native.js.map +6 -1
  315. package/dist/esm/zero/isZeroQuery.native.js +4 -2
  316. package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
  317. package/dist/esm/zero/resolveQuery.native.js +9 -8
  318. package/dist/esm/zero/resolveQuery.native.js.map +6 -1
  319. package/dist/esm/zero/subscribeToQuery.native.js +5 -3
  320. package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
  321. package/dist/esm/zero/types.native.js +1 -2
  322. package/dist/esm/zero/types.native.js.map +6 -1
  323. package/dist/esm/zero/useQuery.native.js +12 -12
  324. package/dist/esm/zero/useQuery.native.js.map +6 -1
  325. package/dist/esm/zero/useQueryZero.native.js +24 -20
  326. package/dist/esm/zero/useQueryZero.native.js.map +6 -1
  327. package/dist/esm/zero.native.js +9 -5
  328. package/dist/esm/zero.native.js.map +6 -1
  329. package/package.json +7 -7
  330. package/src/cleanUrl.ts +1 -1
  331. package/src/cli/runAndroid.ts +6 -0
  332. package/src/cli/runIos.ts +6 -0
  333. package/src/cli.ts +27 -1
  334. package/src/createHandleRequest.ts +7 -0
  335. package/src/vite/createFileSystemRouter.tsx +1 -2
  336. package/src/vite/replaceLoader.ts +7 -1
  337. package/types/cli/runAndroid.d.ts +2 -0
  338. package/types/cli/runAndroid.d.ts.map +1 -0
  339. package/types/cli/runIos.d.ts +2 -0
  340. package/types/cli/runIos.d.ts.map +1 -0
  341. package/types/createHandleRequest.d.ts.map +1 -1
  342. package/types/vite/createFileSystemRouter.d.ts.map +1 -1
  343. package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1 +1,6 @@
1
- {"version":3,"names":["virtualEntryIdNative","labelProcess","run","args","dev","start","stop","clean","root","process","cwd","server","https","host","port","entries","native","closePromise","on","err","console","error","message"],"sources":["../../../src/cli/run.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,oBAAA,QAA4B;AACrC,SAASC,YAAA,QAAoB;AAE7B,eAAsBC,IAAIC,IAAA,EAKvB;EACDF,YAAA,CAAa,KAAK;EAClB;MAAMG;IAAE,IAAI,MAAI,MAAM,OAAO;IAAM;MAC7BC,KAAE;MAAAC;I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,GAAG,cAAc,WAAA;AACvBb,SAAAA;EACF,CAAA,GAEAG,QAAQU,GAAG,UAAU,WAAA;AACnBb,SAAAA;EACF,CAAA,GAEAG,QAAQU,GAAG,qBAAqB,SAACC,KAAAA;AAC/BC,YAAQC,MAAMF,KAAKG,WAAWH,GAAAA;EAChC,CAAA,GAEA,MAAMF;AACR;",
5
+ "names": ["virtualEntryIdNative", "labelProcess", "run", "args", "dev", "start", "stop", "clean", "root", "process", "cwd", "server", "https", "host", "port", "undefined", "entries", "native", "closePromise", "on", "err", "console", "error", "message"]
6
+ }
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const { runAndroid } = await import("vxrn");
3
+ await runAndroid({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=runAndroid.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/runAndroid.ts"],
4
+ "mappings": "AAAA,eAAsB,IAAI,MAAU;AAClC,QAAM,EAAE,WAAW,IAAI,MAAM,OAAO,MAAM;AAC1C,QAAM,WAAW;AAAA,IACf,MAAM,QAAQ,IAAI;AAAA,EACpB,CAAC;AACH;",
5
+ "names": []
6
+ }
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const {
3
+ runAndroid
4
+ } = await import("vxrn");
5
+ await runAndroid({
6
+ root: process.cwd()
7
+ });
8
+ }
9
+ export { run };
10
+ //# sourceMappingURL=runAndroid.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["run","args","runAndroid","root","process","cwd"],"sources":["../../../src/cli/runAndroid.ts"],"sourcesContent":[null],"mappings":"AAAA,eAAsBA,IAAIC,IAAA,EAAU;EAClC,MAAM;IAAEC;EAAW,IAAI,MAAM,OAAO,MAAM;EAC1C,MAAMA,UAAA,CAAW;IACfC,IAAA,EAAMC,OAAA,CAAQC,GAAA,CAAI;EACpB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ var { runAndroid } = await import("vxrn");
3
+ await runAndroid({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=runAndroid.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/runAndroid.ts"],
4
+ "mappings": "AAAA,eAAsBA,IAAIC,MAAQ;AAChC,MAAM,EAAEC,WAAU,IAAK,MAAM,OAAO,MAAA;AACpC,QAAMA,WAAW;IACfC,MAAMC,QAAQC,IAAG;EACnB,CAAA;AACF;",
5
+ "names": ["run", "args", "runAndroid", "root", "process", "cwd"]
6
+ }
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const { runIos } = await import("vxrn");
3
+ await runIos({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=runIos.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/runIos.ts"],
4
+ "mappings": "AAAA,eAAsB,IAAI,MAAU;AAClC,QAAM,EAAE,OAAO,IAAI,MAAM,OAAO,MAAM;AACtC,QAAM,OAAO;AAAA,IACX,MAAM,QAAQ,IAAI;AAAA,EACpB,CAAC;AACH;",
5
+ "names": []
6
+ }
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const {
3
+ runIos
4
+ } = await import("vxrn");
5
+ await runIos({
6
+ root: process.cwd()
7
+ });
8
+ }
9
+ export { run };
10
+ //# sourceMappingURL=runIos.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["run","args","runIos","root","process","cwd"],"sources":["../../../src/cli/runIos.ts"],"sourcesContent":[null],"mappings":"AAAA,eAAsBA,IAAIC,IAAA,EAAU;EAClC,MAAM;IAAEC;EAAO,IAAI,MAAM,OAAO,MAAM;EACtC,MAAMA,MAAA,CAAO;IACXC,IAAA,EAAMC,OAAA,CAAQC,GAAA,CAAI;EACpB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ var { runIos } = await import("vxrn");
3
+ await runIos({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=runIos.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/runIos.ts"],
4
+ "mappings": "AAAA,eAAsBA,IAAIC,MAAQ;AAChC,MAAM,EAAEC,OAAM,IAAK,MAAM,OAAO,MAAA;AAChC,QAAMA,OAAO;IACXC,MAAMC,QAAQC,IAAG;EACnB,CAAA;AACF;",
5
+ "names": ["run", "args", "runIos", "root", "process", "cwd"]
6
+ }
package/dist/esm/cli.js CHANGED
@@ -101,6 +101,26 @@ const dev = defineCommand({
101
101
  const { run } = await import("./cli/prebuild");
102
102
  await run(args);
103
103
  }
104
+ }), runIos = defineCommand({
105
+ meta: {
106
+ name: "run:ios",
107
+ version
108
+ },
109
+ args: {},
110
+ async run({ args }) {
111
+ const { run } = await import("./cli/runIos");
112
+ await run(args);
113
+ }
114
+ }), runAndroid = defineCommand({
115
+ meta: {
116
+ name: "run:ios",
117
+ version
118
+ },
119
+ args: {},
120
+ async run({ args }) {
121
+ const { run } = await import("./cli/runAndroid");
122
+ await run(args);
123
+ }
104
124
  }), clean = defineCommand({
105
125
  meta: {
106
126
  name: "clean",
@@ -122,7 +142,7 @@ const dev = defineCommand({
122
142
  },
123
143
  args: {},
124
144
  async run({ args }) {
125
- if (["clean", "prebuild"].includes(args._[0]))
145
+ if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0]))
126
146
  return;
127
147
  const { cliMain } = await import("./cli/main");
128
148
  await cliMain(args);
@@ -132,6 +152,8 @@ const dev = defineCommand({
132
152
  clean,
133
153
  build: buildCommand,
134
154
  prebuild,
155
+ "run:ios": runIos,
156
+ "run:android": runAndroid,
135
157
  serve: serveComm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AE,KAAK,GAAG;AAClB,QAAI,CAAC,SAAS,YAAY,WAAW,aAAa,EAAE,SAAS,KAAK,EAAE,CAAC,CAAC;AAEpE;AAGF,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AAAA,EACA,aAAa;AAAA,IACX;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA,WAAW;AAAA,IACX,eAAe;AAAA,IACf,OAAO;AAAA,EACT;AACF,CAAC;AAED,QAAQ,IAAI;",
5
5
  "names": []
6
6
  }
package/dist/esm/cli.mjs CHANGED
@@ -121,6 +121,36 @@ const dev = defineCommand({
121
121
  await run(args);
122
122
  }
123
123
  }),
124
+ runIos = defineCommand({
125
+ meta: {
126
+ name: "run:ios",
127
+ version
128
+ },
129
+ args: {},
130
+ async run({
131
+ args
132
+ }) {
133
+ const {
134
+ run
135
+ } = await import("./cli/runIos.mjs");
136
+ await run(args);
137
+ }
138
+ }),
139
+ runAndroid = defineCommand({
140
+ meta: {
141
+ name: "run:ios",
142
+ version
143
+ },
144
+ args: {},
145
+ async run({
146
+ args
147
+ }) {
148
+ const {
149
+ run
150
+ } = await import("./cli/runAndroid.mjs");
151
+ await run(args);
152
+ }
153
+ }),
124
154
  clean = defineCommand({
125
155
  meta: {
126
156
  name: "clean",
@@ -147,7 +177,7 @@ const dev = defineCommand({
147
177
  async run({
148
178
  args
149
179
  }) {
150
- if (["clean", "prebuild"].includes(args._[0])) return;
180
+ if (["clean", "prebuild", "run:ios", "run:android"].includes(args._[0])) return;
151
181
  const {
152
182
  cliMain
153
183
  } = await import("./cli/main.mjs");
@@ -158,6 +188,8 @@ const dev = defineCommand({
158
188
  clean,
159
189
  build: buildCommand,
160
190
  prebuild,
191
+ "run:ios": runIos,
192
+ "run:android": runAndroid,
161
193
  serve: serveCommand
162
194
  }
163
195
  });
@@ -1 +1 @@
1
- {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","vxrnClean","root","main","includes","_","cliMain","subCommands"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,YAAA,CAAaS,WAAA,EAAa,OAAO,CAAC,EAC9CI,OAAA;AACrB;AAEA,MAAMA,OAAA,GAAUV,iBAAA,CAAkB;AAE7BJ,OAAA,CAAQe,OAAA,CAAQC,GAAA,CAAI,CAAC;AAE1B,MAAMC,GAAA,GAAMnB,aAAA,CAAc;IACxBU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJC,KAAA,EAAO;QACLC,IAAA,EAAM;MACR;MACAC,IAAA,EAAM;QACJD,IAAA,EAAM;MACR;MACAE,IAAA,EAAM;QACJF,IAAA,EAAM;MACR;MACAG,KAAA,EAAO;QACLH,IAAA,EAAM;MACR;IACF;IACA,MAAMI,IAAI;MAAEN;IAAK,GAAG;MAClB,MAAM;QAAEM;MAAI,IAAI,MAAM,OAAO,eAAW;MACxC,MAAM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KI,QAAA,GAAWxC,aAAA,CAAc;IAC7BU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;MAAA;IACf;IACAC,IAAA,EAAM,CAAC;IACP,MAAMM,IAAI;MAAEN;IAAK,GAAG;MAClB,MAAM;QAAEM;MAAI,IAAI,MAAM,OAAO,oBAAgB;MAC7C,MAAMA,GAAA,CAAIN,IAAI;IAChB;EACF,CAAC;EAEKC,KAAA,GAAQvB,aAAA,CAAc;IAC1BU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA,EAAS;MACTK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM,CAAC;IACP,MAAMM,IAAA,EAAM;MACV,MAAM;QAAEL,KAAA,EAAOkB;MAAU,IAAI,MAAM,OAAO,MAAM;MAChD,MAAMA,SAAA,CAAU;QACdC,IAAA,EAAMzB,OAAA,CAAQC,GAAA,CAAI;MACpB,CAAC;IACH;EACF,CAAC;EAEKyB,IAAA,GAAO3C,aAAA,CAAc;IACzBU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM,CAAC;IACP,MAAMM,IAAI;MAAEN;IAAK,GAAG;MAClB,IAAI,CAAC,SAAS,UAAU,EAAEsB,QAAA,CAAStB,IAAA,CAAKuB,CAAA,CAAE,CAAC,CAAC,GAE1C;MAGF,MAAM;QAAEC;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQxB,IAAI;IACpB;IACAyB,WAAA,EAAa;MACX5B,GAAA;MACAI,KAAA;MACAU,KAAA,EAAOJ,YAAA;MACPW,QAAA;MACAD,KAAA,EAAOJ;IACT;EACF,CAAC;AAEDlC,OAAA,CAAQ0C,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","main","includes","_","cliMain","subCommands"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,YAAA,CAAaS,WAAA,EAAa,OAAO,CAAC,EAC9CI,OAAA;AACrB;AAEA,MAAMA,OAAA,GAAUV,iBAAA,CAAkB;AAE7BJ,OAAA,CAAQe,OAAA,CAAQC,GAAA,CAAI,CAAC;AAE1B,MAAMC,GAAA,GAAMnB,aAAA,CAAc;IACxBU,IAAA,EAAM;MACJU,IAAA,EAAM;MACNJ,OAAA;MACAK,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJC,KAAA,EAAO;QACLC,IAAA,EAAM;MACR;MACAC,IAAA,EAAM;QACJD,IAAA,EAAM;MACR;MACAE,IAAA,EAAM;QACJF,IAAA,EAAM;MACR;MACAG,KAAA,EAAO;QACLH,IAAA,EAAM;MACR;IACF;IACA,MAAMI,IAAI;MAAEN;IAAK,GAAG;MAClB,MAAM;QAAEM;MAAI,IAAI,MAAM,OAAO,eAAW;MACxC,MAAMA,GAAA,CAAIN,IAAI;IAChB;EACF,CAAC;EAEKO,YAAA,GAA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YAAY,WAAW,aAAa,EAAEwB,QAAA,CAASxB,IAAA,CAAKyB,CAAA,CAAE,CAAC,CAAC,GAEpE;MAGF,MAAM;QAAEC;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ1B,IAAI;IACpB;IACA2B,WAAA,EAAa;MACX9B,GAAA;MACAI,KAAA;MACAU,KAAA,EAAOJ,YAAA;MACPW,QAAA;MACA,WAAWC,MAAA;MACX,eAAeC,UAAA;MACfH,KAAA,EAAOJ;IACT;EACF,CAAC;AAEDlC,OAAA,CAAQ4C,IAAI","ignoreList":[]}
@@ -1,172 +1,167 @@
1
1
  import { defineCommand, runMain } from "citty";
2
- import { loadEnv } from "./vite/loadEnv.native.js";
2
+ import { loadEnv } from "./vite/loadEnv";
3
3
  import { readFileSync } from "node:fs";
4
4
  import path from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
6
  function getPackageVersion() {
7
7
  var dirname;
8
8
  typeof __dirname < "u" ? dirname = __dirname : dirname = path.dirname(fileURLToPath(import.meta.url));
9
- var packagePath = path.join(dirname, "..", "..", "package.json"),
10
- packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
9
+ var packagePath = path.join(dirname, "..", "..", "package.json"), packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
11
10
  return packageJson.version;
12
11
  }
13
12
  var version = getPackageVersion();
14
13
  loadEnv(process.cwd());
15
14
  var dev = defineCommand({
16
- meta: {
17
- name: "dev",
18
- version,
19
- description: "Start the dev server"
15
+ meta: {
16
+ name: "dev",
17
+ version,
18
+ description: "Start the dev server"
19
+ },
20
+ args: {
21
+ clean: {
22
+ type: "boolean"
20
23
  },
21
- args: {
22
- clean: {
23
- type: "boolean"
24
- },
25
- host: {
26
- type: "string"
27
- },
28
- port: {
29
- type: "string"
30
- },
31
- https: {
32
- type: "boolean"
33
- }
24
+ host: {
25
+ type: "string"
34
26
  },
35
- async run(param) {
36
- var {
37
- args
38
- } = param,
39
- {
40
- run
41
- } = await import("./cli/run.native.js");
42
- await run(args);
43
- }
44
- }),
45
- buildCommand = defineCommand({
46
- meta: {
47
- name: "build",
48
- version,
49
- description: "Build your app"
50
- },
51
- args: {
52
- step: {
53
- type: "string",
54
- required: !1
55
- },
56
- // limit the pages built
57
- only: {
58
- type: "string",
59
- required: !1
60
- }
27
+ port: {
28
+ type: "string"
61
29
  },
62
- async run(param) {
63
- var {
64
- args
65
- } = param,
66
- {
67
- build
68
- } = await import("./vite/build.native.js");
69
- await build(args), process.exit(0);
30
+ https: {
31
+ type: "boolean"
70
32
  }
71
- }),
72
- serveCommand = defineCommand({
73
- meta: {
74
- name: "serve",
75
- version,
76
- description: "Serve a built app for production"
77
- },
78
- args: {
79
- host: {
80
- type: "string"
81
- },
82
- port: {
83
- type: "string"
84
- },
85
- platform: {
86
- type: "string"
87
- },
88
- compress: {
89
- type: "boolean"
90
- },
91
- cacheHeaders: {
92
- type: "boolean"
93
- }
33
+ },
34
+ async run(param) {
35
+ var { args } = param, { run } = await import("./cli/run");
36
+ await run(args);
37
+ }
38
+ }), buildCommand = defineCommand({
39
+ meta: {
40
+ name: "build",
41
+ version,
42
+ description: "Build your app"
43
+ },
44
+ args: {
45
+ step: {
46
+ type: "string",
47
+ required: !1
94
48
  },
95
- async run(param) {
96
- var {
97
- args
98
- } = param,
99
- {
100
- serve
101
- } = await import("./serve.native.js");
102
- await serve({
103
- port: args.port ? +args.port : void 0,
104
- host: args.host,
105
- cacheHeaders: args.cacheHeaders === !1 ? "off" : void 0,
106
- compress: args.compress,
107
- platform: args.platform === "vercel" ? "vercel" : "node"
108
- });
49
+ // limit the pages built
50
+ only: {
51
+ type: "string",
52
+ required: !1
109
53
  }
110
- }),
111
- prebuild = defineCommand({
112
- meta: {
113
- name: "prebuild",
114
- version,
115
- description: "Prebuild native iOS project"
54
+ },
55
+ async run(param) {
56
+ var { args } = param, { build } = await import("./vite/build");
57
+ await build(args), process.exit(0);
58
+ }
59
+ }), serveCommand = defineCommand({
60
+ meta: {
61
+ name: "serve",
62
+ version,
63
+ description: "Serve a built app for production"
64
+ },
65
+ args: {
66
+ host: {
67
+ type: "string"
116
68
  },
117
- // TODO: Android
118
- args: {},
119
- async run(param) {
120
- var {
121
- args
122
- } = param,
123
- {
124
- run
125
- } = await import("./cli/prebuild.native.js");
126
- await run(args);
127
- }
128
- }),
129
- clean = defineCommand({
130
- meta: {
131
- name: "clean",
132
- version: "0.0.0",
133
- description: "Clean build folders"
69
+ port: {
70
+ type: "string"
134
71
  },
135
- args: {},
136
- async run() {
137
- var {
138
- clean: vxrnClean
139
- } = await import("vxrn");
140
- await vxrnClean({
141
- root: process.cwd()
142
- });
143
- }
144
- }),
145
- main = defineCommand({
146
- meta: {
147
- name: "main",
148
- version,
149
- description: "Welcome to One"
72
+ platform: {
73
+ type: "string"
150
74
  },
151
- args: {},
152
- async run(param) {
153
- var {
154
- args
155
- } = param;
156
- if (!["clean", "prebuild"].includes(args._[0])) {
157
- var {
158
- cliMain
159
- } = await import("./cli/main.native.js");
160
- await cliMain(args);
161
- }
75
+ compress: {
76
+ type: "boolean"
162
77
  },
163
- subCommands: {
164
- dev,
165
- clean,
166
- build: buildCommand,
167
- prebuild,
168
- serve: serveCommand
78
+ cacheHeaders: {
79
+ type: "boolean"
80
+ }
81
+ },
82
+ async run(param) {
83
+ var { args } = param, { serve } = await import("./serve");
84
+ await serve({
85
+ port: args.port ? +args.port : void 0,
86
+ host: args.host,
87
+ cacheHeaders: args.cacheHeaders === !1 ? "off" : void 0,
88
+ compress: args.compress,
89
+ platform: args.platform === "vercel" ? "vercel" : "node"
90
+ });
91
+ }
92
+ }), prebuild = defineCommand({
93
+ meta: {
94
+ name: "prebuild",
95
+ version,
96
+ description: "Prebuild native iOS project"
97
+ },
98
+ // TODO: Android
99
+ args: {},
100
+ async run(param) {
101
+ var { args } = param, { run } = await import("./cli/prebuild");
102
+ await run(args);
103
+ }
104
+ }), runIos = defineCommand({
105
+ meta: {
106
+ name: "run:ios",
107
+ version
108
+ },
109
+ args: {},
110
+ async run(param) {
111
+ var { args } = param, { run } = await import("./cli/runIos");
112
+ await run(args);
113
+ }
114
+ }), runAndroid = defineCommand({
115
+ meta: {
116
+ name: "run:ios",
117
+ version
118
+ },
119
+ args: {},
120
+ async run(param) {
121
+ var { args } = param, { run } = await import("./cli/runAndroid");
122
+ await run(args);
123
+ }
124
+ }), clean = defineCommand({
125
+ meta: {
126
+ name: "clean",
127
+ version: "0.0.0",
128
+ description: "Clean build folders"
129
+ },
130
+ args: {},
131
+ async run() {
132
+ var { clean: vxrnClean } = await import("vxrn");
133
+ await vxrnClean({
134
+ root: process.cwd()
135
+ });
136
+ }
137
+ }), main = defineCommand({
138
+ meta: {
139
+ name: "main",
140
+ version,
141
+ description: "Welcome to One"
142
+ },
143
+ args: {},
144
+ async run(param) {
145
+ var { args } = param;
146
+ if (![
147
+ "clean",
148
+ "prebuild",
149
+ "run:ios",
150
+ "run:android"
151
+ ].includes(args._[0])) {
152
+ var { cliMain } = await import("./cli/main");
153
+ await cliMain(args);
169
154
  }
170
- });
155
+ },
156
+ subCommands: {
157
+ dev,
158
+ clean,
159
+ build: buildCommand,
160
+ prebuild,
161
+ "run:ios": runIos,
162
+ "run:android": runAndroid,
163
+ serve: serveCommand
164
+ }
165
+ });
171
166
  runMain(main);
172
- //# sourceMappingURL=cli.native.js.map
167
+ //# sourceMappingURL=cli.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["defineCommand","runMain","loadEnv","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","packageJson","JSON","parse","version","process","cwd","dev","name","description","args","clean","type","host","port","https","run","param","buildCommand","step","required","only","build","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","vxrnClean","root","main","includes","_","cliMain","subCommands"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,SAASC,OAAA,QAAe;AACxB,SAASC,YAAA,QAAoB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C,YAAMA,QAAQ3B,IAAAA;;EAChB;EACA4B,aAAa;IACXhC;IACAK;IACAU,OAAOJ;IACPY;IACA,WAAWC;IACX,eAAeC;IACfJ,OAAOJ;EACT;AACF,CAAA;AAEAlC,QAAQ6C,IAAAA;",
5
+ "names": ["defineCommand", "runMain", "loadEnv", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "process", "cwd", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "run", "buildCommand", "step", "required", "only", "build", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "main", "includes", "_", "cliMain", "subCommands"]
6
+ }
@@ -1,11 +1,14 @@
1
- var clientLoaderResolver = null,
2
- didRun = !1;
1
+ var clientLoaderResolver = null, didRun = !1;
3
2
  function onClientLoaderResolve(resolver) {
4
- if (didRun) throw new Error(process.env.NODE_ENV === "production" ? "Error 002" : "Error: You called onClientLoaderResolve after it was run, register it in your root _layout.tsx");
3
+ if (didRun)
4
+ throw new Error(process.env.NODE_ENV === "production" ? "Error 002" : "Error: You called onClientLoaderResolve after it was run, register it in your root _layout.tsx");
5
5
  clientLoaderResolver = resolver;
6
6
  }
7
7
  async function resolveClientLoader(props) {
8
- didRun = !0, clientLoaderResolver && (await clientLoaderResolver(props));
8
+ didRun = !0, clientLoaderResolver && await clientLoaderResolver(props);
9
9
  }
10
- export { onClientLoaderResolve, resolveClientLoader };
11
- //# sourceMappingURL=clientLoaderResolver.native.js.map
10
+ export {
11
+ onClientLoaderResolve,
12
+ resolveClientLoader
13
+ };
14
+ //# sourceMappingURL=clientLoaderResolver.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["clientLoaderResolver","didRun","onClientLoaderResolve","resolver","Error","process","env","NODE_ENV","resolveClientLoader","props"],"sources":["../../src/clientLoaderResolver.ts"],"sourcesContent":[null],"mappings":"AAKA,IAAIA,oBAAA,GAAoD;EACpDC,MAAA,GAAS;AAEN,SAASC,sBAAsBC,QAAA,EAAgC;EACpE,IAAIF,MAAA,EACF,MAAM,IAAIG,KAAA,CAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAP,oBACI,GAAAG,QAAa;AAErB;AAGR,eAAAK,mBAAuBA,CAAAC,KAAA;EACzBR,MAAA,OAAAD,oBAAA,WAAAA,oBAAA,CAAAS,KAAA;AAEA;AAEE,SAEFP,qBAAA,E","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/one/packages/one/src/clientLoaderResolver.ts"],
4
+ "mappings": "AAKA,IAAIA,uBAAoD,MACpDC,SAAS;AAEN,SAASC,sBAAsBC,UAA8B;AAClE,MAAIF;AACF,UAAM,IAAIG,MACRC,QAAQC,IAAIC,aAAa,eACrB,cACA,gGAAgG;AAGxGP,yBAAuBG;AACzB;AAEA,eAAsBK,oBAAoBC,OAA0B;AAElE,EADAR,SAAS,IACJD,wBACL,MAAMA,qBAAqBS,KAAAA;AAC7B;",
5
+ "names": ["clientLoaderResolver", "didRun", "onClientLoaderResolve", "resolver", "Error", "process", "env", "NODE_ENV", "resolveClientLoader", "props"]
6
+ }
@@ -1,11 +1,12 @@
1
- import { isWebServer } from "./constants.native.js";
2
- var CLIENT_RENDER_MODE = process.env.One_DEFAULT_RENDER_MODE,
3
- getDefaultRenderMode = function () {
4
- var _serverConfig_web,
5
- serverConfig = globalThis.__vxrnPluginConfig__;
6
- if (isWebServer && !serverConfig) throw new Error("Internal one error: should call setServerConfig before createManifest");
7
- var _ref;
8
- return (_ref = CLIENT_RENDER_MODE ?? (serverConfig == null || (_serverConfig_web = serverConfig.web) === null || _serverConfig_web === void 0 ? void 0 : _serverConfig_web.defaultRenderMode)) !== null && _ref !== void 0 ? _ref : "ssg";
9
- };
10
- export { getDefaultRenderMode };
11
- //# sourceMappingURL=config.native.js.map
1
+ import { isWebServer } from "./constants";
2
+ var CLIENT_RENDER_MODE = process.env.One_DEFAULT_RENDER_MODE, getDefaultRenderMode = function() {
3
+ var _serverConfig_web, serverConfig = globalThis.__vxrnPluginConfig__;
4
+ if (isWebServer && !serverConfig)
5
+ throw new Error("Internal one error: should call setServerConfig before createManifest");
6
+ var _ref;
7
+ return (_ref = CLIENT_RENDER_MODE ?? (serverConfig == null || (_serverConfig_web = serverConfig.web) === null || _serverConfig_web === void 0 ? void 0 : _serverConfig_web.defaultRenderMode)) !== null && _ref !== void 0 ? _ref : "ssg";
8
+ };
9
+ export {
10
+ getDefaultRenderMode
11
+ };
12
+ //# sourceMappingURL=config.js.map