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
6 changes: 3 additions & 3 deletions packages/create-react-native-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"templates"
],
"engines": {
"node": "^20.19.0 || ^22.12.0 || >= 23.4.0"
"node": "^22.22.2 || ^24.15.0 || >= 26.0.0"
},
"publishConfig": {
"access": "public",
Expand All @@ -53,14 +53,14 @@
"ora": "^9.4.1",
"pigment": "^0.4.5",
"typescript": "^6.0.3",
"validate-npm-package-name": "^7.0.2"
"validate-npm-package-name": "^8.0.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^21.2.4",
"@types/cross-spawn": "^6.0.6",
"@types/ejs": "^3.1.5",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.19.43",
"@types/node": "^22.20.5",
"@types/validate-npm-package-name": "^4.0.2",
"del-cli": "^8.0.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/create-react-native-library/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const FALLBACK_BOB_VERSION = '0.43.0';
export const FALLBACK_NITRO_MODULES_VERSION = '0.36.5';
export const FALLBACK_BOB_VERSION = '0.43.2';
export const FALLBACK_NITRO_MODULES_VERSION = '0.37.1';
export const SUPPORTED_MONOREPO_CONFIG_VERSION = '0.4.0';
export const SUPPORTED_REACT_NATIVE_VERSION = '0.88.0';
export const SUPPORTED_TEST_APP_REACT_NATIVE_VERSION = '0.86.3';
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v24.13.0
v24.22.1

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nodeLinker: node-modules
nmHoistingLimits: workspaces

yarnPath: .yarn/releases/yarn-4.11.0.cjs
yarnPath: .yarn/releases/yarn-4.18.1.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"example"
],
<% } -%>
"packageManager": "yarn@4.11.0",
"packageManager": "yarn@4.18.1",
"react-native-builder-bob": {
"source": "src",
"output": "lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
"@commitlint/config-conventional": "^21.2.4",
"commitlint": "^21.2.4",
"lefthook": "^2.2.2"
},
"dependenciesMeta": {
"lefthook": {
"built": true
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'node:path';
import { defineConfig, mergeConfig } from 'vite';

import config from 'react-native-builder-bob/vite-config';
Expand All @@ -7,7 +8,7 @@ export default defineConfig((env) =>
mergeConfig(config(env), {
resolve: {
alias: {
[pack.name]: new URL('..', import.meta.url),
[pack.name]: path.resolve(import.meta.dirname, '..'),
},
conditions: ['<%- project.sourceCondition -%>'],
dedupe: Object.keys(pack.peerDependencies),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"react-native-web": "~0.21.4"
},
"devDependencies": {
"@vitejs/plugin-react": "^5.2.0",
"vite": "^7.3.7",
"@vitejs/plugin-react": "^6.1.2",
"vite": "^8.3.5",
"vite-plugin-commonjs": "^0.10.4"
}
}
8 changes: 4 additions & 4 deletions packages/react-native-builder-bob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"lib"
],
"engines": {
"node": "^20.19.0 || ^22.12.0 || >= 23.4.0"
"node": "^22.22.2 || ^24.15.0 || >= 26.0.0"
},
"publishConfig": {
"access": "public",
Expand All @@ -56,15 +56,15 @@
"browserslist": "^4.29.4",
"cross-spawn": "^7.0.6",
"dedent": "^1.7.2",
"del": "^8.0.1",
"del": "^9.0.1",
"escape-string-regexp": "^5.0.0",
"fs-extra": "^11.4.1",
"glob": "^13.0.6",
"json5": "^2.2.3",
"kleur": "^4.1.5",
"prompts": "^2.4.2",
"typescript": "^6.0.3",
"which": "^6.0.1",
"which": "^7.0.0",
"yargs": "^18.2.0"
},
"devDependencies": {
Expand All @@ -75,7 +75,7 @@
"@types/fs-extra": "^11.0.4",
"@types/json5": "^2.2.0",
"@types/mock-fs": "^4.13.4",
"@types/node": "^20.19.43",
"@types/node": "^22.20.5",
"@types/prompts": "^2.4.9",
"@types/which": "^3.0.4",
"@types/yargs": "^17.0.35",
Expand Down
25 changes: 17 additions & 8 deletions packages/react-native-builder-bob/src/configs/vite-config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import react from '@vitejs/plugin-react';
import { defineConfig, transformWithEsbuild } from 'vite';
import { defineConfig, transformWithOxc } from 'vite';
import commonjs from 'vite-plugin-commonjs';

const extensions = [
Expand All @@ -25,9 +25,9 @@ const jsx = (regex) => ({
enforce: 'pre',
transform(code, id) {
if (id.endsWith('.js') && regex.test(id)) {
return transformWithEsbuild(code, id, {
loader: 'jsx',
jsx: 'automatic',
return transformWithOxc(code, id, {
lang: 'jsx',
jsx: { runtime: 'automatic' },
});
}

Expand All @@ -51,12 +51,21 @@ export default defineConfig(({ mode }) => ({
dedupe: ['react', 'react-dom', 'react-native-web'],
},
optimizeDeps: {
esbuildOptions: {
resolveExtensions: extensions,
jsx: 'automatic',
loader: {
rolldownOptions: {
resolve: {
extensions,
},
moduleTypes: {
'.js': 'jsx',
},
transform: {
jsx: 'react-jsx',
},
// Some packages such as `expo-modules-core` publish TypeScript source,
// Where type-only names are re-exported inside `declare namespace`.
// Rolldown keeps those imports and fails.
// So we shim the missing exports.
shimMissingExports: true,
},
},
}));
2 changes: 1 addition & 1 deletion scripts/upgrade-template-deps.mts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function main() {
console.log('\nChecking for dependency upgrades...');

for (const pkgPath of pkgPaths) {
execSync('npx npm-check-updates -u', {
execSync('npx npm-check-updates -u --cooldown 1d', {
cwd: path.dirname(pkgPath),
stdio: 'inherit',
});
Expand Down
97 changes: 19 additions & 78 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3421,13 +3421,6 @@ __metadata:
languageName: node
linkType: hard

"@sindresorhus/merge-streams@npm:^2.1.0":
version: 2.3.0
resolution: "@sindresorhus/merge-streams@npm:2.3.0"
checksum: 10c0/69ee906f3125fb2c6bb6ec5cdd84e8827d93b49b3892bce8b62267116cc7e197b5cccf20c160a1d32c26014ecd14470a72a5e3ee37a58f1d6dadc0db1ccf3894
languageName: node
linkType: hard

"@sindresorhus/merge-streams@npm:^4.0.0":
version: 4.0.0
resolution: "@sindresorhus/merge-streams@npm:4.0.0"
Expand Down Expand Up @@ -3679,21 +3672,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*":
version: 22.19.7
resolution: "@types/node@npm:22.19.7"
"@types/node@npm:*, @types/node@npm:^22.20.5":
version: 22.20.5
resolution: "@types/node@npm:22.20.5"
dependencies:
undici-types: "npm:~6.21.0"
checksum: 10c0/0a4b13fd51306a72393f145693063e074be1bf884bdc642c879436d2c053ac9d573cc0a0d69867f60b14d3f1b9d03317e8ec0e4377f7527cb645e7b2a5d34045
languageName: node
linkType: hard

"@types/node@npm:^20.19.43":
version: 20.19.43
resolution: "@types/node@npm:20.19.43"
dependencies:
undici-types: "npm:~6.21.0"
checksum: 10c0/9bcec3b5295bdd77ff0b44a528a69f7e22028c347507ba2c69be47ec84e30299f45043b222e9c86c510e138c9c53b2419dd5cd34920602a4a5a381c288075318
checksum: 10c0/0cf61a89c6a69917ab49f976a6bb11a29e3b348a6ae19f5827ceb91d3ade781faab58dcf3b8fa625f975f5d7536b9166ff94e8250c29272c667164f77c28fa88
languageName: node
linkType: hard

Expand Down Expand Up @@ -4843,7 +4827,7 @@ __metadata:
"@types/cross-spawn": "npm:^6.0.6"
"@types/ejs": "npm:^3.1.5"
"@types/fs-extra": "npm:^11.0.4"
"@types/node": "npm:^20.19.43"
"@types/node": "npm:^22.20.5"
"@types/validate-npm-package-name": "npm:^4.0.2"
cross-spawn: "npm:^7.0.6"
dedent: "npm:^1.7.2"
Expand All @@ -4856,7 +4840,7 @@ __metadata:
ora: "npm:^9.4.1"
pigment: "npm:^0.4.5"
typescript: "npm:^6.0.3"
validate-npm-package-name: "npm:^7.0.2"
validate-npm-package-name: "npm:^8.0.0"
bin:
create-react-native-library: bin/create-react-native-library
languageName: unknown
Expand Down Expand Up @@ -4967,21 +4951,6 @@ __metadata:
languageName: node
linkType: hard

"del@npm:^8.0.1":
version: 8.0.1
resolution: "del@npm:8.0.1"
dependencies:
globby: "npm:^14.0.2"
is-glob: "npm:^4.0.3"
is-path-cwd: "npm:^3.0.0"
is-path-inside: "npm:^4.0.0"
p-map: "npm:^7.0.2"
presentable-error: "npm:^0.0.1"
slash: "npm:^5.1.0"
checksum: 10c0/77100f260e6b5bd2a927fe4a770b321c088aa15ce9c8266b9f0297a85613c225913e52fc78150ea701b163d0d9c9fec945107fef0e23836747a57a7d3709fb1c
languageName: node
linkType: hard

"dequal@npm:^2.0.0":
version: 2.0.3
resolution: "dequal@npm:2.0.3"
Expand Down Expand Up @@ -6051,20 +6020,6 @@ __metadata:
languageName: node
linkType: hard

"globby@npm:^14.0.2":
version: 14.1.0
resolution: "globby@npm:14.1.0"
dependencies:
"@sindresorhus/merge-streams": "npm:^2.1.0"
fast-glob: "npm:^3.3.3"
ignore: "npm:^7.0.3"
path-type: "npm:^6.0.0"
slash: "npm:^5.1.0"
unicorn-magic: "npm:^0.3.0"
checksum: 10c0/527a1063c5958255969620c6fa4444a2b2e9278caddd571d46dfbfa307cb15977afb746e84d682ba5b6c94fc081e8997f80ff05dd235441ba1cb16f86153e58e
languageName: node
linkType: hard

"globby@npm:^16.2.4":
version: 16.2.4
resolution: "globby@npm:16.2.4"
Expand Down Expand Up @@ -6425,7 +6380,7 @@ __metadata:
languageName: node
linkType: hard

"ignore@npm:^7.0.3, ignore@npm:^7.0.5":
"ignore@npm:^7.0.5":
version: 7.0.13
resolution: "ignore@npm:7.0.13"
checksum: 10c0/e6d122726609d57be39a12a91a5479eefe6d4298233695651de21f2d0bb40216e5fe89e01f343f7fb2e265887136ad3bfae1a14e0b06d8ca4c6e9ea4891e53e4
Expand Down Expand Up @@ -6599,13 +6554,6 @@ __metadata:
languageName: node
linkType: hard

"is-path-cwd@npm:^3.0.0":
version: 3.0.0
resolution: "is-path-cwd@npm:3.0.0"
checksum: 10c0/8135b789c74e137501ca33b11a846c32d160c517037c0ce390004a98335e010b9712792d97c73d9e98a5ecbcfd03589a81e95c72e1c05014a69fead963a02753
languageName: node
linkType: hard

"is-path-cwd@npm:^4.0.1":
version: 4.0.1
resolution: "is-path-cwd@npm:4.0.1"
Expand Down Expand Up @@ -8445,13 +8393,6 @@ __metadata:
languageName: node
linkType: hard

"path-type@npm:^6.0.0":
version: 6.0.0
resolution: "path-type@npm:6.0.0"
checksum: 10c0/55baa8b1187d6dc683d5a9cfcc866168d6adff58e5db91126795376d818eee46391e00b2a4d53e44d844c7524a7d96aa68cc68f4f3e500d3d069a39e6535481c
languageName: node
linkType: hard

"picocolors@npm:^1.1.1":
version: 1.1.1
resolution: "picocolors@npm:1.1.1"
Expand Down Expand Up @@ -8687,7 +8628,7 @@ __metadata:
"@types/fs-extra": "npm:^11.0.4"
"@types/json5": "npm:^2.2.0"
"@types/mock-fs": "npm:^4.13.4"
"@types/node": "npm:^20.19.43"
"@types/node": "npm:^22.20.5"
"@types/prompts": "npm:^2.4.9"
"@types/which": "npm:^3.0.4"
"@types/yargs": "npm:^17.0.35"
Expand All @@ -8697,7 +8638,7 @@ __metadata:
concurrently: "npm:^10.0.6"
cross-spawn: "npm:^7.0.6"
dedent: "npm:^1.7.2"
del: "npm:^8.0.1"
del: "npm:^9.0.1"
del-cli: "npm:^8.0.1"
escape-string-regexp: "npm:^5.0.0"
fs-extra: "npm:^11.4.1"
Expand All @@ -8710,7 +8651,7 @@ __metadata:
typescript: "npm:^6.0.3"
vite: "npm:^8.3.5"
vitest: "npm:^5.0.5"
which: "npm:^6.0.1"
which: "npm:^7.0.0"
yargs: "npm:^18.2.0"
bin:
bob: bin/bob
Expand Down Expand Up @@ -9876,13 +9817,6 @@ __metadata:
languageName: node
linkType: hard

"unicorn-magic@npm:^0.3.0":
version: 0.3.0
resolution: "unicorn-magic@npm:0.3.0"
checksum: 10c0/0a32a997d6c15f1c2a077a15b1c4ca6f268d574cf5b8975e778bb98e6f8db4ef4e86dfcae4e158cd4c7e38fb4dd383b93b13eefddc7f178dea13d3ac8a603271
languageName: node
linkType: hard

"unicorn-magic@npm:^0.4.0":
version: 0.4.1
resolution: "unicorn-magic@npm:0.4.1"
Expand Down Expand Up @@ -10109,13 +10043,20 @@ __metadata:
languageName: node
linkType: hard

"validate-npm-package-name@npm:^7.0.0, validate-npm-package-name@npm:^7.0.2":
"validate-npm-package-name@npm:^7.0.0":
version: 7.0.2
resolution: "validate-npm-package-name@npm:7.0.2"
checksum: 10c0/adf32e943148e13e8df13d06b855493908e6ae7a847610e8543c6291cbf42f40e653249a5b2275e2e615e3224c574ade5a9064a9e2d1ab629386284ea99e8f39
languageName: node
linkType: hard

"validate-npm-package-name@npm:^8.0.0":
version: 8.0.0
resolution: "validate-npm-package-name@npm:8.0.0"
checksum: 10c0/ec44abe7f8dd39f263d2571a538973e9c1864a99a0b0899092e50cae914fd9d7d25d69f52d3c9a422f04e75d2fa6d4a6bae8dc24cd6ae3a20e60d3d92e1b752e
languageName: node
linkType: hard

"verkit@npm:^0.5.0":
version: 0.5.0
resolution: "verkit@npm:0.5.0"
Expand Down Expand Up @@ -10296,7 +10237,7 @@ __metadata:
languageName: node
linkType: hard

"which@npm:^6.0.0, which@npm:^6.0.1":
"which@npm:^6.0.0":
version: 6.0.1
resolution: "which@npm:6.0.1"
dependencies:
Expand Down
Loading