mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
Up until now, conformance with Prettier was handled separately by each formatter crate and oxfmt. This was because the individual formatters were unable to handle embedded formatting. While that approach worked fine for languages like JSON and CSS, I realized it would become inconvenient as we moved forward with supporting languages like Vue.
73 lines
2.5 KiB
JSON
73 lines
2.5 KiB
JSON
{
|
|
"name": "oxfmt-app",
|
|
"version": "0.75.0",
|
|
"private": true,
|
|
"description": "Internal development package for oxfmt. For the published package.json template, see `npm/oxfmt/package.json`.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "pnpm run build-napi-release && pnpm run build-js",
|
|
"build-dev": "pnpm run build-napi && pnpm run build-js",
|
|
"build-test": "pnpm run build-napi-test && pnpm run build-js",
|
|
"build-napi": "napi build --esm --platform --js ./bindings.js --dts ./bindings.d.ts --output-dir src-js --no-dts-cache",
|
|
"build-napi-test": "pnpm run build-napi --profile coverage",
|
|
"build-napi-release": "pnpm run build-napi --release --features allocator",
|
|
"build-js": "node scripts/build.js",
|
|
"test": "vitest run",
|
|
"conformance": "pnpm run conformance:prettier && pnpm run conformance:live",
|
|
"conformance:live": "node conformance/run_live.ts",
|
|
"conformance:prettier": "node conformance/run_prettier.ts",
|
|
"download-fixtures": "node conformance/download-fixtures.js",
|
|
"generate-config-types": "node scripts/generate-config-types.ts"
|
|
},
|
|
"dependencies": {
|
|
"prettier": "3.9.10",
|
|
"prettier-plugin-astro": "1.1.2",
|
|
"prettier-plugin-svelte": "4.1.1",
|
|
"prettier-plugin-tailwindcss": "0.0.0-insiders.5b27f94",
|
|
"tinypool": "2.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@arethetypeswrong/core": "catalog:",
|
|
"@astrojs/compiler-rs": "^0.5.1",
|
|
"@napi-rs/cli": "catalog:",
|
|
"@oxapps/shared": "workspace:*",
|
|
"@types/node": "catalog:",
|
|
"diff": "^9.0.0",
|
|
"execa": "^10.0.0",
|
|
"json-schema-to-typescript": "catalog:",
|
|
"svelte": "^5.56.2",
|
|
"tsdown": "catalog:",
|
|
"vite-plus": "catalog:",
|
|
"vitest": "catalog:",
|
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
"vscode-languageserver-textdocument": "^1.0.12"
|
|
},
|
|
"napi": {
|
|
"binaryName": "oxfmt",
|
|
"packageName": "@oxfmt/binding",
|
|
"targets": [
|
|
"aarch64-apple-darwin",
|
|
"aarch64-linux-android",
|
|
"aarch64-pc-windows-msvc",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-musl",
|
|
"aarch64-unknown-linux-ohos",
|
|
"armv7-linux-androideabi",
|
|
"armv7-unknown-linux-gnueabihf",
|
|
"armv7-unknown-linux-musleabihf",
|
|
"i686-pc-windows-msvc",
|
|
"powerpc64le-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"x86_64-unknown-freebsd",
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": "^20.19.0 || >=22.12.0"
|
|
}
|
|
}
|