Files
TiagoVal97--cheatspecter/scripts/dev-bundle.mjs
T
Tiago Valente 814e5bdfc5 CheatSpecter 0.4.0
- Find: text search, grouped search, undo, went up/down by, where to search, before/after compare
- Debug tab: breakpoints, stepping, registers, stack, threads, what code touches, structure compare, pointer re-check
- Engine tab: Unreal, Unity, Godot, GameMaker and C++ class names; hidden settings and switches
- Code cheats with labels, variables, references and shared code; rule builder; script commands
- Cheats kept on by the PS5 without the browser
- Learn section with twelve lessons and an in-page practice game
- Section (master code) community cheats; SHN and MC4 export
- Groups, dropdowns, hotkeys, first-cheat guide, re-find after update, restore everything
- MCP server: 25 tools
- Quick start, wiki, contributor and security guides, changelog
2026-10-10 12:06:50 -07:00

22 lines
911 B
JavaScript

// Bundles one TypeScript entry file and everything it imports into a single
// .mjs that plain Node can run anywhere, for trying library code against a
// real console from a machine that does not have this project checked out.
//
// node scripts/dev-bundle.mjs path/to/entry.ts out.mjs
//
// iced-x86 (the disassembler) is left as an import, because it loads a
// WebAssembly file from beside itself.
import path from 'node:path';
import { rolldown } from 'rolldown';
const [entry, out] = process.argv.slice(2);
if (!entry || !out) {
console.error('Usage: node scripts/dev-bundle.mjs <entry.ts> <out.mjs>');
process.exit(1);
}
const bundle = await rolldown({ input: path.resolve(entry), platform: 'node', external: ['iced-x86'], logLevel: 'warn' });
await bundle.write({ file: path.resolve(out), format: 'esm', codeSplitting: false });
await bundle.close();
console.log(`Bundled ${entry} -> ${out}`);