@nx/expo
Version:
17 lines (16 loc) • 735 B
JavaScript
;
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.`,
];
}