UNPKG

917 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = printDeprecationWarning;
7
8function _chalk() {
9 const data = _interopRequireDefault(require("chalk"));
10
11 _chalk = function () {
12 return data;
13 };
14
15 return data;
16}
17
18function _cliTools() {
19 const data = require("@react-native-community/cli-tools");
20
21 _cliTools = function () {
22 return data;
23 };
24
25 return data;
26}
27
28function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
30function printDeprecationWarning(command) {
31 _cliTools().logger.warn(`Calling ${_chalk().default.bold(command)} is deprecated in favor of autolinking. It will be removed in the next major release.\nAutolinking documentation: ${_chalk().default.dim.underline('https://github.com/react-native-community/cli/blob/master/docs/autolinking.md')}`);
32}
33
34//# sourceMappingURL=printDeprecationWarning.js.map
\No newline at end of file