react-native-macos/scripts
Nick Gerleman 418e95799f Fixup template devDependencies (#35372)
Summary:
Fixes missing/incorrect devDependencies in a newly built app. The previous set did not pull in prettier, causing linting to fail.  There was a peerDependency warning on yarn install. We also saw a separate lint warning at runtime specific to TS 4.9 being pulled in now, so we constrain in that version a bit.

Prettier and preset-env versions match the constraints and lockfiles of other RN packages.

## Changelog

[General] [Fixed] - Fixup template devDependencies

Pull Request resolved: https://github.com/facebook/react-native/pull/35372

Test Plan:
Created a new app targeting 0.71 via `react-native init`.

1. `yarn install --force` no longer shows warnings
2. `prettier` is installed, `yarn lint` no longer fails, and shows no warnings or errors
3. ~Tentatively a test step to add tests against linting in new app, but last time doing that in CircleCI led to timeouts with no output  that I didn't have time to debug, so maybe that's fixed now? �‍♀️.~ (edit: still hangs)

Reviewed By: NickGerleman

Differential Revision: D41363021

Pulled By: lunaleaps

fbshipit-source-id: d6163b01e8934d75a231fa0fd849d7bde7b3500c
2022-11-16 18:47:42 -08:00
..
__tests__ hermes-utils.js: Add test coverage 2022-11-01 18:27:39 -07:00
circleci fix(release scripts): backport fixes from 0.71 into main (#35258) 2022-11-08 10:03:29 -08:00
cocoapods Fix avoid forcing podspec versions (#35274) 2022-11-14 08:31:30 -08:00
codegen react-native-codegen: Enable C++ TurboModule generation in OpenSource builds (#35211) 2022-11-07 04:22:35 -08:00
hermes Remove version from the tarball (#35285) 2022-11-14 08:31:30 -08:00
react_native_pods_utils infra(e2e): rework local E2E script (#34513) 2022-10-04 04:56:44 -07:00
versiontemplates Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
xcode Export REACT_NATIVE_PATH and fix find-node-for-xcode.sh fallback behavior (#33674) 2022-04-21 06:59:17 -07:00
.npmignore Move TypeScript declarations into react-native (#34614) 2022-09-19 12:26:00 -07:00
.packager.env Move YGStyle to seperate file and add constructors 2018-02-20 05:55:36 -08:00
.tests.env Bump OSS Android build to SDK 33 (#35196) 2022-11-08 19:12:02 -08:00
android-e2e-test.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
android-setup.sh RN: Make `retry3` Portable in CI Scripts 2022-09-28 10:57:07 -07:00
bump-oss-version.js Build the React Native NPM package when git is not available (#34694) 2022-09-16 02:58:36 -07:00
compose-source-maps.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
download-kotlin-compiler-with-buck.sh Download kotlin compiler JARs for Buck instead of checking them in (#33209) 2022-03-02 13:04:49 -08:00
find-node-for-xcode.sh Reintroduce `find-node.sh` as mitigation measure (#33538) 2022-04-04 02:43:07 -07:00
generate-api-docs.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
generate-codegen-artifacts.js infra(e2e): rework local E2E script (#34513) 2022-10-04 04:56:44 -07:00
generate-provider-cli.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
generate-specs-cli.js Update CodeGen to leverage the `outputDir` as suggested in diff review (#33729) 2022-05-04 04:04:10 -07:00
ios-configure-glog.sh fix (glog script): remove invalid param from sed (#33967) 2022-06-17 11:58:08 -07:00
launchPackager.bat Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
launchPackager.command Use `NODE_BINARY` from `.xcode.env` when running packager from Xcode (#34121) 2022-07-12 05:52:22 -07:00
lint-java.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
native_modules.rb Move cocoapods cli native_modules require from template to rn scripts (#34215) 2022-07-19 09:11:08 -07:00
node-binary.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
objc-test.sh fix: Make WebSocketTests work in CI (#33721) 2022-04-28 08:53:24 -07:00
packager-reporter.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
packager.sh Use readlink instead of realpath in packager.sh (#34145) 2022-07-20 07:06:18 -07:00
prepare-package-for-release.js Circle CI: Upload both tarballs to releases, dry-run the release workflow on every commit (#35015) 2022-10-19 17:54:22 -07:00
process-podspecs.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
publish-npm.js fix(release scripts): backport fixes from 0.71 into main (#35258) 2022-11-08 10:03:29 -08:00
react-native-xcode.sh introduce SKIP_BUNDLING_METRO_IP to skip ip.txt generation (#31829) 2022-10-10 01:26:29 -07:00
react_native_pods.rb TurboModules: Simplify React-bridging usage (#35212) 2022-11-07 07:24:11 -08:00
release-utils.js Invoke closeAndReleaseSonatypeStagingRepository in the publish gradle invocation (#35272) 2022-11-10 08:57:07 -08:00
retry3 RN: Make `retry3` Portable in CI Scripts 2022-09-28 10:57:07 -07:00
run-android-ci-instrumentation-tests.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run-android-emulator.sh Use realpath instead of readlink 2022-02-22 02:23:02 -08:00
run-android-local-integration-tests.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run-android-local-unit-tests.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run-ci-e2e-tests.js Fixup template devDependencies (#35372) 2022-11-16 18:47:42 -08:00
run-ci-javascript-tests.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run-instrumentation-tests-via-adb-shell.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
run_ruby_tests.sh Run script phases tests in CI and Sandcastle (#33802) 2022-05-11 10:00:28 -07:00
scm-utils.js Do not depend on an ENV variable when publishing and setting the RN version (#34746) 2022-09-22 07:34:50 -07:00
set-rn-template-version.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
set-rn-version.js Do not depend on an ENV variable when publishing and setting the RN version (#34746) 2022-09-22 07:34:50 -07:00
setup-verdaccio.js Use verdaccio for the template e2e test (#34577) 2022-09-22 05:02:37 -07:00
sync-css-layout.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
test-e2e-local-clean.js fix(local-e2e-script): add logic to handle maven local for iOS and Android accordingly (#35104) 2022-11-02 08:23:50 -07:00
test-e2e-local.js fix(local-e2e-script): add logic to handle maven local for iOS and Android accordingly (#35104) 2022-11-02 08:23:50 -07:00
test-manual-e2e.sh Fix test-manual-e2e on Android/Hermes for New App Template (#34294) 2022-07-28 06:23:11 -07:00
testing-utils.js infra(e2e): rework local E2E script (#34513) 2022-10-04 04:56:44 -07:00
try-n-times.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
update-ruby.sh Build the React Native NPM package when git is not available (#34694) 2022-09-16 02:58:36 -07:00
update_podfile_lock.sh Use realpath instead of readlink 2022-02-22 02:23:02 -08:00
validate-android-device-env.sh Update CONTRIBUTING.md, replace wiki links (#34035) 2022-06-21 19:30:23 -07:00
validate-android-sdk.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
validate-android-test-env.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
validate-ios-test-env.sh bump Node references from 12/14 to 14/16 (#32980) 2022-01-28 05:07:18 -08:00
version-utils.js Build the React Native NPM package when git is not available (#34694) 2022-09-16 02:58:36 -07:00