react-native-unistyles
Version:
Level up your React Native StyleSheet
219 lines (218 loc) • 6.5 kB
JSON
{
"name": "react-native-unistyles",
"version": "3.2.5",
"description": "Level up your React Native StyleSheet",
"scripts": {
"test": "NODE_ENV=babel-test jest ./plugin ./src/__tests__",
"test:coverage": "NODE_ENV=babel-test jest --passWithNoTests --coverage",
"tsc": "node_modules/typescript/bin/tsc --noEmit",
"format": "oxfmt src plugin repack-plugin",
"lint": "oxlint src plugin repack-plugin",
"check": "oxfmt src plugin repack-plugin && oxlint --fix src plugin repack-plugin",
"check:ci": "oxfmt --check src plugin repack-plugin && oxlint src plugin repack-plugin",
"prepare": "bob build && bun run plugin:build && bun run repack:plugin:build",
"precommit": "concurrently 'bun run tsc' 'bun run lint' 'bun run check' 'bun run test' 'bun run circular:check'",
"plugin:build": "node plugin/esbuild.js",
"repack:plugin:build": "node repack-plugin/esbuild.js",
"circular:check": "dpdm --no-warning --no-tree -T --exit-code circular:1 src/**/*.ts",
"components:build": "node build-components.js"
},
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"browser": "lib/module/index.js",
"types": "lib/typescript/src/index.d.ts",
"source": "src/index",
"exports": {
".": {
"types": "./lib/typescript/src/index.d.ts",
"import": "./lib/module/index.js",
"browser": "./lib/module/index.js",
"react-native": "./src/index.ts",
"default": "./lib/commonjs/index.js"
},
"./mocks": {
"import": "./lib/module/mocks.js",
"browser": "./lib/module/mocks.js",
"react-native": "./src/mocks.ts",
"default": "./lib/commonjs/mocks.js"
},
"./components/native/*": {
"import": "./lib/module/components/native/*",
"browser": "./lib/module/components/native/*",
"react-native": "./src/components/native/*",
"default": "./lib/commonjs/components/native/*"
},
"./plugin": {
"import": "./plugin/index.js",
"types": "./plugin/index.d.ts",
"default": "./plugin/index.js"
},
"./repack-plugin": {
"import": "./repack-plugin/index.js",
"types": "./repack-plugin/index.d.ts",
"default": "./repack-plugin/index.js"
},
"./package.json": "./package.json",
"./server": {
"types": "./lib/typescript/src/server/index.d.ts",
"import": "./lib/module/server/index.js",
"browser": "./lib/module/server/index.js",
"react-native": "./src/server/index.ts",
"default": "./lib/commonjs/server/index.js"
},
"./web": {
"types": "./lib/typescript/src/web-only/index.d.ts",
"import": "./lib/module/web-only/index.js",
"browser": "./lib/module/web-only/index.js",
"react-native": "./src/web-only/index.ts",
"default": "./lib/commonjs/web-only/index.js"
},
"./reanimated": {
"types": "./lib/typescript/src/reanimated/index.d.ts",
"import": "./lib/module/reanimated/index.js",
"browser": "./lib/module/reanimated/index.js",
"react-native": "./src/reanimated/index.ts",
"default": "./lib/commonjs/reanimated/index.js"
}
},
"files": [
"src",
"lib",
"ios",
"android",
"cxx",
"nitrogen",
"plugin",
"web",
"components",
"server",
"web-only",
"reanimated",
"react-native.config.js",
"Unistyles.podspec",
"repack-plugin",
"unistyles_get_rn_version.rb",
"!repack-plugin/__tests__",
"!repack-plugin/src",
"!repack-plugin/esbuild.js",
"!plugin/__tests__",
"!plugin/src",
"!plugin/esbuild.js",
"!ios/build",
"!android/build",
"!android/gradle",
"!android/gradlew",
"!android/gradlew.bat",
"!android/local.properties",
"!**/*.spec.ts",
"!**/*.spec.tsx",
"!**/.*"
],
"keywords": [
"react-native",
"ios",
"android",
"react-native-web",
"expo",
"fabric"
],
"repository": "https://github.com/jpudysz/react-native-unistyles",
"author": "Jacek Pudysz <jacekpudysz@gmail.com> (https://github.com/jpudysz)",
"license": "MIT",
"bugs": {
"url": "https://github.com/jpudysz/react-native-unistyles/issues"
},
"homepage": "https://github.com/jpudysz/react-native-unistyles#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@babel/types": "7.29.0"
},
"devDependencies": {
"@callstack/repack": "5.2.4",
"@commitlint/config-conventional": "20.4.2",
"@react-native/normalize-colors": "0.85.3",
"@rspack/core": "1.7.6",
"@types/jest": "30.0.0",
"@types/react": "19.2.14",
"babel-plugin-tester": "12.0.0",
"commitlint": "20.4.2",
"concurrently": "9.2.1",
"dpdm": "4.0.1",
"esbuild": "0.27.3",
"jest": "30.2.0",
"@babel/plugin-syntax-jsx": "7.28.6",
"@babel/runtime": "7.28.6",
"@react-native/babel-preset": "0.85.3",
"nitrogen": "0.35.7",
"oxfmt": "0.35.0",
"oxlint": "1.50.0",
"react": "19.2.3",
"react-native": "0.85.3",
"react-native-builder-bob": "0.40.18",
"react-native-nitro-modules": "0.35.7",
"react-native-reanimated": "4.3.1",
"react-native-web": "0.21.2",
"typescript": "5.9.3"
},
"peerDependencies": {
"@react-native/normalize-colors": "*",
"react": "*",
"react-native": ">=0.76.0",
"react-native-edge-to-edge": "*",
"react-native-nitro-modules": "*",
"react-native-reanimated": "*"
},
"peerDependenciesMeta": {
"react-native-reanimated": {
"optional": true
},
"react-native-edge-to-edge": {
"optional": true
}
},
"engines": {
"node": ">= 20.18.0"
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/lib/",
"<rootDir>/cxx/tests"
],
"testMatch": [
"**/*.spec.(ts|tsx|js)"
],
"transformIgnorePatterns": [
"node_modules/(?!(.bun/.*?/node_modules/)?(react-native|@react-native|react-native-nitro-modules|react-native-reanimated)/)"
],
"coverageReporters": [
"html"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
[
"typescript",
{
"project": "tsconfig.build.json"
}
]
]
},
"codegenConfig": {
"name": "TurboUnistyles",
"type": "modules",
"jsSrcsDir": "./src/specs/TurboUnistyles"
}
}