mirror of
https://github.com/zoriya/nitro.git
synced 2026-10-13 00:05:23 +00:00
Nitro now lives at github.com/margelo/nitro. This updates every
reference to the old `mrousavy/nitro` location:
- `package.json` `repository`/`bugs` for all 5 packages + root
- All 4 podspecs (`s.source`)
- Issue templates ("search similar issues" links)
- Docusaurus `organizationName` + navbar/footer/JSON-LD `codeRepository`
- Docs prose links
- nitrogen CLI banner and the generated-file header comment
(`helpers.ts`), plus all 275 regenerated files
- `nitrogen init` clones the template from `margelo/nitro`
Also updates links to sibling repos that moved to `margelo` too
(`react-native-vision-camera`, `react-native-mmkv`,
`react-native-fast-tflite`), and aligns the iOS example bundle ID
with Android's (`com.mrousavy.nitro.example` ->
`com.margelo.nitro.example`).
Intentionally unchanged: `author` fields, personal links
(mrousavy.com/Twitter/YouTube/Sponsors, `FUNDING.yml`), and links to
repos still under `mrousavy` (`NitroBenchmarks`,
`react-native-nitro-image`, `react-native-data-scanner`).
130 lines
3.1 KiB
JSON
130 lines
3.1 KiB
JSON
{
|
|
"name": "react-native-nitro-modules",
|
|
"version": "0.37.1",
|
|
"description": "Fast, type-safe native modules for React Native with statically compiled JSI bindings.",
|
|
"main": "lib/commonjs/index",
|
|
"module": "lib/module/index",
|
|
"types": "lib/typescript/index.d.ts",
|
|
"react-native": "src/index",
|
|
"source": "src/index",
|
|
"files": [
|
|
"src",
|
|
"!src/__tests__",
|
|
"react-native.config.js",
|
|
"lib",
|
|
"android/build.gradle",
|
|
"android/gradle.properties",
|
|
"android/fix-prefab.gradle",
|
|
"android/CMakeLists.txt",
|
|
"android/src/",
|
|
"ios/",
|
|
"cpp/",
|
|
"app.plugin.js",
|
|
"*.podspec",
|
|
"nitro_pod_utils.rb",
|
|
"README.md"
|
|
],
|
|
"keywords": [
|
|
"react-native",
|
|
"nitro",
|
|
"ios",
|
|
"android",
|
|
"visionOS",
|
|
"tvOS",
|
|
"macOS",
|
|
"cpp",
|
|
"framework",
|
|
"react",
|
|
"swift",
|
|
"native",
|
|
"modules",
|
|
"fast",
|
|
"jsi",
|
|
"turbo",
|
|
"scaffold",
|
|
"template",
|
|
"views"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/margelo/nitro.git"
|
|
},
|
|
"author": "Marc Rousavy <me@mrousavy.com> (https://github.com/mrousavy)",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/margelo/nitro/issues"
|
|
},
|
|
"homepage": "https://nitro.margelo.com",
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"write-native-version": "version=$(node -p \"require('./package.json').version\") && sed -i '' \"s/#define NITRO_VERSION \\\".*\\\"/#define NITRO_VERSION \\\"$version\\\"/\" ./cpp/utils/NitroDefines.hpp",
|
|
"postversion": "bun run write-native-version",
|
|
"build": "rm -rf lib && bun typecheck && bob build",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint \"**/*.{js,ts,tsx}\" --fix",
|
|
"lint-ci": "eslint \"**/*.{js,ts,tsx}\" -f @jamesacarr/github-actions --max-warnings 0",
|
|
"test": "jest",
|
|
"clean": "rm -rf android/build node_modules/**/android/build lib",
|
|
"release": "release-it"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "*",
|
|
"@types/react": "^19.2.15",
|
|
"jest": "*",
|
|
"@react-native/jest-preset": "0.85.3",
|
|
"react": "19.2.3",
|
|
"react-native": "0.85.3",
|
|
"react-native-builder-bob": "^0.41.0",
|
|
"react-native-worklets": "^0.9.1"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"codegenConfig": {
|
|
"name": "NitroModulesSpec",
|
|
"type": "modules",
|
|
"jsSrcsDir": "./src",
|
|
"android": {
|
|
"javaPackageName": "com.margelo.nitro"
|
|
}
|
|
},
|
|
"jest": {
|
|
"preset": "@react-native/jest-preset",
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/example/node_modules",
|
|
"<rootDir>/lib/"
|
|
]
|
|
},
|
|
"release-it": {
|
|
"npm": {
|
|
"publish": true
|
|
},
|
|
"git": false,
|
|
"github": {
|
|
"release": false
|
|
},
|
|
"hooks": {
|
|
"before:init": "bun typecheck && bun lint",
|
|
"after:bump": "bun run build"
|
|
}
|
|
},
|
|
"react-native-builder-bob": {
|
|
"source": "src",
|
|
"output": "lib",
|
|
"targets": [
|
|
"commonjs",
|
|
"module",
|
|
[
|
|
"typescript",
|
|
{
|
|
"project": "tsconfig.build.json",
|
|
"tsc": "../../node_modules/typescript/bin/tsc"
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|