UNPKG

@nx/expo

Version:

The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.

17 lines (16 loc) 735 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createAiInstructionsForExpo54; const path_1 = require("path"); const fs_1 = require("fs"); async function createAiInstructionsForExpo54(tree) { const pathToAiInstructions = (0, path_1.join)(__dirname, 'files', 'ai-instructions-for-expo-54.md'); if (!(0, fs_1.existsSync)(pathToAiInstructions)) { return; } const contents = (0, fs_1.readFileSync)(pathToAiInstructions, 'utf-8'); tree.write('tools/ai-migrations/MIGRATE_EXPO_54.md', contents); return [ `We created 'tools/ai-migrations/MIGRATE_EXPO_54.md' with instructions for an AI Agent to help migrate your Expo projects to Expo SDK 54.`, ]; }