Skip to content

Commit 191f3a5

Browse files
committed
fix: fix configuring turborepo
1 parent 4c80678 commit 191f3a5

File tree

4 files changed

+4
-50
lines changed

4 files changed

+4
-50
lines changed

packages/create-react-native-library/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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({

packages/create-react-native-library/src/utils/configureTools.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import fs from 'fs-extra';
22
import path from 'node:path';
33
import { applyTemplate, type TemplateConfiguration } from '../template';
44
import sortObjectKeys from './sortObjectKeys';
5+
import { SUPPORTED_REACT_NATIVE_VERSION } from '../constants';
56

67
type 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

136137
const REQUIRED_TOOLS = {
137-
turbo: TURBOREPO,
138+
turborepo: TURBOREPO,
138139
} as const satisfies Record<string, Tool>;
139140

140141
const ALL_TOOLS = {

packages/create-react-native-library/templates/common/$package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@
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",

packages/create-react-native-library/templates/native-common-example/turbo.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)