@aussieljk/forkbook 0.0.1-7 → 0.0.1-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/template.ejs +13 -0
- package/dist/_browser-chunks/{Color-2YRIFQLC.js → Color-GEC6HRBY.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-4R5JMWZ7.js → WithTooltip-CS3HPMGA.js} +6 -4
- package/dist/_browser-chunks/{chunk-4EFKUJG2.js → chunk-6QEYM2YW.js} +25 -25
- package/dist/_browser-chunks/chunk-C5TKXHTM.js +82 -0
- package/dist/_browser-chunks/{chunk-WVF42CP2.js → chunk-DNJ3OSLB.js} +46 -52
- package/dist/_browser-chunks/{chunk-E47B5255.js → chunk-IFADVEQE.js} +63 -543
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-YYWKZ7O3.js → chunk-NTUHL5NS.js} +5 -2
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/{chunk-HTL5ODCB.js → chunk-PFCGVFP6.js} +3 -3
- package/dist/_browser-chunks/{chunk-H4ZHAXN3.js → chunk-V5U45XXZ.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/{chunk-DAUHYZUB.js → chunk-XTQCLWVH.js} +255 -494
- package/dist/_browser-chunks/{chunk-SFMQDIN2.js → chunk-ZHKZKFY4.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-WFZCCGUB.js → attached-runtime-OI5IEIR7.js} +30 -30
- package/dist/_node-chunks/builder-manager-JEIVVV43.js +1139 -0
- package/dist/_node-chunks/{chunk-R6AKCXPH.js → chunk-2FWH7OUZ.js} +7 -7
- package/dist/_node-chunks/{chunk-MF5BYASO.js → chunk-2QPSOAHI.js} +6 -6
- package/dist/_node-chunks/{chunk-PQLXHVWK.js → chunk-2T2S3YYS.js} +6 -6
- package/dist/_node-chunks/{chunk-MF3AT3JQ.js → chunk-35JF5BS4.js} +6 -6
- package/dist/_node-chunks/{chunk-KHWCZDIW.js → chunk-3I43FMZC.js} +7 -7
- package/dist/_node-chunks/{chunk-7PMQPS5E.js → chunk-3R57KO3F.js} +10 -10
- package/dist/_node-chunks/chunk-4CWEAS2M.js +11 -0
- package/dist/_node-chunks/{chunk-CNMMDQC3.js → chunk-4HYKKRBM.js} +13 -15
- package/dist/_node-chunks/{chunk-CBBFNVFZ.js → chunk-4W6HJYYC.js} +7 -7
- package/dist/_node-chunks/{chunk-6K3ZE4HN.js → chunk-57BBVTHQ.js} +6 -6
- package/dist/_node-chunks/{chunk-RZ7UEP4N.js → chunk-5MDE2KCS.js} +6 -6
- package/dist/_node-chunks/{chunk-JPHSU5OI.js → chunk-5NCRCPYK.js} +6 -6
- package/dist/_node-chunks/{chunk-CENNLCU7.js → chunk-6O6BHNDO.js} +7 -7
- package/dist/_node-chunks/{chunk-LZYYZ62Y.js → chunk-7PZDRNVT.js} +6 -6
- package/dist/_node-chunks/{chunk-QSP42ZBM.js → chunk-7X5WP3UJ.js} +6 -6
- package/dist/_node-chunks/{chunk-JDKYP7FW.js → chunk-7XYURNT2.js} +10 -10
- package/dist/_node-chunks/{chunk-HUMAXGH2.js → chunk-AONRQAQP.js} +6 -6
- package/dist/_node-chunks/{chunk-KWER36VB.js → chunk-ASFRQHZH.js} +6 -6
- package/dist/_node-chunks/{chunk-UNCBLHIP.js → chunk-AUY6EZPA.js} +10 -10
- package/dist/_node-chunks/{chunk-P3GOMPP3.js → chunk-BCFTMBAH.js} +7 -7
- package/dist/_node-chunks/{chunk-MRWBN46D.js → chunk-BEHNZYWF.js} +8 -8
- package/dist/_node-chunks/{chunk-UPJMGWMZ.js → chunk-BZNVRJ6H.js} +7 -7
- package/dist/_node-chunks/{chunk-ZSGOW4WQ.js → chunk-CHLWJ5F5.js} +6 -6
- package/dist/_node-chunks/{chunk-F3SAYS4R.js → chunk-CMDR42D7.js} +6 -6
- package/dist/_node-chunks/{chunk-QWRQXG2V.js → chunk-CP646EXE.js} +8 -8
- package/dist/_node-chunks/chunk-DDRGY4RJ.js +57 -0
- package/dist/_node-chunks/{chunk-NQAFLS5U.js → chunk-DMDIIGJ4.js} +7 -7
- package/dist/_node-chunks/{chunk-WHOF2BJB.js → chunk-DTZELAXT.js} +7 -7
- package/dist/_node-chunks/{chunk-BQC6WCUS.js → chunk-ELMANXC3.js} +6 -6
- package/dist/_node-chunks/{chunk-SHH7JROR.js → chunk-ELXK72IJ.js} +6 -6
- package/dist/_node-chunks/{chunk-LJTP5PAJ.js → chunk-F6RXCQF6.js} +6 -6
- package/dist/_node-chunks/{chunk-M7ZVSBNU.js → chunk-FKQHIPUA.js} +6 -6
- package/dist/_node-chunks/{chunk-X63YMAHP.js → chunk-FPWDVE2V.js} +7 -7
- package/dist/_node-chunks/{chunk-J3Q56GX3.js → chunk-FVJLKXNS.js} +23 -23
- package/dist/_node-chunks/{chunk-NUYBFTOU.js → chunk-GABGLW7D.js} +7 -7
- package/dist/_node-chunks/{chunk-Y6G64J5S.js → chunk-GOZDHTIK.js} +6 -6
- package/dist/_node-chunks/{chunk-QWDR5OWQ.js → chunk-GPSR4MZL.js} +15 -15
- package/dist/_node-chunks/{chunk-JED5F3H2.js → chunk-GZ2YC6US.js} +6 -6
- package/dist/_node-chunks/chunk-H5HD6EW2.js +28 -0
- package/dist/_node-chunks/{chunk-I535GEPH.js → chunk-I6ANUF4J.js} +7 -7
- package/dist/_node-chunks/{chunk-MJFMB4WD.js → chunk-ICIP5FB5.js} +9 -9
- package/dist/_node-chunks/{chunk-O7VJA7SM.js → chunk-IK35TZRH.js} +7 -7
- package/dist/_node-chunks/{chunk-5PYQ573S.js → chunk-IOJ6NYLD.js} +7 -7
- package/dist/_node-chunks/{chunk-ESZIQTUH.js → chunk-IWEZ5KSJ.js} +7 -7
- package/dist/_node-chunks/{chunk-SWHTDOB4.js → chunk-JOOZKSBS.js} +7 -7
- package/dist/_node-chunks/{chunk-G2AANC4A.js → chunk-JXVJAA3U.js} +6 -6
- package/dist/_node-chunks/{chunk-ATX7SHS7.js → chunk-K6VX4GUH.js} +8 -8
- package/dist/_node-chunks/{chunk-ESCZ2NSB.js → chunk-L7US6VLX.js} +6 -6
- package/dist/_node-chunks/{chunk-UVV24PG4.js → chunk-LKMHU2P3.js} +7 -7
- package/dist/_node-chunks/{chunk-CDFQORVD.js → chunk-LMWS7NDR.js} +7 -7
- package/dist/_node-chunks/{chunk-WME5NEJA.js → chunk-LPDII6WJ.js} +6 -6
- package/dist/_node-chunks/{chunk-ZIDIYSJQ.js → chunk-MBJ2CUVU.js} +7 -7
- package/dist/_node-chunks/{chunk-6QZ3PX5R.js → chunk-MGXABKCL.js} +7 -7
- package/dist/_node-chunks/{chunk-BR4WDRY6.js → chunk-MHLTWQGQ.js} +8 -8
- package/dist/_node-chunks/{chunk-Q6QRFKHB.js → chunk-MMMKY3DA.js} +8 -8
- package/dist/_node-chunks/{chunk-WBB4NQ6H.js → chunk-MXNT3HBF.js} +6 -6
- package/dist/_node-chunks/{chunk-64JPAW3T.js → chunk-O7WMRMVJ.js} +6 -6
- package/dist/_node-chunks/{chunk-NSZGBFPR.js → chunk-OPLD7FOE.js} +6 -6
- package/dist/_node-chunks/{chunk-MBIIJTGQ.js → chunk-P4CWOISW.js} +7 -7
- package/dist/_node-chunks/{chunk-OGJ7LDX3.js → chunk-POXIO453.js} +7 -7
- package/dist/_node-chunks/{chunk-BRHJ4P3A.js → chunk-PRTTCG3N.js} +6 -6
- package/dist/_node-chunks/{chunk-K5RUOW42.js → chunk-QE3NKWUX.js} +7 -7
- package/dist/_node-chunks/{chunk-SZYMLCHF.js → chunk-QMERCCIQ.js} +6 -6
- package/dist/_node-chunks/{chunk-U3E7E4Q2.js → chunk-QVF2NJK4.js} +10 -10
- package/dist/_node-chunks/{chunk-YZWUD7I5.js → chunk-R33EXC6B.js} +50 -50
- package/dist/_node-chunks/{chunk-JQICISDD.js → chunk-R3BJJGEG.js} +6 -6
- package/dist/_node-chunks/chunk-REDMAZRP.js +18 -0
- package/dist/_node-chunks/{chunk-7V5AOV2J.js → chunk-RJV4QWRP.js} +7 -7
- package/dist/_node-chunks/{chunk-3ZCGT6VF.js → chunk-RXEMA2TT.js} +6 -6
- package/dist/_node-chunks/{chunk-S3HB4EWT.js → chunk-TKOUTJWX.js} +8 -8
- package/dist/_node-chunks/{chunk-TOGDRW2W.js → chunk-TRZWEDUE.js} +6 -6
- package/dist/_node-chunks/{chunk-YVIPYJ53.js → chunk-U3BEYEZ5.js} +8 -8
- package/dist/_node-chunks/{chunk-UF6Q6L5C.js → chunk-UI6NW64P.js} +125 -144
- package/dist/_node-chunks/chunk-UK2NKD4E.js +532 -0
- package/dist/_node-chunks/{chunk-JMS4H7QB.js → chunk-VF6725VX.js} +7 -7
- package/dist/_node-chunks/{chunk-7HVDL6M3.js → chunk-VJJTMS2R.js} +9 -9
- package/dist/_node-chunks/{chunk-7VHCAGBJ.js → chunk-VQBXHU2T.js} +8 -8
- package/dist/_node-chunks/{chunk-DT45EUDD.js → chunk-VZ3PQJKF.js} +27 -32
- package/dist/_node-chunks/{chunk-6CB3XSQ2.js → chunk-WI6FDUOM.js} +8 -8
- package/dist/_node-chunks/{chunk-U6DHF3RM.js → chunk-WTS7HYGM.js} +7 -7
- package/dist/_node-chunks/{chunk-OWT6AVWK.js → chunk-WXMIR2F2.js} +8 -8
- package/dist/_node-chunks/{chunk-FVFSSIGA.js → chunk-XA2UQNP3.js} +10 -10
- package/dist/_node-chunks/{chunk-FTUQ7T3V.js → chunk-Y2FWEOIW.js} +8 -8
- package/dist/_node-chunks/{chunk-EAL4RVEF.js → chunk-Y5JLYH6J.js} +6 -6
- package/dist/_node-chunks/{chunk-JOSJ64KD.js → chunk-YELBVH4K.js} +7 -7
- package/dist/_node-chunks/{chunk-MZQXEAI6.js → chunk-YK5N35SR.js} +9 -9
- package/dist/_node-chunks/{chunk-4HGC3G6B.js → chunk-YLXOGJX6.js} +21 -9
- package/dist/_node-chunks/{chunk-NLPC2DDQ.js → chunk-YSVJU5VZ.js} +6 -6
- package/dist/_node-chunks/{chunk-RCY7TLET.js → chunk-ZFTEHWNT.js} +8 -8
- package/dist/_node-chunks/{chunk-JTLOSDYL.js → chunk-ZLBDSC7U.js} +9 -9
- package/dist/_node-chunks/{chunk-UAG3XK32.js → chunk-ZMI35R7E.js} +47 -36
- package/dist/_node-chunks/{chunk-RKKMQA6N.js → chunk-ZOE2QQSS.js} +8 -8
- package/dist/_node-chunks/{chunk-DMDZPUHM.js → chunk-ZST2SPBX.js} +6 -6
- package/dist/_node-chunks/{chunk-Y2GHAOKI.js → chunk-ZUYRTHXN.js} +6 -6
- package/dist/_node-chunks/dist-FABQFQ76.js +27 -0
- package/dist/_node-chunks/dist-ZUXZVI3A.js +16 -0
- package/dist/_node-chunks/{local-runtime-UN5QK2SE.js → local-runtime-LKT5I6NG.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-6M6CMNL3.js → mdx-plugin-2YIBFVCV.js} +13 -13
- package/dist/_node-chunks/{monorepo-253VKW4B.js → monorepo-HROZW452.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-MUIOTVJR.js} +11 -11
- package/dist/_node-chunks/optimized-tests-EK5H7MUQ.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-CCCJRMSL.js → pattern-copy-play-VQNMME5S.js} +11 -11
- package/dist/_node-chunks/postinstallAddon-T4RENREB.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-LJTPLCGD.js → rehype-external-links-WXD3NVWK.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-KQI7ULEZ.js → rehype-slug-LWBEJBWR.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-MUE2NI7S.js → relaxed-limits-MKV6OE3S.js} +11 -11
- package/dist/_node-chunks/{run-SYLR25HA.js → run-A4A2HQDT.js} +17 -17
- package/dist/_node-chunks/{run-PGZMPNMS.js → run-UBPF7ZUG.js} +53 -26
- package/dist/_node-chunks/session-id-YZZIHNID.js +23 -0
- package/dist/_node-chunks/{setup-XZWSUYPG.js → setup-SMMCS2Q5.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-T25YYRGV.js → vitest.config.4.template-PYSDGPB4.js} +7 -7
- package/dist/addon-a11y/index.js +1 -1
- package/dist/addon-a11y/manager.js +19 -23
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +1 -1
- package/dist/addon-docs/blocks.js +21 -27
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +4 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +4 -2
- package/dist/addon-links/react/index.js +3 -1
- package/dist/addon-mcp/preset.js +10 -10
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +8 -10
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-themes/manager.js +3 -3
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +8 -8
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +14 -14
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +15 -15
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +62 -62
- package/dist/bin/dispatcher.js +13 -16
- package/dist/bin/loader.js +8 -8
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-B_ZhEPlo.d.ts → chunk-BhAPwdVB.d.ts} +1 -1
- package/dist/{chunk-DuDsmeM7.d.ts → chunk-CFk6djyM.d.ts} +4 -4
- package/dist/{chunk-CMaYrou5.d.ts → chunk-DXsI731B.d.ts} +1 -1
- package/dist/{chunk-BWzbIWPz.d.ts → chunk-Dw_4ad2Y.d.ts} +5 -5
- package/dist/{chunk-LrH1y9J2.d.ts → chunk-PdOIKm0H.d.ts} +42 -9
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +22 -22
- package/dist/cli/skills/content/index.d.ts +1 -1
- package/dist/cli/skills/content/index.js +2 -2
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/common/index.d.ts +14 -27
- package/dist/common/index.js +36 -40
- package/dist/components/index.d.ts +38 -1
- package/dist/components/index.js +597 -522
- package/dist/core-server/index.d.ts +6 -6
- package/dist/core-server/index.js +283 -174
- package/dist/core-server/presets/common-manager.js +492 -118
- package/dist/core-server/presets/common-override-preset.js +10 -10
- package/dist/core-server/presets/common-preset.js +51 -43
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf-tools/index.d.ts +3 -1
- package/dist/csf-tools/index.js +14 -12
- package/dist/manager/_manager-chunks/{globals-runtime-CI-C7ncS.js → globals-runtime-B1q30If4.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-4fCHtNC6.js → globals-runtime-BY3epqww.js} +413 -2
- package/dist/manager/_manager-chunks/globals-runtime-Bj5KDUJi.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-Bpc_ftuT.js → globals-runtime-Bs75QQ_I.js} +3 -1192
- package/dist/manager/_manager-chunks/{globals-runtime-D82vqOGq.js → globals-runtime-BweHuXkK.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-BKPOYSwp.js → globals-runtime-C4GdZS7_.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-DB8fVA5g.js → globals-runtime-CA8AuIRT.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CzEhVGVp.js → globals-runtime-CnfHMZV0.js} +153 -27
- package/dist/manager/_manager-chunks/{globals-runtime-BMIT8BJb.js → globals-runtime-DgHSAUIB.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-kmPSyf3j.js → globals-runtime-DvV_TF3-.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-DMq1Phbl.js → globals-runtime-FcobHVj9.js} +480 -375
- package/dist/manager/_manager-chunks/{globals-runtime-CoCzM1V_.js → globals-runtime-WZKaeKm9.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CI_p54Ha.js → globals-runtime-dh5vgpgm.js} +238 -232
- package/dist/manager/_manager-chunks/{globals-runtime-DOPUchia.js → globals-runtime-wjkxyMn0.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-Cf0p9DUx.js → runtime-BSkBrZa7.js} +3 -3
- package/dist/manager/_manager-chunks/{runtime-D09XMY6V.js → runtime-Bdda1ODD.js} +1 -1
- package/dist/manager/_manager-chunks/{runtime-B4U0u9p4.js → runtime-Bp_XtatN.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-D-nYLsdk.js → runtime-D-bkVc6v.js} +32 -31
- package/dist/manager/_manager-chunks/{runtime-DzxaTqVN.js → runtime-DP_7wWTN.js} +2 -2
- package/dist/manager/_manager-chunks/{runtime-BM30BmeT.js → runtime-DlX-MKi1.js} +335 -327
- package/dist/manager/_manager-chunks/{runtime-ecY5qnmo.js → runtime-TytMkKcC.js} +339 -240
- package/dist/manager/_manager-chunks/{runtime-DvrwKw7z.js → runtime-jOBCBZ66.js} +98 -61
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +1 -1
- package/dist/manager/globals.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +34 -9
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +9 -9
- package/dist/nextjs-vite/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/preset.js +11 -11
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.js +8 -8
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +10 -10
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -11
- package/dist/react/preset.js +13 -13
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +8 -8
- package/dist/react-native/index.js +3 -3
- package/dist/react-native/metro/node.js +10 -10
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +9 -9
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +16 -16
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.d.ts +69 -1
- package/dist/router/index.js +48 -8
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.d.ts +3 -3
- package/dist/telemetry/index.js +43 -43
- package/dist/theming/index.js +13 -9
- package/dist/types/index.d.ts +2 -2
- package/package.json +7 -9
- package/dist/_node-chunks/builder-manager-DHKHRZK4.js +0 -1623
- package/dist/_node-chunks/chunk-EFFWFE6W.js +0 -11
- package/dist/_node-chunks/chunk-UGXN7JTT.js +0 -18
- package/dist/_node-chunks/dist-5EG56KTF.js +0 -16
- package/dist/_node-chunks/dist-UEXSNGGQ.js +0 -27
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +0 -22
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +0 -20
- package/dist/_node-chunks/session-id-J4A25UQ6.js +0 -23
- package/dist/manager/_manager-chunks/globals-runtime-BMCaBukU.js +0 -413
- package/dist/manager/_manager-chunks/globals-runtime-BO0pfoqL.js +0 -3414
- package/dist/manager/_manager-chunks/globals-runtime-BZKYJxYC.js +0 -2093
- package/dist/manager/_manager-chunks/globals-runtime-CTyYXvUm.js +0 -41
- package/dist/manager/_manager-chunks/globals-runtime-Dbt08xWQ.js +0 -1960
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
postInstall
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZLBDSC7U.js";
|
|
15
15
|
import {
|
|
16
16
|
RN_FORKBOOK_DIR,
|
|
17
17
|
applyPreviewImportsMap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6O6BHNDO.js";
|
|
19
19
|
import {
|
|
20
20
|
any,
|
|
21
21
|
up2 as up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PRTTCG3N.js";
|
|
23
23
|
import {
|
|
24
24
|
invariant
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FKQHIPUA.js";
|
|
26
26
|
import {
|
|
27
27
|
resolvePackageDir
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JOOZKSBS.js";
|
|
29
29
|
|
|
30
30
|
// src/create/initiate.ts
|
|
31
31
|
import { resolve as resolve3 } from "node:path";
|
|
@@ -419,7 +419,7 @@ var PreflightCheckCommand = class {
|
|
|
419
419
|
This version is behind the latest release, which is: ${latestVersion}!
|
|
420
420
|
You likely ran the init command through npx, which can use a locally cached version.
|
|
421
421
|
|
|
422
|
-
To get the latest, please run: ${CLI_COLORS.cta("npx
|
|
422
|
+
To get the latest, please run: ${CLI_COLORS.cta("npx @aussieljk/forkbook@latest init")}
|
|
423
423
|
You may want to ${CLI_COLORS.cta("CTRL+C")} to stop, and run with the latest version instead.
|
|
424
424
|
`) : isPrerelease ? logger2.warn(`This is a pre-release version: ${currentVersion}`) : logger2.info(`Adding Forkbook version ${currentVersion} to your project`);
|
|
425
425
|
}
|
|
@@ -791,7 +791,7 @@ async function configureMain({
|
|
|
791
791
|
export default config;`;
|
|
792
792
|
frameworkPackage || (mainConfigTemplate = mainConfigTemplate.replace("<<import>>", "").replace("<<type>>", ""), logger8.warn("Could not find framework package name"));
|
|
793
793
|
let mainContents = JSON.stringify(config, null, 2).replace(/['"]%%/g, "").replace(/%%['"]/g, ""), imports = [], finalPrefixes = [...prefixes];
|
|
794
|
-
custom.framework.includes("path.dirname(") && imports.push("import path from 'node:path';"), isTypescript ? imports.push(`import type {
|
|
794
|
+
custom.framework.includes("path.dirname(") && imports.push("import path from 'node:path';"), isTypescript ? imports.push(`import type { ForkbookConfig } from '${frameworkPackage}';`) : finalPrefixes.push(`/** @type { import('${frameworkPackage}').ForkbookConfig } */`);
|
|
795
795
|
let mainJsContents = "";
|
|
796
796
|
mainJsContents = mainConfigTemplate.replace("<<import>>", `${imports.join(`
|
|
797
797
|
|
|
@@ -800,7 +800,7 @@ async function configureMain({
|
|
|
800
800
|
`).replace("<<prefix>>", finalPrefixes.length > 0 ? `${finalPrefixes.join(`
|
|
801
801
|
|
|
802
802
|
`)}
|
|
803
|
-
` : "").replace("<<type>>", isTypescript ? ":
|
|
803
|
+
` : "").replace("<<type>>", isTypescript ? ": ForkbookConfig" : "").replace("<<mainContents>>", mainContents);
|
|
804
804
|
let mainPath = `./${storybookConfigFolder}/main.${isTypescript ? "ts" : "js"}`;
|
|
805
805
|
return await writeFile(mainPath, mainJsContents, { encoding: "utf8" }), { mainPath };
|
|
806
806
|
}
|
|
@@ -1153,7 +1153,7 @@ var ADDON_INSTALLATION_INSTRUCTIONS = {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
/** Configure test addons */
|
|
1155
1155
|
async configureAddons(configDir, addons) {
|
|
1156
|
-
let { postinstallAddon } = await import("./postinstallAddon-
|
|
1156
|
+
let { postinstallAddon } = await import("./postinstallAddon-T4RENREB.js"), task = prompt6.taskLog({
|
|
1157
1157
|
id: "configure-addons",
|
|
1158
1158
|
title: "Configuring addons..."
|
|
1159
1159
|
}), addonResults = /* @__PURE__ */ new Map();
|
|
@@ -1277,9 +1277,9 @@ var FinalizationCommand = class {
|
|
|
1277
1277
|
let foundGitIgnoreFile = up(".gitignore"), rootDirectory = getProjectRoot3();
|
|
1278
1278
|
if (!foundGitIgnoreFile || !foundGitIgnoreFile.includes(rootDirectory))
|
|
1279
1279
|
return;
|
|
1280
|
-
let contents = await fs.readFile(foundGitIgnoreFile, "utf-8"), hasStorybookLog = contents.includes("*storybook.log"), hasStorybookStatic = contents.includes("
|
|
1280
|
+
let contents = await fs.readFile(foundGitIgnoreFile, "utf-8"), hasStorybookLog = contents.includes("*storybook.log"), hasStorybookStatic = contents.includes("forkbook-static"), linesToAdd = [
|
|
1281
1281
|
hasStorybookLog ? "" : "*storybook.log",
|
|
1282
|
-
hasStorybookStatic ? "" : "
|
|
1282
|
+
hasStorybookStatic ? "" : "forkbook-static"
|
|
1283
1283
|
].filter(Boolean).join(`
|
|
1284
1284
|
`);
|
|
1285
1285
|
linesToAdd && await fs.appendFile(foundGitIgnoreFile, `
|
|
@@ -1517,14 +1517,14 @@ var ENTRYPOINT_TEMPLATE_DIR = join3(
|
|
|
1517
1517
|
};
|
|
1518
1518
|
|
|
1519
1519
|
// src/create/generators/REACT_NATIVE/generateScripts.ts
|
|
1520
|
-
var FORKBOOK_ENV_ASSIGNMENT = "FORKBOOK_ENABLED=true", FORKBOOK_ENV_PREFIX = `cross-env ${FORKBOOK_ENV_ASSIGNMENT}`, FORKBOOK_ENV_PATTERN = /(?:^|\s)FORKBOOK_ENABLED=/, CROSS_ENV_PREFIX_PATTERN = /^(cross-env(?:-shell)?\s+)/,
|
|
1520
|
+
var FORKBOOK_ENV_ASSIGNMENT = "FORKBOOK_ENABLED=true", FORKBOOK_ENV_PREFIX = `cross-env ${FORKBOOK_ENV_ASSIGNMENT}`, FORKBOOK_ENV_PATTERN = /(?:^|\s)FORKBOOK_ENABLED=/, CROSS_ENV_PREFIX_PATTERN = /^(cross-env(?:-shell)?\s+)/, withForkbookEnv = (scriptValue) => {
|
|
1521
1521
|
let normalizedScriptValue = scriptValue.trim();
|
|
1522
1522
|
return FORKBOOK_ENV_PATTERN.test(normalizedScriptValue) ? normalizedScriptValue : CROSS_ENV_PREFIX_PATTERN.test(normalizedScriptValue) ? normalizedScriptValue.replace(CROSS_ENV_PREFIX_PATTERN, `$1${FORKBOOK_ENV_ASSIGNMENT} `) : `${FORKBOOK_ENV_PREFIX} ${normalizedScriptValue}`.trim();
|
|
1523
1523
|
}, deriveStorybookPlatformScripts = (scripts) => {
|
|
1524
1524
|
let scriptsToAdd = {}, missingBaseScripts = [], iosScript = typeof scripts?.ios == "string" ? scripts.ios.trim() : "";
|
|
1525
|
-
iosScript ? scriptsToAdd["
|
|
1525
|
+
iosScript ? scriptsToAdd["forkbook:ios"] = withForkbookEnv(iosScript) : missingBaseScripts.push("ios");
|
|
1526
1526
|
let androidScript = typeof scripts?.android == "string" ? scripts.android.trim() : "";
|
|
1527
|
-
return androidScript ? scriptsToAdd["
|
|
1527
|
+
return androidScript ? scriptsToAdd["forkbook:android"] = withForkbookEnv(androidScript) : missingBaseScripts.push("android"), { scriptsToAdd, missingBaseScripts };
|
|
1528
1528
|
};
|
|
1529
1529
|
|
|
1530
1530
|
// src/create/generators/REACT_NATIVE/metroConfig.ts
|
|
@@ -1584,7 +1584,7 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
return !1;
|
|
1587
|
-
}, isModuleExportsTarget = (left) => t.isMemberExpression(left) && t.isIdentifier(left.object, { name: "module" }) && t.isIdentifier(left.property, { name: "exports" }),
|
|
1587
|
+
}, isModuleExportsTarget = (left) => t.isMemberExpression(left) && t.isIdentifier(left.object, { name: "module" }) && t.isIdentifier(left.property, { name: "exports" }), isWithForkbookCall = (node, withForkbookLocalName) => t.isCallExpression(node) && t.isIdentifier(node.callee, { name: withForkbookLocalName }), parseConfig = (source) => recast.parse(source, {
|
|
1588
1588
|
parser: {
|
|
1589
1589
|
parse(code) {
|
|
1590
1590
|
return parser.parse(code, {
|
|
@@ -1605,23 +1605,23 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1605
1605
|
return FORKBOOK_PACKAGE_PATTERNS.some((pattern) => source.includes(pattern));
|
|
1606
1606
|
}
|
|
1607
1607
|
return !1;
|
|
1608
|
-
},
|
|
1608
|
+
}, hasWithForkbookBinding = (program) => {
|
|
1609
1609
|
for (let statement of program.body) {
|
|
1610
|
-
if (t.isImportDeclaration(statement) && statement.source.value === "@
|
|
1611
|
-
let
|
|
1612
|
-
(specifier) => t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, { name: "
|
|
1610
|
+
if (t.isImportDeclaration(statement) && statement.source.value === "@aussieljk/forkbook/react-native/metro/withForkbook") {
|
|
1611
|
+
let withForkbookSpecifier = statement.specifiers.find(
|
|
1612
|
+
(specifier) => t.isImportSpecifier(specifier) && t.isIdentifier(specifier.imported, { name: "withForkbook" })
|
|
1613
1613
|
);
|
|
1614
|
-
if (
|
|
1615
|
-
return
|
|
1614
|
+
if (withForkbookSpecifier && t.isImportSpecifier(withForkbookSpecifier))
|
|
1615
|
+
return withForkbookSpecifier.local.name;
|
|
1616
1616
|
}
|
|
1617
1617
|
if (t.isVariableDeclaration(statement))
|
|
1618
1618
|
for (let declaration of statement.declarations) {
|
|
1619
1619
|
if (!t.isObjectPattern(declaration.id) || !t.isCallExpression(declaration.init) || !t.isIdentifier(declaration.init.callee, { name: "require" }))
|
|
1620
1620
|
continue;
|
|
1621
1621
|
let [firstArgument] = declaration.init.arguments;
|
|
1622
|
-
if (t.isStringLiteral(firstArgument) && firstArgument.value === "@
|
|
1622
|
+
if (t.isStringLiteral(firstArgument) && firstArgument.value === "@aussieljk/forkbook/react-native/metro/withForkbook") {
|
|
1623
1623
|
for (let property of declaration.id.properties)
|
|
1624
|
-
if (t.isObjectProperty(property) && t.isIdentifier(property.key, { name: "
|
|
1624
|
+
if (t.isObjectProperty(property) && t.isIdentifier(property.key, { name: "withForkbook" }) && t.isIdentifier(property.value))
|
|
1625
1625
|
return property.value.name;
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
@@ -1643,11 +1643,11 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1643
1643
|
let fileLeading = from.leadingComments.filter(isFileLeading);
|
|
1644
1644
|
fileLeading.length > 0 && (to.leadingComments = [...fileLeading, ...to.leadingComments ?? []], from.leadingComments = from.leadingComments.filter((c) => !isFileLeading(c)));
|
|
1645
1645
|
}
|
|
1646
|
-
},
|
|
1646
|
+
}, injectWithForkbookImport = (program, useEsmImport) => {
|
|
1647
1647
|
if (useEsmImport) {
|
|
1648
1648
|
let importDeclaration = t.importDeclaration(
|
|
1649
|
-
[t.importSpecifier(t.identifier("
|
|
1650
|
-
t.stringLiteral("@
|
|
1649
|
+
[t.importSpecifier(t.identifier("withForkbook"), t.identifier("withForkbook"))],
|
|
1650
|
+
t.stringLiteral("@aussieljk/forkbook/react-native/metro/withForkbook")
|
|
1651
1651
|
), lastImportIndex = [...program.body].reverse().findIndex((statement) => t.isImportDeclaration(statement));
|
|
1652
1652
|
if (lastImportIndex === -1) {
|
|
1653
1653
|
let insertAt2 = getBodyInsertionIndex(program), nodeAtInsert2 = program.body[insertAt2];
|
|
@@ -1661,10 +1661,10 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1661
1661
|
let requireDeclaration = t.variableDeclaration("const", [
|
|
1662
1662
|
t.variableDeclarator(
|
|
1663
1663
|
t.objectPattern([
|
|
1664
|
-
t.objectProperty(t.identifier("
|
|
1664
|
+
t.objectProperty(t.identifier("withForkbook"), t.identifier("withForkbook"), !1, !0)
|
|
1665
1665
|
]),
|
|
1666
1666
|
t.callExpression(t.identifier("require"), [
|
|
1667
|
-
t.stringLiteral("@
|
|
1667
|
+
t.stringLiteral("@aussieljk/forkbook/react-native/metro/withForkbook")
|
|
1668
1668
|
])
|
|
1669
1669
|
)
|
|
1670
1670
|
]), insertAt = getBodyInsertionIndex(program), nodeAtInsert = program.body[insertAt];
|
|
@@ -1676,14 +1676,14 @@ var METRO_CONFIG_CANDIDATES = ["metro.config.ts", "metro.config.js", "metro.conf
|
|
|
1676
1676
|
* ${METRO_SETUP_DOCS_LINK}
|
|
1677
1677
|
*/
|
|
1678
1678
|
${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
1679
|
-
let ast = parseConfig(source), program = ast.program,
|
|
1679
|
+
let ast = parseConfig(source), program = ast.program, withForkbookLocalName = hasWithForkbookBinding(program) ?? "withForkbook", matchedExport = !1, changed = !1;
|
|
1680
1680
|
for (let statement of program.body) {
|
|
1681
1681
|
if (t.isExpressionStatement(statement) && t.isAssignmentExpression(statement.expression)) {
|
|
1682
1682
|
if (!isModuleExportsTarget(statement.expression.left))
|
|
1683
1683
|
continue;
|
|
1684
|
-
if (matchedExport = !0,
|
|
1684
|
+
if (matchedExport = !0, isWithForkbookCall(statement.expression.right, withForkbookLocalName))
|
|
1685
1685
|
return { action: "already-configured" };
|
|
1686
|
-
statement.expression.right = t.callExpression(t.identifier(
|
|
1686
|
+
statement.expression.right = t.callExpression(t.identifier(withForkbookLocalName), [
|
|
1687
1687
|
statement.expression.right
|
|
1688
1688
|
]), changed = !0;
|
|
1689
1689
|
continue;
|
|
@@ -1697,16 +1697,16 @@ ${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
|
1697
1697
|
statement.declaration.generator,
|
|
1698
1698
|
statement.declaration.async
|
|
1699
1699
|
);
|
|
1700
|
-
functionExpression.returnType = statement.declaration.returnType ?? null, functionExpression.typeParameters = statement.declaration.typeParameters ?? null, statement.declaration = t.callExpression(t.identifier(
|
|
1700
|
+
functionExpression.returnType = statement.declaration.returnType ?? null, functionExpression.typeParameters = statement.declaration.typeParameters ?? null, statement.declaration = t.callExpression(t.identifier(withForkbookLocalName), [
|
|
1701
1701
|
functionExpression
|
|
1702
1702
|
]), changed = !0;
|
|
1703
1703
|
continue;
|
|
1704
1704
|
}
|
|
1705
1705
|
if (!t.isExpression(statement.declaration))
|
|
1706
1706
|
return { action: "unsupported" };
|
|
1707
|
-
if (
|
|
1707
|
+
if (isWithForkbookCall(statement.declaration, withForkbookLocalName))
|
|
1708
1708
|
return { action: "already-configured" };
|
|
1709
|
-
statement.declaration = t.callExpression(t.identifier(
|
|
1709
|
+
statement.declaration = t.callExpression(t.identifier(withForkbookLocalName), [
|
|
1710
1710
|
statement.declaration
|
|
1711
1711
|
]), changed = !0;
|
|
1712
1712
|
}
|
|
@@ -1715,9 +1715,9 @@ ${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
|
1715
1715
|
return { action: "unsupported" };
|
|
1716
1716
|
if (!changed)
|
|
1717
1717
|
return { action: "already-configured" };
|
|
1718
|
-
if (!
|
|
1718
|
+
if (!hasWithForkbookBinding(program)) {
|
|
1719
1719
|
let shouldUseEsmImport = usesEsmSyntax(program) || filePath.endsWith(".mjs");
|
|
1720
|
-
|
|
1720
|
+
injectWithForkbookImport(program, shouldUseEsmImport);
|
|
1721
1721
|
}
|
|
1722
1722
|
return {
|
|
1723
1723
|
action: "updated",
|
|
@@ -1806,7 +1806,7 @@ ${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
|
1806
1806
|
return {
|
|
1807
1807
|
status: "already-configured",
|
|
1808
1808
|
filePath,
|
|
1809
|
-
notes: ["Metro config already appears to be wrapped with
|
|
1809
|
+
notes: ["Metro config already appears to be wrapped with withForkbook."]
|
|
1810
1810
|
};
|
|
1811
1811
|
if (transformResult.action === "unsupported") {
|
|
1812
1812
|
let fallbackSource = prependMetroFallbackComment(source);
|
|
@@ -1819,7 +1819,7 @@ ${source}`, transformMetroConfigSource = (source, filePath) => {
|
|
|
1819
1819
|
return transformResult.code !== source && await writeFile3(filePath, transformResult.code, "utf-8"), {
|
|
1820
1820
|
status: "updated",
|
|
1821
1821
|
filePath,
|
|
1822
|
-
notes: ["Metro config was updated with
|
|
1822
|
+
notes: ["Metro config was updated with withForkbook wrapper."]
|
|
1823
1823
|
};
|
|
1824
1824
|
} catch (error) {
|
|
1825
1825
|
let fallbackSource = prependMetroFallbackComment(source);
|
|
@@ -1919,7 +1919,7 @@ var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypo
|
|
|
1919
1919
|
skipGenerator: !0,
|
|
1920
1920
|
storybookCommand: null,
|
|
1921
1921
|
shouldRunDev: !1
|
|
1922
|
-
// React Native is started via platform scripts (see postConfigure), not `
|
|
1922
|
+
// React Native is started via platform scripts (see postConfigure), not `forkbook dev`
|
|
1923
1923
|
};
|
|
1924
1924
|
},
|
|
1925
1925
|
postInstall: async ({ packageManager }) => {
|
|
@@ -1933,7 +1933,7 @@ var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypo
|
|
|
1933
1933
|
})(), scriptWarningSummary = (() => {
|
|
1934
1934
|
let missing = lastScriptDerivationResult?.missingBaseScripts ?? [];
|
|
1935
1935
|
return missing.length === 0 ? null : `Could not infer ${missing.join(", ")} app scripts from package.json. To launch Forkbook manually, set FORKBOOK_ENABLED=true when running your app scripts.`;
|
|
1936
|
-
})(), metroCodemodSummary = lastMetroCodemodResult ? lastMetroCodemodResult.status === "updated" ? "Metro config was updated automatically with
|
|
1936
|
+
})(), metroCodemodSummary = lastMetroCodemodResult ? lastMetroCodemodResult.status === "updated" ? "Metro config was updated automatically with withForkbook(...)." : lastMetroCodemodResult.status === "already-configured" ? "Metro config already appears to be configured for Forkbook." : lastMetroCodemodResult.status === "skipped-existing-storybook-import" ? "Metro config already contains Forkbook imports, so auto-modification was skipped." : lastMetroCodemodResult.status === "fallback-commented" ? "Metro config could not be transformed automatically; guidance was added to your Metro config file." : "No Metro config file was selected; please update Metro manually." : "Metro config could not be evaluated automatically.", metroStatus = lastMetroCodemodResult?.status, showWithForkbookManualSnippet = !lastMetroCodemodResult || metroStatus === "fallback-commented" || metroStatus === "skipped-missing-file", mayNeedFollowUp = !!scriptWarningSummary || showWithForkbookManualSnippet;
|
|
1937
1937
|
logger13.log(dedent9`
|
|
1938
1938
|
${CLI_COLORS4.success("Forkbook for React Native is set up.")}
|
|
1939
1939
|
|
|
@@ -1947,11 +1947,11 @@ var lastMetroCodemodResult, lastScriptDerivationResult, detectReactNativeEntrypo
|
|
|
1947
1947
|
|
|
1948
1948
|
${CLI_COLORS4.info(" " + metroCodemodSummary + " ")}
|
|
1949
1949
|
|
|
1950
|
-
${
|
|
1951
|
-
If your Metro config still needs wiring, wrap the default export with
|
|
1950
|
+
${showWithForkbookManualSnippet ? dedent9`
|
|
1951
|
+
If your Metro config still needs wiring, wrap the default export with withForkbook:
|
|
1952
1952
|
|
|
1953
|
-
${CLI_COLORS4.info(" const {
|
|
1954
|
-
${CLI_COLORS4.info(" module.exports =
|
|
1953
|
+
${CLI_COLORS4.info(" const { withForkbook } = require('@aussieljk/forkbook/react-native/metro/withForkbook'); ")}
|
|
1954
|
+
${CLI_COLORS4.info(" module.exports = withForkbook(defaultConfig); ")}
|
|
1955
1955
|
` : ""}
|
|
1956
1956
|
${scriptWarningSummary ? `${CLI_COLORS4.warning(scriptWarningSummary)}
|
|
1957
1957
|
` : ""}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// package.json
|
|
14
|
+
var version = "0.0.1-9";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
version
|
|
18
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YSVJU5VZ.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/yaml/dist/nodes/identity.js
|
|
18
18
|
var require_identity = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ var require = CJS_COMPAT_NODE_MODULE_j88npgqhy9.createRequire(import.meta.url);
|
|
|
14
14
|
var RESTART_GUIDANCE = "From your project directory, restart Forkbook (for example `npx forkbook dev`) and re-run this command from there.";
|
|
15
15
|
function formatNoInstance(records) {
|
|
16
16
|
let lines = [
|
|
17
|
-
"No running Forkbook was found for this project. Start it first (for example `npm run
|
|
17
|
+
"No running Forkbook was found for this project. Start it first (for example `npm run forkbook`), then retry with `--attach`."
|
|
18
18
|
];
|
|
19
19
|
if (records.length > 0) {
|
|
20
20
|
lines.push(
|
|
@@ -42,7 +42,7 @@ function formatOldServer(version) {
|
|
|
42
42
|
return `Restart Forkbook (v${version}+) to enable attach. The running instance was started with an older Forkbook that does not publish a channel token.`;
|
|
43
43
|
}
|
|
44
44
|
function formatConnectionFailed(record) {
|
|
45
|
-
return `Could not connect to the Forkbook at ${record.url}. The instance registry may be stale \u2014 if that Forkbook is no longer running, start it again (for example \`npm run
|
|
45
|
+
return `Could not connect to the Forkbook at ${record.url}. The instance registry may be stale \u2014 if that Forkbook is no longer running, start it again (for example \`npm run forkbook\`) and retry.`;
|
|
46
46
|
}
|
|
47
47
|
function formatInstallationMismatch({
|
|
48
48
|
callerPath,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_jjck69g4sd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_jjck69g4sd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_jjck69g4sd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_jjck69g4sd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_jjck69g4sd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_jjck69g4sd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Forkbook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QE3NKWUX.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YSVJU5VZ.js";
|
|
20
20
|
|
|
21
21
|
// ../../node_modules/sisteransi/src/index.js
|
|
22
22
|
var require_src = __commonJS({
|