File tree Expand file tree Collapse file tree 4 files changed +4
-50
lines changed
packages/create-react-native-library Expand file tree Collapse file tree 4 files changed +4
-50
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ async function create() {
101101 await alignDependencyVersionsWithExampleApp ( rootPackageJson , folder ) ;
102102 }
103103
104- if ( ! answers . local && answers . tools . length > 0 ) {
104+ if ( ! answers . local ) {
105105 spinner . text = 'Configuring tools' ;
106106
107107 await configureTools ( {
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import fs from 'fs-extra';
22import path from 'node:path' ;
33import { applyTemplate , type TemplateConfiguration } from '../template' ;
44import sortObjectKeys from './sortObjectKeys' ;
5+ import { SUPPORTED_REACT_NATIVE_VERSION } from '../constants' ;
56
67type Tool = {
78 name : string ;
@@ -35,7 +36,7 @@ const ESLINT = {
3536 '@eslint/compat' : '^1.3.2' ,
3637 '@eslint/eslintrc' : '^3.3.1' ,
3738 '@eslint/js' : '^9.35.0' ,
38- '@react-native/eslint-config' : '^0.81.1' ,
39+ '@react-native/eslint-config' : SUPPORTED_REACT_NATIVE_VERSION ,
3940 'eslint-config-prettier' : '^10.1.8' ,
4041 'eslint-plugin-prettier' : '^5.5.4' ,
4142 'eslint' : '^9.35.0' ,
@@ -134,7 +135,7 @@ export const AVAILABLE_TOOLS = {
134135} as const satisfies Record < string , Tool > ;
135136
136137const REQUIRED_TOOLS = {
137- turbo : TURBOREPO ,
138+ turborepo : TURBOREPO ,
138139} as const satisfies Record < string , Tool > ;
139140
140141const ALL_TOOLS = {
Original file line number Diff line number Diff line change 6969 "registry" : " https://registry.npmjs.org/"
7070 },
7171 "devDependencies" : {
72- <% if (example === 'vanilla' && (project.moduleConfig === 'turbo-modules' || project.viewConfig === 'fabric-view')) { -%>
73- "@react-native-community/cli" : " 20.0.1" ,
74- <% } -%>
7572 "@react-native/babel-preset" : " 0.81.1" ,
7673 "@types/react" : " ^19.1.12" ,
7774 "del-cli" : " ^6.0.0" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments