@codeam/shared 2.76.32 → 2.76.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3296,14 +3296,23 @@ Rules:
|
|
|
3296
3296
|
otherwise "python3".
|
|
3297
3297
|
- Prefer binding to 0.0.0.0 \u2014 most frameworks default to localhost which the tunnel cannot reach.
|
|
3298
3298
|
- For Expo: framework="Expo", command="npx", args=["expo","start","--tunnel"], port=8081, notes="Scan QR with Expo Go".
|
|
3299
|
+
- For PHP (composer.json / index.php): use PHP's built-in server bound to 0.0.0.0 with the
|
|
3300
|
+
web root as docroot \u2014 command="php", args=["-S","0.0.0.0:8080","-t","public"] (Yii3,
|
|
3301
|
+
Symfony, Slim, Mezzio; use the real docroot, e.g. "web" for Yii2, "." for plain PHP),
|
|
3302
|
+
port=8080, ready_pattern="Development Server". Laravel: command="php",
|
|
3303
|
+
args=["artisan","serve","--host=0.0.0.0","--port=8000"], port=8000,
|
|
3304
|
+
ready_pattern="Server running". Do NOT use "composer serve", "symfony serve" or a
|
|
3305
|
+
"./yii serve" wrapper \u2014 call php directly.
|
|
3299
3306
|
- If no dev server applies (CLI library, lambda, batch script): {"framework":"unsupported","notes":"<reason>"}.
|
|
3300
3307
|
|
|
3301
3308
|
CRITICAL \u2014 setup_commands:
|
|
3302
3309
|
- DO NOT include an install command (npm install, pnpm install, yarn install,
|
|
3303
|
-
yarn, bun install) in setup_commands.
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3310
|
+
yarn, bun install, composer install) in setup_commands. Pre-flight installers
|
|
3311
|
+
run BEFORE setup_commands: composer install whenever composer.json exists and
|
|
3312
|
+
vendor/ is missing, and a lockfile-aware Node installer that picks the
|
|
3313
|
+
correct package manager from the lockfile present (pnpm-lock.yaml -> pnpm,
|
|
3314
|
+
yarn.lock -> yarn, bun.lockb -> bun, else npm). Emitting an install here
|
|
3315
|
+
either duplicates that work or, worse,
|
|
3307
3316
|
uses the WRONG package manager on top of node_modules just populated by the
|
|
3308
3317
|
pre-flight, which crashes (e.g. npm errors with "Cannot read properties of
|
|
3309
3318
|
null (reading 'matches')" when run over pnpm's .pnpm/ layout).
|