@stylexswc/rs-compiler
Version:
NAPI-RS compiler for transform StyleX code
139 lines • 4.24 kB
JSON
{
"name": "@stylexswc/rs-compiler",
"description": "NAPI-RS compiler for transform StyleX code",
"version": "0.16.1",
"private": false,
"license": "MIT",
"files": [
"dist/index.d.ts",
"dist/index.js",
"dist/transform.d.ts",
"dist/transform.js",
"README.md",
"LICENSE"
],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"config": {
"scripty": {
"path": "../../scripts/packages"
}
},
"dependencies": {
"picomatch": "^4.0.4"
},
"devDependencies": {
"@napi-rs/cli": "^3.5.1",
"@stylexswc/ast": "0.16.1",
"@stylexswc/logs": "0.16.1",
"@stylexswc/macros": "0.16.1",
"@stylexswc/misc": "0.16.1",
"@stylexswc/regex": "0.16.1",
"@stylexswc/stylex-enums": "0.16.1",
"@stylexswc/stylex-structures": "0.16.1",
"@stylexswc/transform": "0.16.1",
"@stylexswc/types": "0.16.1",
"@stylexswc/typescript-config": "0.16.1",
"@swc-node/register": "^1.11.1",
"@swc/core": "^1.15.11",
"@taplo/cli": "^0.7.0",
"@types/node": "^25.6.0",
"@types/picomatch": "^4.0.3",
"ava": "^8.0.0",
"benchmark": "^2.1.4",
"chalk": "^5.6.2",
"lint-staged": "^16.4.0",
"npm-run-all2": "^8.0.4",
"oxlint": "^1.50.0",
"prettier": "^3.8.3",
"tinybench": "^6.0.1",
"typescript": "^6.0.3"
},
"peerDependencies": {
"@swc/core": "^1"
},
"ava": {
"extensions": [
"ts"
],
"timeout": "2m",
"workerThreads": false,
"environmentVariables": {
"TS_NODE_PROJECT": "./tsconfig.json"
},
"nodeArguments": [
"--import",
"@swc-node/register/esm-register"
]
},
"engines": {
"node": ">= 18"
},
"keywords": [
"N-API",
"NAPI",
"napi-rs",
"node-addon",
"node-addon-api",
"Rust",
"StyleX",
"SWC"
],
"main": "dist/index.js",
"napi": {
"binaryName": "rs-compiler",
"targets": [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-pc-windows-msvc"
]
},
"repository": "https://github.com/Dwlad90/stylex-swc-plugin",
"optionalDependencies": {
"@stylexswc/rs-compiler-linux-x64-gnu": "0.16.1",
"@stylexswc/rs-compiler-win32-x64-msvc": "0.16.1",
"@stylexswc/rs-compiler-darwin-x64": "0.16.1",
"@stylexswc/rs-compiler-darwin-arm64": "0.16.1",
"@stylexswc/rs-compiler-linux-arm64-gnu": "0.16.1",
"@stylexswc/rs-compiler-linux-x64-musl": "0.16.1",
"@stylexswc/rs-compiler-win32-arm64-msvc": "0.16.1"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "node --import @swc-node/register/esm-register benchmark/bench.ts",
"build": "napi build --platform --release --output-dir dist --js transform.js --dts transform.d.ts",
"build:debug": "napi build --platform",
"build:ts": "tsc",
"check:artifacts": "scripty ./dist/rs-compiler.*.node",
"format": "run-p format:prettier format:rs format:toml",
"format:check": "run-p format:rs:check format:toml:check",
"format:prettier": "prettier . -w",
"format:rs": "cargo fmt --all",
"format:rs:check": "cargo fmt -- --check",
"format:toml": "taplo format",
"format:toml:check": "taplo format --check",
"lint": "run-p lint:rs lint:js",
"lint:check": "run-p lint:rs lint:js:check",
"lint:js": "run-p lint:js:oxlint lint:js:eslint",
"lint:js:check": "eslint . --color --format json --output-file dist/eslint_report.json",
"lint:js:eslint": "eslint . --color",
"lint:js:oxlint": "oxlint .",
"lint:rs": "cargo clippy --all-targets --all-features -- -D warnings",
"postbuild": "pnpm run build:ts && pnpm run check:artifacts",
"test": "ava",
"test:coverage": "scripty",
"test:flamegraph": "scripty",
"typecheck": "scripty --rs && pnpm run typecheck:all",
"typecheck:all": "run-p typecheck:ts typecheck:test typecheck:bench",
"typecheck:bench": "tsc --noEmit --project benchmark/tsconfig.json",
"typecheck:test": "tsc --noEmit --project __test__/tsconfig.json",
"typecheck:ts": "tsc --noEmit",
"version": "napi version"
}
}