raycast-ext-windows-migrate
v0.0.2
Published
A CLI tool to migrate Raycast extensions to support Windows platform
Maintainers
Readme
Raycast Extension Windows Migrate Tool
An automation tool for migrating Raycast extensions to support Windows platform.
Features
- ✅ Automatically check if the project uses AppleScript or Mac-specific commands
- ✅ Update all dependencies to the latest version
- ✅ Configure ESLint to the latest format
- ✅ Update package.json to add Windows platform support
- ✅ Run lint and build checks
Usage
Run in the root directory of your Raycast extension project:
# npm
npx raycast-ext-windows-migrate@latest
# pnpm
pnpm dlx raycast-ext-windows-migrate@latest
# bun
bunx raycast-ext-windows-migrate@latestThe tool will automatically:
- Check for AppleScript and Mac-specific commands usage (will exit if detected)
- Update all dependencies to the latest version
- Update ESLint configuration to the latest format
- Add Windows platform support to package.json
- Run
npx ray lint --fix - Run
npm run build
Flags
-s, --skip-mac-check
Skip the AppleScript and Mac-specific commands check.
Use if you've already implemented cross-platform alternatives.
-h, --help
Show this help message.Post-completion Steps
Verify that step 5 (lint) and step 6 (build) passed successfully
Update CHANGELOG.md: Add a new entry under the title with the following format:
## [Maintenance] - {PR_MERGE_DATE} - Add support for Windows platform. - Bump all dependencies to the latest.Test the extension functionality on Windows
Commit changes and create a Pull Request
Technical Details
This tool is developed with TypeScript and built with tsup, containing the following modules:
checkMacSpecificCode.ts- AppleScript and Mac-specific commands checkupdateDependencies.ts- Dependency updateupdateEslint.ts- ESLint configuration updateupdatePackageJson.ts- package.json update
Development
# Install dependencies
pnpm install
# Development mode (auto recompile)
pnpm run dev
# Build
pnpm run build
# Format code
pnpm run format