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.

24 lines (23 loc) 1.76 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.warnExpoExecutorDeprecation = warnExpoExecutorDeprecation; exports.expoSchemaDeprecationMessage = expoSchemaDeprecationMessage; exports.warnExpoExecutorGenerating = warnExpoExecutorGenerating; const devkit_1 = require("@nx/devkit"); // TODO(v24): Remove the @nx/expo:build, :export, :install, :prebuild, :run, // :serve, :start, and :submit executors. The inferred plugin // (@nx/expo/plugin) and the convert-to-inferred generator stay supported. // (`@nx/expo:build-list`, `:sync-deps`, `:update`, and `:ensure-symlink` // are not covered by `convert-to-inferred` and stay as-is.) function buildMessage(executorName) { return `The \`@nx/expo:${executorName}\` executor is deprecated and will be removed in Nx v24. Run \`nx g @nx/expo:convert-to-inferred\` to migrate to the \`@nx/expo/plugin\` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.`; } function warnExpoExecutorDeprecation(executorName) { devkit_1.logger.warn(buildMessage(executorName)); } function expoSchemaDeprecationMessage(executorName) { return buildMessage(executorName); } function warnExpoExecutorGenerating() { devkit_1.logger.warn('Generating targets that use the deprecated `@nx/expo:build`, `@nx/expo:export`, `@nx/expo:install`, `@nx/expo:prebuild`, `@nx/expo:run`, `@nx/expo:serve`, `@nx/expo:start`, and `@nx/expo:submit` executors. These executors will be removed in Nx v24. Run `nx g @nx/expo:convert-to-inferred` next to migrate these targets to the `@nx/expo/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.'); }