mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
29fb2a8e90
Summary: Bump Prettier to use version 1.13.4 All code changes are caused by running Prettier and should only affect files that have an `format` header. All other changes caused by yarn. Reviewed By: ryanmce Differential Revision: D8251255 fbshipit-source-id: 0b4445c35f1269d72730f2000002a27c1bc35914
24 lines
654 B
JavaScript
24 lines
654 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
const normalizeProjectName = require('./normalizeProjectName');
|
|
|
|
module.exports = function makeBuildPatch(name) {
|
|
const normalizedProjectName = normalizeProjectName(name);
|
|
const installPattern = new RegExp(
|
|
`\\s{4}(compile)(\\(|\\s)(project)\\(\\\':${normalizedProjectName}\\\'\\)(\\)|\\s)`,
|
|
);
|
|
|
|
return {
|
|
installPattern,
|
|
pattern: /[^ \t]dependencies {(\r\n|\n)/,
|
|
patch: ` compile project(':${normalizedProjectName}')\n`,
|
|
};
|
|
};
|