You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pnpm examples follows symlinks out of a game and can replace .examples/.data #297
pnpm examples (scripts/examples.mjs) has two edge cases in how it copies a game:
It copies with cpSync(..., { dereference: true }) (examples.mjs#L134), so a symlink inside a game is followed wherever it points: a link to a large or parent folder makes the copy huge or recurse until it fails.
It replaces .examples/<name> (examples.mjs#L131), and pnpm example keeps the editor's data folder in .examples/.data (example.mjs#L31). A game folder named .data would replace that data folder.
Found by the review of #295. The engine's scripts/examples.ts (NanoForge-dev/Engine#516) follows symlinks the same way.
Activity