@platformize/cli
v0.1.1
Published
CLI tool for Platformize configuration, resolution diagnostics, and checks
Readme
@platformize/cli
Command line interface for Platformize configuration, resolution diagnostics, and file inspection built with commandstruct.
Installation
npm install -D @platformize/cliCommands
platformize init
Initializes Platformize configuration by updating tsconfig.json moduleSuffixes and logging recommended vite.config.ts options.
npx platformize init --preset tauri --platform macosplatformize check
Scans source files in a directory and reports which platform-specific file variant resolves for each base module.
npx platformize check --dir ./src --platform macos --preset tauriOutput:
Platformize
Platform: macos
Fallback chain: macos -> desktop -> native -> base
✓ ./src/components/WindowControls.macos.tsx
⚠ ./src/App.tsx not specialized for macos
Using ./src/App.tsxplatformize resolve
Resolves a specific module specifier for a target platform.
npx platformize resolve ./src/components/WindowControls --platform windowsOutput:
./src/components/WindowControls.windows.tsx