UNPKG

react-native-unistyles

Version:
240 lines (239 loc) 6.73 kB
{ "name": "react-native-unistyles", "version": "3.0.8", "description": "Level up your React Native StyleSheet", "scripts": { "test": "NODE_ENV=babel-test jest ./plugin", "test:coverage": "NODE_ENV=babel-test jest --passWithNoTests --coverage", "tsc": "node_modules/typescript/bin/tsc --noEmit", "lint": "biome lint", "check": "biome check --write", "check:ci": "biome check", "prepare": "husky && bob build && yarn plugin:build && yarn repack:plugin:build", "precommit": "concurrently 'yarn tsc' 'yarn lint' 'yarn check' 'yarn test' 'yarn circular:check'", "release": "release-it", "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/" }, "devDependencies": { "@babel/core": "7.27.1", "@babel/plugin-syntax-jsx": "7.27.1", "@babel/preset-flow": "7.27.1", "@babel/preset-typescript": "7.27.1", "@babel/types": "7.27.1", "@biomejs/biome": "1.9.4", "@callstack/repack": "5.1.0", "@commitlint/config-conventional": "19.8.1", "@react-native/normalize-colors": "0.79.2", "@release-it/conventional-changelog": "8.0.2", "@rspack/core": "1.3.10", "@types/jest": "29.5.14", "@types/react": "19.1.4", "babel-plugin-tester": "11.0.4", "commitlint": "19.8.1", "concurrently": "9.1.2", "dpdm": "3.14.0", "esbuild": "0.25.4", "husky": "9.1.7", "jest": "29.7.0", "metro-react-native-babel-preset": "0.77.0", "nitro-codegen": "0.27.2", "react": "19.1.0", "react-native": "0.79.2", "react-native-builder-bob": "0.40.10", "react-native-nitro-modules": "0.27.2", "react-native-reanimated": "3.17.5", "react-native-web": "0.20.0", "react-test-renderer": "19.1.0", "release-it": "17.11.0", "typescript": "5.8.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 } }, "workspaces": [ "example", "docs", "expo-example" ], "packageManager": "yarn@3.6.1", "engines": { "node": ">= 18.0.0" }, "jest": { "preset": "react-native", "modulePathIgnorePatterns": [ "<rootDir>/docs/node_modules", "<rootDir>/lib/", "<rootDir>/cxx/tests" ], "testMatch": [ "**/*.spec.(ts|tsx|js)" ], "coverageReporters": [ "html" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "release-it": { "git": { "commitMessage": "chore: release ${version}", "tagName": "v${version}" }, "npm": { "publish": true }, "github": { "release": true }, "plugins": { "@release-it/conventional-changelog": { "preset": "angular" } } }, "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" } }