Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"@shikijs/transformers": "^3.13.0"
},
"devDependencies": {
"@types/react": "^19.2.2"
"@types/react": "^19.2.14"
}
}
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
"release": "lerna publish"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.0.2",
"@eslint/compat": "^1.2.7",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "^9.22.0",
"@evilmartians/lefthook": "^1.5.0",
"@lerna-lite/cli": "^4.11.0",
"@lerna-lite/publish": "^4.11.1",
"@lerna-lite/run": "^4.11.1",
"@vitest/eslint-plugin": "^1.1.39",
"commitlint": "^17.0.2",
"concurrently": "^7.2.2",
"eslint": "^9.26.0",
"eslint-config-satya164": "^5.1.1",
"globals": "^16.0.0",
"prettier": "^3.5.3",
"@commitlint/config-conventional": "^20.5.0",
"@eslint/compat": "^2.0.3",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.39.4",
"@evilmartians/lefthook": "^2.1.4",
"@lerna-lite/cli": "^4.11.5",
"@lerna-lite/publish": "^4.11.5",
"@lerna-lite/run": "^4.11.5",
"@vitest/eslint-plugin": "^1.6.14",
"commitlint": "^20.5.0",
"concurrently": "^9.2.1",
"eslint": "^9.39.4",
"eslint-config-satya164": "^5.1.8",
"globals": "^17.4.0",
"prettier": "^3.8.1",
"typescript": "^5.8.3"
},
"resolutions": {
Expand Down
38 changes: 19 additions & 19 deletions packages/create-react-native-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,27 @@
"prepare": "babel --extensions .ts,.tsx src --out-dir lib --ignore '**/__tests__/**' --source-maps --delete-dir-on-start"
},
"dependencies": {
"cross-spawn": "^7.0.3",
"dedent": "^0.7.0",
"ejs": "^3.1.8",
"fs-extra": "^10.1.0",
"get-latest-version": "^5.1.0",
"github-username": "^6.0.0",
"kleur": "^4.1.4",
"ora": "^5.4.1",
"cross-spawn": "^7.0.6",
"dedent": "^1.7.2",
"ejs": "^5.0.1",
"fs-extra": "^11.3.4",
"get-latest-version": "^6.0.1",
"github-username": "^9.0.0",
"kleur": "^4.1.5",
"ora": "^9.3.0",
"pigment": "^0.4.1",
"validate-npm-package-name": "^4.0.0"
"validate-npm-package-name": "^7.0.2"
},
"devDependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.2",
"@babel/preset-typescript": "^7.24.7",
"@commitlint/config-conventional": "^17.0.2",
"@types/cross-spawn": "^6.0.2",
"@types/dedent": "^0.7.0",
"@types/ejs": "^3.1.1",
"@types/fs-extra": "^9.0.13",
"@types/validate-npm-package-name": "^3.0.3"
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.2",
"@babel/preset-typescript": "^7.28.5",
"@commitlint/config-conventional": "^20.5.0",
"@types/cross-spawn": "^6.0.6",
"@types/dedent": "^0.7.2",
"@types/ejs": "^3.1.5",
"@types/fs-extra": "^11.0.4",
"@types/validate-npm-package-name": "^4.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dedent from 'dedent';
import fs from 'fs-extra';
import getLatestVersion from 'get-latest-version';
import { getLatestVersion } from 'get-latest-version';
import https from 'https';
import path from 'path';
import { SUPPORTED_MONOREPO_CONFIG_VERSION } from '../constants';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const TURBOREPO = {
};

export const AVAILABLE_TOOLS = {
'eslint': ESLINT,
'jest': JEST,
'lefthook': LEFTHOOK,
eslint: ESLINT,
jest: JEST,
lefthook: LEFTHOOK,
'release-it': RELEASE_IT,
} as const satisfies Record<string, Tool>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<% if (project.moduleConfig === 'nitro-modules' || project.viewConfig === 'nitro-view') { -%>
"react-native-nitro-modules": "^<%- versions.nitro %>",
<% } -%>
"typescript": "^5.9.3"
"typescript": "^6.0.2"
},
"peerDependencies": {
"react": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@react-native/eslint-config": "0.83.0",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-ft-flow": "^3.0.11",
"eslint-plugin-prettier": "^5.5.5",
"prettier": "^3.8.1"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
import { it } from '@jest/globals';

it.todo('write a test');
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@jest/globals": "^30.0.0",
"jest": "^30.3.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"devDependencies": {
"turbo": "^2.8.17"
"turbo": "^2.8.21"
}
}
3 changes: 1 addition & 2 deletions packages/react-native-builder-bob/babel-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-require-imports, import-x/no-commonjs, no-undef */
/* eslint-disable import-x/no-commonjs, no-undef */

const path = require('path');
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore -- Ignore missing types for this module
const { loadConfig } = require('./lib/utils/loadConfig');

Expand Down
6 changes: 2 additions & 4 deletions packages/react-native-builder-bob/babel-preset.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-require-imports, import-x/no-commonjs, no-undef */
/* eslint-disable import-x/no-commonjs, no-undef */

const browserslist = require('browserslist');

Expand All @@ -11,11 +11,9 @@ const browserslist = require('browserslist');
*/
module.exports = function (api, options, cwd) {
const opt = (name) =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
options[name] !== undefined
? options[name]
: // eslint-disable-next-line @typescript-eslint/no-unsafe-return
api.caller((caller) => (caller != null ? caller[name] : undefined));
: api.caller((caller) => (caller != null ? caller[name] : undefined));

const supportsStaticESM = opt('supportsStaticESM');
const rewriteImportExtensions = opt('rewriteImportExtensions');
Expand Down
3 changes: 1 addition & 2 deletions packages/react-native-builder-bob/metro-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/no-deprecated, @typescript-eslint/no-require-imports, import-x/no-commonjs, no-undef */
/* eslint-disable import-x/no-commonjs, no-undef */

const { withMetroConfig } = require('react-native-monorepo-config');

Expand All @@ -16,5 +16,4 @@ const { withMetroConfig } = require('react-native-monorepo-config');
* @returns {import('metro-config').MetroConfig} Metro configuration
*/
exports.getConfig = (baseConfig, { root, project }) =>
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
withMetroConfig(baseConfig, { root, dirname: project });
68 changes: 34 additions & 34 deletions packages/react-native-builder-bob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,46 @@
"test": "vitest"
},
"dependencies": {
"@babel/core": "^7.25.2",
"@babel/plugin-transform-flow-strip-types": "^7.26.5",
"@babel/plugin-transform-strict-mode": "^7.24.7",
"@babel/preset-env": "^7.25.2",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"arktype": "^2.1.15",
"babel-plugin-syntax-hermes-parser": "^0.28.0",
"browserslist": "^4.20.4",
"cross-spawn": "^7.0.3",
"dedent": "^0.7.0",
"del": "^6.1.1",
"escape-string-regexp": "^4.0.0",
"fs-extra": "^10.1.0",
"glob": "^10.5.0",
"is-git-dirty": "^2.0.1",
"json5": "^2.2.1",
"kleur": "^4.1.4",
"@babel/core": "^7.29.0",
"@babel/plugin-transform-flow-strip-types": "^7.27.1",
"@babel/plugin-transform-strict-mode": "^7.27.1",
"@babel/preset-env": "^7.29.2",
"@babel/preset-react": "^7.28.5",
"@babel/preset-typescript": "^7.28.5",
"arktype": "^2.2.0",
"babel-plugin-syntax-hermes-parser": "^0.34.0",
"browserslist": "^4.28.2",
"cross-spawn": "^7.0.6",
"dedent": "^1.7.2",
"del": "^8.0.1",
"escape-string-regexp": "^5.0.0",
"fs-extra": "^11.3.4",
"glob": "^13.0.6",
"is-git-dirty": "^2.0.2",
"json5": "^2.2.3",
"kleur": "^4.1.5",
"prompts": "^2.4.2",
"react-native-monorepo-config": "^0.3.3",
"which": "^2.0.2",
"yargs": "^17.5.1"
"which": "^6.0.1",
"yargs": "^18.0.0"
},
"devDependencies": {
"@babel/cli": "^7.24.8",
"@types/babel__core": "^7.1.19",
"@types/browserslist": "^4.15.0",
"@types/cross-spawn": "^6.0.2",
"@types/dedent": "^0.7.0",
"@types/del": "^4.0.0",
"@types/fs-extra": "^9.0.13",
"@babel/cli": "^7.28.6",
"@types/babel__core": "^7.20.5",
"@types/browserslist": "^4.15.4",
"@types/cross-spawn": "^6.0.6",
"@types/dedent": "^0.7.2",
"@types/del": "^4.0.3",
"@types/fs-extra": "^11.0.4",
"@types/json5": "^2.2.0",
"@types/mock-fs": "^4.13.4",
"@types/prompts": "^2.0.14",
"@types/which": "^2.0.1",
"@types/yargs": "^17.0.10",
"concurrently": "^7.2.2",
"metro-config": "^0.82.4",
"mock-fs": "^5.2.0",
"@types/prompts": "^2.4.9",
"@types/which": "^3.0.4",
"@types/yargs": "^17.0.35",
"concurrently": "^9.2.1",
"metro-config": "^0.84.2",
"mock-fs": "^5.5.0",
"mock-stdin": "^1.0.0",
"vitest": "^3.1.1"
"vitest": "^4.1.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ beforeEach(() => {
name: 'library',
version: '1.0.0',
}),
'src': {
src: {
'index.ts': "export default 'hello world';",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Input } from '../../types';
import { patchCodegenAndroidPackage } from './patches/patchCodegenAndroidPackage';
import fs from 'fs-extra';
import path from 'path';
import del from 'del';
import { deleteAsync } from 'del';
import {
getCodegenCLISourceSupport,
removeCodegenAppLevelCode,
Expand All @@ -23,7 +23,7 @@ export default async function build({ root, report }: Options) {
path.relative(root, codegenIosPath)
)}`
);
await del([codegenIosPath]);
await deleteAsync([codegenIosPath]);
}

const codegenAndroidPath = packageJson.codegenConfig?.outputDir?.android;
Expand All @@ -33,7 +33,7 @@ export default async function build({ root, report }: Options) {
path.relative(root, codegenAndroidPath)
)}`
);
await del([codegenAndroidPath]);
await deleteAsync([codegenAndroidPath]);
}

const codegenType = packageJson.codegenConfig?.type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('patchCodegenAndroidPackage', () => {
mockfs({
[mockProjectPath]: {
'package.json': JSON.stringify(mockPackageJson),
'ios': {
ios: {
generated: {
'RCTAppDependencyProvider.h': '',
'RCTAppDependencyProvider.mm': '',
Expand All @@ -31,7 +31,7 @@ describe('patchCodegenAndroidPackage', () => {
'ReactAppDependencyProvider.podspec': '',
},
},
'android': {
android: {
generated: {
'RCTAppDependencyProvider.h': '',
'RCTAppDependencyProvider.mm': '',
Expand Down Expand Up @@ -78,12 +78,12 @@ describe('patchCodegenAndroidPackage', () => {
mockfs({
[mockProjectPath]: {
'package.json': JSON.stringify(mockPackageJson),
'ios': {
ios: {
generated: {
someRandomFile: '',
},
},
'android': {
android: {
generated: {
someRandomFile: '',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-builder-bob/src/targets/commonjs.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import kleur from 'kleur';
import del from 'del';
import { deleteAsync } from 'del';
import compile, { type CompileOptions } from '../utils/compile';
import type { Input, Variants } from '../types';

Expand All @@ -23,7 +23,7 @@ export default async function build({
`Cleaning up previous build at ${kleur.blue(path.relative(root, output))}`
);

await del([output]);
await deleteAsync([output]);

await compile({
...options,
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-builder-bob/src/targets/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';
import fs from 'fs-extra';
import type { Input } from '../types';
import { spawn } from '../utils/spawn';
import del from 'del';
import { deleteAsync } from 'del';

type Options = Omit<Input, 'output'> & {
options?: {
Expand All @@ -28,7 +28,7 @@ export default async function customTarget({ options, root, report }: Options) {
if (pathToClean) {
report.info(`Cleaning up ${kleur.blue(pathToClean)}`);

await del([path.resolve(root, pathToClean)]);
await deleteAsync([path.resolve(root, pathToClean)]);
}

const packageManagerExecutable = process.env.npm_execpath ?? 'npm';
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-builder-bob/src/targets/module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';
import kleur from 'kleur';
import del from 'del';
import { deleteAsync } from 'del';
import compile, { type CompileOptions } from '../utils/compile';
import type { Input, Variants } from '../types';

Expand All @@ -23,7 +23,7 @@ export default async function build({
`Cleaning up previous build at ${kleur.blue(path.relative(root, output))}`
);

await del([output]);
await deleteAsync([output]);

await compile({
...options,
Expand Down
Loading
Loading