Files
test-repo/package.json
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

270 lines
9.1 KiB
JSON
Raw Normal View History

2016-11-29 12:14:10 -05:00
{
2017-01-09 22:45:22 -05:00
"name": "prettier",
2026-06-28 07:08:51 +08:00
"version": "3.10.0-dev",
2017-07-01 17:14:24 -07:00
"description": "Prettier is an opinionated code formatter",
"bin": "./bin/prettier.cjs",
2017-03-13 16:39:54 -05:00
"repository": "prettier/prettier",
2021-12-06 13:55:58 +08:00
"funding": "https://github.com/prettier/prettier?sponsor=1",
2017-07-01 17:14:24 -07:00
"homepage": "https://prettier.io",
"author": "James Long",
2022-02-12 15:39:16 +08:00
"type": "module",
2017-01-13 21:11:03 -07:00
"license": "MIT",
2022-10-14 17:17:47 +08:00
"main": "./src/index.cjs",
"browser": "./standalone.js",
"unpkg": "./standalone.js",
"imports": {
"#universal": {
"browser": "./src/universal/index.browser.js",
"default": "./src/universal/index.js"
},
"#universal/*": {
"browser": "./src/universal/*.browser.js",
"default": "./src/universal/*.js"
}
},
"exports": {
".": {
"types": "./src/index.d.ts",
2023-03-31 14:15:09 +08:00
"require": "./src/index.cjs",
"default": "./src/index.js"
},
2025-05-06 10:34:05 +08:00
"./standalone": "./src/standalone.js",
"./plugins/*": "./src/plugins/*.js",
2022-10-16 12:47:33 +08:00
"./*": "./*"
},
2017-09-16 19:47:53 +03:00
"engines": {
"node": ">=22"
2017-09-16 19:47:53 +03:00
},
2020-04-23 10:37:09 +08:00
"files": [
"index.js",
"standalone.js",
"src",
2022-02-28 19:48:14 +08:00
"bin"
2020-04-23 10:37:09 +08:00
],
"dependencies": {
"@angular/compiler": "22.0.4",
2026-06-17 05:21:31 +08:00
"@babel/code-frame": "8.0.0",
"@babel/parser": "8.0.0",
"@babel/types": "8.0.0",
"@glimmer/syntax": "0.95.0",
"@prettier/cli": "0.12.0",
"@prettier/html-event-attributes": "0.0.2",
"@prettier/html-tags": "2.2.0",
"@prettier/parse-srcset": "3.1.0",
"@typescript-eslint/typescript-estree": "8.62.1",
"@typescript-eslint/visitor-keys": "8.62.1",
2026-06-12 03:36:15 +08:00
"acorn": "8.17.0",
2022-01-28 15:25:30 +08:00
"acorn-jsx": "5.3.2",
"angular-estree-parser": "15.5.0",
"angular-html-parser": "10.10.0",
"camelcase": "9.0.0",
"ci-info": "4.4.0",
"cjk-regex": "3.4.0",
"collapse-white-space": "1.0.6",
"css-units-list": "2.1.0",
2019-09-28 21:44:20 +08:00
"dashify": "2.0.0",
"deno-path-from-file-url": "0.0.7",
2026-04-15 08:31:02 +08:00
"diff": "9.0.0",
"editorconfig-without-wasm": "0.0.7",
"emoji-regex": "10.6.0",
2022-03-02 13:43:17 +08:00
"escape-string-regexp": "5.0.0",
"espree": "11.2.0",
"fast-glob": "3.3.3",
"fast-json-stable-stringify": "2.1.0",
2026-06-28 06:37:51 +08:00
"file-entry-cache": "11.1.5",
2025-04-09 07:41:12 +08:00
"find-cache-directory": "6.0.0",
2026-06-25 06:48:12 +08:00
"flow-parser": "0.321.0",
"get-east-asian-width": "1.6.0",
2022-07-12 10:28:00 +08:00
"get-stdin": "9.0.0",
"graphql": "17.0.1",
2026-05-07 21:49:02 +08:00
"hermes-parser": "0.36.1",
"html-element-attributes": "3.5.0",
"html-ua-styles": "0.4.0",
"ignore": "7.0.5",
"import-meta-resolve": "4.2.0",
"imurmurhash-esm": "0.0.2",
"index-to-position": "1.2.0",
"is-es5-identifier-name": "1.0.1",
"jest-docblock": "30.4.0",
"json5": "2.2.3",
2025-09-12 00:23:06 +08:00
"leven": "4.1.0",
"linguist-languages": "9.4.0",
"mdast-util-from-markdown": "2.0.3",
"mdast-util-gfm": "3.1.0",
"mdast-util-math": "3.0.0",
"mdast-util-wiki-link": "0.1.2",
"meriyah": "7.1.0",
"micromark-extension-gfm": "3.0.0",
"micromark-extension-math": "3.1.0",
"micromark-extension-wiki-link": "0.0.4",
"micromark-util-character": "2.1.1",
"micromark-util-symbol": "2.0.1",
"micromark-util-types": "2.0.2",
"micromatch": "4.0.8",
"minimist": "1.2.8",
"n-readlines": "3.4.1",
2026-01-06 00:03:44 +08:00
"narrow-emojis": "0.0.3",
"outdent": "0.8.0",
"oxc-parser": "0.138.0",
"parse-json": "8.3.0",
2025-03-10 11:48:01 +08:00
"picocolors": "1.1.1",
2020-03-23 03:32:05 +02:00
"please-upgrade-node": "3.2.0",
"postcss": "8.5.16",
2022-01-17 09:19:34 +08:00
"postcss-less": "6.0.0",
"postcss-media-query-parser": "0.2.3",
"postcss-scss": "4.0.9",
"postcss-selector-parser": "2.2.3",
"postcss-values-parser": "2.0.1",
"regexp-util": "2.0.3",
"remark-footnotes": "2.0.0",
2020-11-16 01:03:35 +08:00
"remark-math": "3.0.1",
"remark-parse": "8.0.3",
"search-closest": "3.1.0",
"smol-toml": "1.7.0",
"strip-ansi": "7.2.0",
2022-08-17 09:47:08 +08:00
"to-fast-properties": "4.0.0",
2025-03-17 11:18:33 +08:00
"trim-newlines": "5.0.0",
"typescript": "6.0.3",
"unicode-regex": "4.2.0",
"unified": "9.2.2",
"url-or-path": "2.7.1",
2026-06-09 07:51:09 +08:00
"vnopts": "2.0.5",
"wcwidth.js": "2.0.0",
2026-06-01 10:18:29 +08:00
"yaml": "2.9.0",
"yaml-unist-parser": "3.2.0"
},
"devDependencies": {
2026-06-17 05:21:31 +08:00
"@babel/generator": "8.0.0",
"@eslint/js": "10.0.1",
2026-05-08 14:43:47 +08:00
"@stylistic/eslint-plugin": "5.10.0",
2025-10-27 23:24:02 +08:00
"@types/jsesc": "3.0.3",
"@typescript-eslint/eslint-plugin": "8.62.1",
"@typescript-eslint/parser": "8.62.1",
"base64-arraybuffer-es6": "3.1.0",
2026-06-22 20:16:57 +08:00
"browserslist": "4.28.4",
"browserslist-to-esbuild": "2.1.1",
2025-05-29 15:30:45 +08:00
"buffer": "6.0.3",
2026-03-04 23:23:44 +08:00
"c8": "11.0.0",
2025-12-08 10:18:39 +08:00
"commonmark-test-suite": "0.1.0",
"cross-env": "10.1.0",
2026-06-09 05:28:57 +08:00
"cspell": "10.0.1",
"enquirer": "2.4.1",
2026-06-13 07:12:31 +08:00
"esbuild": "0.28.1",
"esbuild-visualizer": "0.7.0",
"eslint": "10.6.0",
"eslint-config-prettier": "10.1.8",
2022-04-25 14:39:16 +08:00
"eslint-formatter-friendly": "7.0.0",
2026-05-08 14:43:47 +08:00
"eslint-plugin-compat": "7.0.2",
2026-06-27 00:16:22 +08:00
"eslint-plugin-jest": "29.15.3",
"eslint-plugin-n": "18.2.1",
"eslint-plugin-regexp": "3.1.1",
"eslint-plugin-simple-import-sort": "13.0.0",
"eslint-plugin-unicorn": "69.0.0",
"esm-utils": "4.4.2",
2026-06-25 06:48:12 +08:00
"flow-estree": "0.321.0",
2026-03-23 00:56:30 +08:00
"get-port": "7.2.0",
2025-12-08 10:48:49 +08:00
"gfm-test-suite": "0.0.2",
2026-06-23 10:42:58 +08:00
"globals": "17.7.0",
2026-06-29 17:57:56 +08:00
"graphql-test-suite": "0.0.2",
2026-05-19 03:43:37 +08:00
"jest": "30.4.2",
2026-06-26 17:56:57 +08:00
"jest-light-runner": "0.8.1",
"jest-snapshot-serializer-ansi": "2.2.1",
"jest-snapshot-serializer-raw": "2.0.0",
"jest-watch-typeahead": "3.0.1",
2025-10-27 23:24:02 +08:00
"jsesc": "3.1.0",
2025-12-02 16:33:39 +08:00
"json-test-suite": "1.0.0",
2026-06-29 15:52:24 +08:00
"jsx-test-suite": "0.0.2",
2026-06-26 17:56:57 +08:00
"knip": "6.21.0",
2026-06-30 00:56:01 +08:00
"less-test-suite": "0.0.1",
"magic-string": "0.30.21",
2025-11-03 04:54:10 +08:00
"make-synchronized": "0.8.0",
2026-04-10 09:10:20 +08:00
"nano-spawn": "2.1.0",
"node-style-text": "2.1.2",
2026-06-13 07:12:31 +08:00
"npm-run-all2": "9.0.2",
"open-editor": "6.0.0",
2026-06-30 09:23:31 +08:00
"prettier": "3.9.4",
"pretty-bytes": "7.1.0",
"pretty-ms": "9.3.0",
2026-06-25 06:39:30 +08:00
"puppeteer": "25.2.1",
2026-04-10 09:10:20 +08:00
"rollup-plugin-license": "3.7.1",
2026-06-22 20:16:57 +08:00
"semver": "7.8.5",
"serialize-javascript": "7.0.6",
2026-03-05 00:09:04 +08:00
"tempy": "3.2.0",
2026-05-19 03:43:37 +08:00
"tinybench": "6.0.2",
2025-11-23 04:02:25 +08:00
"ts-expect": "1.3.0",
2025-11-24 20:46:46 +08:00
"yaml-test-suite": "0.1.0"
2016-12-23 19:31:38 +00:00
},
"resolutions": {
"trim": "1.0.1"
},
2016-12-23 19:31:38 +00:00
"scripts": {
"prepublishOnly": "echo \"Error: must publish from dist/\" && exit 1",
2025-04-20 22:23:37 +08:00
"test": "jest",
2022-01-12 08:47:55 +08:00
"test:dev-package": "cross-env INSTALL_PACKAGE=1 yarn test",
"test:production": "cross-env NODE_ENV=production yarn test",
"test:production-standalone": "cross-env TEST_STANDALONE=1 yarn test:production",
2025-12-25 00:08:21 +08:00
"test:production:browser": "cross-env TEST_RUNTIME=browser yarn test:production",
"test:production:browser:chrome": "cross-env TEST_RUNTIME_BROWSER=chrome yarn test:production:browser",
"test:production:browser:firefox": "cross-env TEST_RUNTIME_BROWSER=firefox yarn test:production:browser",
"test:production:browser:chrome:umd": "cross-env TEST_BUNDLE_FORMAT=umd yarn test:production:browser:chrome",
"test:production:browser:firefox:umd": "cross-env TEST_BUNDLE_FORMAT=umd yarn test:production:browser:firefox",
"test:production-lint": "eslint dist --config=./scripts/production-eslint-config.js --quiet --format friendly",
2025-04-09 08:38:46 +08:00
"perf": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/prettier/bin/prettier.cjs",
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/prettier/bin/prettier.cjs",
2022-05-01 22:29:45 +08:00
"perf:benchmark": "yarn perf --debug-benchmark",
2022-08-06 06:25:34 +03:00
"perf:compare": "./scripts/benchmark/compare.sh",
2025-03-07 19:24:30 +08:00
"lint": "run-p --continue-on-error \"lint:*\"",
2020-02-14 18:20:38 +08:00
"lint:typecheck": "tsc",
"lint:eslint": "cross-env EFF_NO_LINK_RULES=true eslint . --format friendly",
2023-03-28 16:18:53 +08:00
"lint:changelog": "node ./scripts/lint-changelog.js",
2024-01-19 17:20:41 +08:00
"lint:prettier": "prettier . --check --cache",
2022-01-27 15:03:49 +08:00
"lint:spellcheck": "cspell --no-progress --relative --dot --gitignore",
2023-03-28 16:18:53 +08:00
"lint:deps": "node ./scripts/check-deps.js",
2024-09-18 16:40:10 +08:00
"lint:knip": "knip",
"lint:format-test": "node ./scripts/format-test-lint.js",
2025-03-07 19:24:30 +08:00
"fix": "run-s --continue-on-error fix:eslint fix:prettier",
2020-08-06 09:04:02 +08:00
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn lint:prettier --write",
2025-12-14 23:22:28 +08:00
"fix:builtin-plugins": "yarn generate-builtin-plugins",
"fix:flow-estree-type-definition": "yarn generate-flow-estree-type-definition",
2023-03-28 16:18:53 +08:00
"build": "node ./scripts/build/build.js",
2023-09-04 19:54:16 +08:00
"build:website": "node ./scripts/build-website.js",
2025-09-23 18:39:18 +09:00
"build:website:pr": "cross-env PULL_REQUEST=true yarn build:website",
"generate-changelog": "node ./scripts/generate-changelog.js",
2025-12-14 23:22:28 +08:00
"generate-builtin-plugins": "node scripts/generate-builtin-plugins.js",
"generate-flow-estree-type-definition": "node scripts/generate-flow-estree-type-definition.js",
2025-12-14 23:22:28 +08:00
"debug": "node bin/prettier.js --ignore-path=.prettierignore",
"debug:watch": "node --watch bin/prettier.js --ignore-path=.prettierignore",
"debug:inspect": "node --inspect-brk bin/prettier.js --ignore-path=.prettierignore"
},
2022-01-04 17:00:25 +08:00
"c8": {
"reporter": [
"lcov",
"text"
2022-10-17 08:25:32 +08:00
],
2022-10-22 23:33:08 +08:00
"all": true,
2022-10-17 08:25:32 +08:00
"include": [
"src/**",
"bin/**"
],
"exclude": [
2022-10-22 23:33:08 +08:00
"bin/prettier.js",
2022-10-17 08:25:32 +08:00
"src/standalone.js",
2022-10-22 23:33:08 +08:00
"src/index.cjs",
"src/document/debug.js",
"src/universal/*.browser.js",
2025-12-01 07:25:25 +08:00
"src/utilities/unexpected-node-error.js",
"src/plugins/**",
"src/language-js/types/estree.d.ts",
"src/**/**/*.d.ts"
2022-01-04 17:00:25 +08:00
]
},
"browserslist": [
">0.5%",
"not dead",
"not op_mini all"
2022-05-06 20:27:33 +08:00
],
"preferUnplugged": true,
2026-06-16 02:26:50 +08:00
"packageManager": "yarn@4.17.0",
"sideEffects": false
}