2016-11-29 12:14:10 -05:00
|
|
|
{
|
2017-01-09 22:45:22 -05:00
|
|
|
"name": "prettier",
|
2023-07-05 21:41:09 +09:00
|
|
|
"version": "3.1.0-dev",
|
2017-07-01 17:14:24 -07:00
|
|
|
"description": "Prettier is an opinionated code formatter",
|
2022-04-03 00:04:45 +08:00
|
|
|
"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",
|
2017-01-11 15:40:29 +00:00
|
|
|
"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",
|
2020-05-25 09:51:54 +03:00
|
|
|
"browser": "./standalone.js",
|
|
|
|
|
"unpkg": "./standalone.js",
|
2022-10-06 15:20:19 +08:00
|
|
|
"exports": {
|
|
|
|
|
".": {
|
2023-02-23 22:15:18 +09:00
|
|
|
"types": "./src/index.d.ts",
|
2023-03-31 14:15:09 +08:00
|
|
|
"require": "./src/index.cjs",
|
2022-10-06 15:20:19 +08:00
|
|
|
"default": "./src/index.js"
|
|
|
|
|
},
|
2022-10-16 12:47:33 +08:00
|
|
|
"./*": "./*"
|
2022-10-06 15:20:19 +08:00
|
|
|
},
|
2017-09-16 19:47:53 +03:00
|
|
|
"engines": {
|
2022-09-08 01:03:45 +09:00
|
|
|
"node": ">=16"
|
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
|
|
|
],
|
2017-06-17 17:36:50 +03:00
|
|
|
"dependencies": {
|
2023-07-17 15:44:30 +08:00
|
|
|
"@angular/compiler": "16.1.5",
|
2023-06-11 16:48:51 +08:00
|
|
|
"@babel/code-frame": "7.22.5",
|
2023-07-10 01:42:43 +08:00
|
|
|
"@babel/parser": "7.22.7",
|
2023-06-11 16:48:51 +08:00
|
|
|
"@babel/types": "7.22.5",
|
2023-03-27 11:14:55 +08:00
|
|
|
"@glimmer/syntax": "0.84.3",
|
2020-04-23 13:41:17 +03:00
|
|
|
"@iarna/toml": "2.2.5",
|
2023-07-09 14:37:57 +08:00
|
|
|
"@prettier/is-es5-identifier-name": "0.2.0",
|
2023-04-05 16:51:32 +08:00
|
|
|
"@prettier/parse-srcset": "3.0.0",
|
2023-07-09 14:42:04 +08:00
|
|
|
"@typescript-eslint/typescript-estree": "5.61.0",
|
|
|
|
|
"@typescript-eslint/visitor-keys": "5.61.0",
|
2023-07-10 01:43:24 +08:00
|
|
|
"acorn": "8.10.0",
|
2022-01-28 15:25:30 +08:00
|
|
|
"acorn-jsx": "5.3.2",
|
2023-05-05 10:27:46 +08:00
|
|
|
"angular-estree-parser": "7.0.0",
|
2023-01-30 15:06:06 +08:00
|
|
|
"angular-html-parser": "4.0.1",
|
2022-12-18 11:27:53 +08:00
|
|
|
"camelcase": "7.0.1",
|
2023-07-09 14:42:34 +08:00
|
|
|
"chalk": "5.3.0",
|
2023-02-12 19:07:30 +08:00
|
|
|
"ci-info": "3.8.0",
|
2023-07-10 19:45:18 +08:00
|
|
|
"cjk-regex": "3.0.0",
|
2022-12-15 01:51:19 -05:00
|
|
|
"collapse-white-space": "1.0.6",
|
2023-07-04 11:27:37 +08:00
|
|
|
"cosmiconfig": "8.2.0",
|
2022-08-22 14:14:32 +08:00
|
|
|
"css-units-list": "2.0.1",
|
2019-09-28 21:44:20 +08:00
|
|
|
"dashify": "2.0.0",
|
2022-05-29 11:07:03 +08:00
|
|
|
"diff": "5.1.0",
|
2023-05-06 16:56:49 +08:00
|
|
|
"eastasianwidth": "0.2.0",
|
2019-09-28 21:41:30 +08:00
|
|
|
"editorconfig": "0.15.3",
|
2023-03-18 12:55:30 -04:00
|
|
|
"editorconfig-to-prettier": "1.0.0",
|
2023-05-06 16:56:49 +08:00
|
|
|
"emoji-regex": "10.2.1",
|
2022-03-02 13:43:17 +08:00
|
|
|
"escape-string-regexp": "5.0.0",
|
2023-07-17 15:48:28 +08:00
|
|
|
"espree": "9.6.1",
|
2022-09-13 10:18:24 +08:00
|
|
|
"fast-glob": "3.2.12",
|
2020-06-18 23:15:06 +08:00
|
|
|
"fast-json-stable-stringify": "2.1.0",
|
2022-06-11 23:32:32 +09:00
|
|
|
"file-entry-cache": "6.0.1",
|
2022-11-12 14:45:39 +09:00
|
|
|
"find-cache-dir": "4.0.0",
|
2021-05-16 20:42:19 +00:00
|
|
|
"find-parent-dir": "0.3.1",
|
2023-07-09 14:43:57 +08:00
|
|
|
"flow-parser": "0.211.1",
|
2022-07-12 10:28:00 +08:00
|
|
|
"get-stdin": "9.0.0",
|
2023-06-28 14:17:04 +08:00
|
|
|
"graphql": "16.7.1",
|
2023-07-03 09:41:40 +08:00
|
|
|
"hermes-parser": "0.14.0",
|
2023-04-10 08:23:11 +08:00
|
|
|
"html-element-attributes": "3.2.0",
|
2018-10-13 13:55:38 +08:00
|
|
|
"html-styles": "1.0.0",
|
2023-03-29 09:14:24 +08:00
|
|
|
"html-tag-names": "2.1.0",
|
2022-12-25 16:30:21 +08:00
|
|
|
"ignore": "5.2.4",
|
2023-05-04 17:00:17 +08:00
|
|
|
"import-meta-resolve": "3.0.0",
|
2023-02-19 18:55:43 +08:00
|
|
|
"jest-docblock": "29.4.3",
|
2023-01-03 10:29:14 +08:00
|
|
|
"json5": "2.2.3",
|
2022-03-02 13:41:59 +08:00
|
|
|
"leven": "4.0.0",
|
2021-11-29 10:06:40 +08:00
|
|
|
"lines-and-columns": "2.0.3",
|
2023-07-15 21:07:01 +08:00
|
|
|
"linguist-languages": "7.26.1",
|
2022-02-06 17:31:50 +09:00
|
|
|
"mem": "9.0.2",
|
2023-05-16 20:36:25 +08:00
|
|
|
"meriyah": "4.3.7",
|
2022-03-28 02:18:16 +09:00
|
|
|
"micromatch": "4.0.5",
|
2023-02-12 19:08:12 +08:00
|
|
|
"minimist": "1.2.8",
|
2020-11-14 10:51:46 +00:00
|
|
|
"n-readlines": "1.0.1",
|
2020-12-17 14:22:15 +08:00
|
|
|
"outdent": "0.8.0",
|
2020-03-23 03:32:05 +02:00
|
|
|
"please-upgrade-node": "3.2.0",
|
2023-07-17 15:48:48 +08:00
|
|
|
"postcss": "8.4.26",
|
2022-01-17 09:19:34 +08:00
|
|
|
"postcss-less": "6.0.0",
|
2017-06-01 20:38:25 -07:00
|
|
|
"postcss-media-query-parser": "0.2.3",
|
2022-11-27 22:33:50 +08:00
|
|
|
"postcss-scss": "4.0.6",
|
2017-06-01 20:38:25 -07:00
|
|
|
"postcss-selector-parser": "2.2.3",
|
2019-11-17 11:02:55 +01:00
|
|
|
"postcss-values-parser": "2.0.1",
|
2023-07-10 19:45:18 +08:00
|
|
|
"regexp-util": "2.0.0",
|
2020-08-24 07:04:15 +00:00
|
|
|
"remark-footnotes": "2.0.0",
|
2020-11-16 01:03:35 +08:00
|
|
|
"remark-math": "3.0.1",
|
2020-07-20 14:13:07 +03:00
|
|
|
"remark-parse": "8.0.3",
|
2022-06-11 23:32:32 +09:00
|
|
|
"sdbm": "2.0.0",
|
2023-05-28 19:24:15 +08:00
|
|
|
"strip-ansi": "7.1.0",
|
2022-08-17 09:47:08 +08:00
|
|
|
"to-fast-properties": "4.0.0",
|
2023-07-09 14:36:06 +08:00
|
|
|
"typescript": "5.1.6",
|
2023-07-10 19:45:18 +08:00
|
|
|
"unicode-regex": "4.0.0",
|
2022-05-08 17:36:02 +08:00
|
|
|
"unified": "9.2.2",
|
2018-08-31 11:26:07 +08:00
|
|
|
"vnopts": "1.0.2",
|
2022-04-01 11:27:38 +08:00
|
|
|
"wcwidth": "1.0.1",
|
2022-10-16 11:53:24 +08:00
|
|
|
"yaml-unist-parser": "2.0.1"
|
2017-06-17 17:36:50 +03:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2023-07-17 15:45:43 +08:00
|
|
|
"@babel/generator": "7.22.9",
|
2023-01-29 13:50:21 +08:00
|
|
|
"@esbuild-plugins/node-modules-polyfill": "0.2.2",
|
2023-03-27 13:35:51 +08:00
|
|
|
"@glimmer/reference": "0.84.3",
|
2023-04-23 12:06:07 +08:00
|
|
|
"@types/estree": "1.0.1",
|
2022-06-11 23:32:32 +09:00
|
|
|
"@types/file-entry-cache": "5.0.2",
|
|
|
|
|
"@types/find-cache-dir": "3.2.1",
|
2023-06-04 20:19:57 +08:00
|
|
|
"@types/jest": "29.5.2",
|
2023-07-09 14:42:04 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "5.61.0",
|
2018-07-01 19:49:16 -07:00
|
|
|
"benchmark": "2.1.4",
|
2022-09-05 00:58:46 +08:00
|
|
|
"browserslist-to-esbuild": "1.2.0",
|
2023-06-18 11:40:16 +08:00
|
|
|
"c8": "8.0.0",
|
2022-04-25 14:39:16 +08:00
|
|
|
"cross-env": "7.0.3",
|
2023-07-17 15:49:52 +08:00
|
|
|
"cspell": "6.31.2",
|
2022-04-25 14:39:16 +08:00
|
|
|
"enquirer": "2.3.6",
|
2023-07-17 15:44:02 +08:00
|
|
|
"esbuild": "0.18.13",
|
2023-06-26 18:58:04 +08:00
|
|
|
"esbuild-visualizer": "0.4.1",
|
2023-07-03 09:53:34 +08:00
|
|
|
"eslint": "8.44.0",
|
2023-04-10 02:23:34 +08:00
|
|
|
"eslint-config-prettier": "8.8.0",
|
2022-04-25 14:39:16 +08:00
|
|
|
"eslint-formatter-friendly": "7.0.0",
|
2023-04-10 02:24:41 +08:00
|
|
|
"eslint-plugin-compat": "4.1.4",
|
2023-01-22 20:29:51 +08:00
|
|
|
"eslint-plugin-import": "2.27.5",
|
2023-07-17 15:49:31 +08:00
|
|
|
"eslint-plugin-jest": "27.2.3",
|
2023-06-26 18:57:18 +08:00
|
|
|
"eslint-plugin-n": "16.0.1",
|
2022-04-25 14:39:16 +08:00
|
|
|
"eslint-plugin-prettier-internal-rules": "2.0.1",
|
2023-01-30 06:10:41 +08:00
|
|
|
"eslint-plugin-react": "7.32.2",
|
2023-05-22 04:35:58 +09:00
|
|
|
"eslint-plugin-regexp": "1.15.0",
|
2023-07-17 15:46:04 +08:00
|
|
|
"eslint-plugin-unicorn": "48.0.0",
|
2023-03-19 18:27:04 +08:00
|
|
|
"esm-utils": "4.1.2",
|
2023-03-20 09:26:11 +08:00
|
|
|
"execa": "7.1.1",
|
2023-07-10 01:25:23 +08:00
|
|
|
"jest": "29.6.1",
|
2023-06-11 16:47:20 +08:00
|
|
|
"jest-light-runner": "0.5.0",
|
2018-09-01 12:11:19 +08:00
|
|
|
"jest-snapshot-serializer-ansi": "1.0.0",
|
2023-07-17 15:41:41 +08:00
|
|
|
"jest-snapshot-serializer-raw": "2.0.0",
|
2023-01-29 13:26:40 +08:00
|
|
|
"jest-watch-typeahead": "2.2.2",
|
2023-07-09 14:37:23 +08:00
|
|
|
"magic-string": "0.30.1",
|
2020-08-06 09:04:02 +08:00
|
|
|
"npm-run-all": "4.1.5",
|
2020-10-22 13:32:50 +08:00
|
|
|
"path-browserify": "1.0.1",
|
2019-11-09 13:23:22 +01:00
|
|
|
"prettier": "3.0.0",
|
2023-02-05 11:01:37 +08:00
|
|
|
"pretty-bytes": "6.1.0",
|
2022-11-06 19:48:57 +08:00
|
|
|
"rollup-plugin-license": "3.0.1",
|
2023-07-09 15:05:51 +08:00
|
|
|
"semver": "7.5.4",
|
2023-01-16 09:52:47 +08:00
|
|
|
"serialize-javascript": "6.0.1",
|
2022-09-13 10:52:29 +08:00
|
|
|
"snapshot-diff": "0.10.0",
|
2023-07-17 15:44:49 +08:00
|
|
|
"tempy": "3.1.0",
|
2023-02-23 22:15:18 +09:00
|
|
|
"ts-expect": "1.3.0"
|
2016-12-23 19:31:38 +00:00
|
|
|
},
|
2022-09-04 04:08:42 +03:00
|
|
|
"resolutions": {
|
|
|
|
|
"trim": "1.0.1"
|
|
|
|
|
},
|
2016-12-23 19:31:38 +00:00
|
|
|
"scripts": {
|
2017-10-03 19:34:08 +11:00
|
|
|
"prepublishOnly": "echo \"Error: must publish from dist/\" && exit 1",
|
2022-07-20 23:18:24 +08:00
|
|
|
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand",
|
2022-01-12 08:47:55 +08:00
|
|
|
"test:dev-package": "cross-env INSTALL_PACKAGE=1 yarn test",
|
|
|
|
|
"test:dist": "cross-env NODE_ENV=production yarn test",
|
|
|
|
|
"test:dist-standalone": "cross-env TEST_STANDALONE=1 yarn test:dist",
|
2022-10-13 17:05:20 +08:00
|
|
|
"test:dist-lint": "eslint --no-eslintrc --no-ignore --no-inline-config --config=./scripts/bundle-eslint-config.cjs \"dist/**/*.{js,cjs,mjs}\"",
|
2023-03-08 09:18:45 +08:00
|
|
|
"perf": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin/prettier.cjs",
|
|
|
|
|
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/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",
|
2022-09-08 09:44:12 +08:00
|
|
|
"lint": "run-p \"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",
|
2020-08-25 17:39:24 +08:00
|
|
|
"lint:prettier": "prettier . \"!test*\" --check",
|
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",
|
2020-08-06 09:04:02 +08:00
|
|
|
"fix": "run-s fix:eslint fix:prettier",
|
|
|
|
|
"fix:eslint": "yarn lint:eslint --fix",
|
|
|
|
|
"fix:prettier": "yarn lint:prettier --write",
|
2023-03-28 16:18:53 +08:00
|
|
|
"build": "node ./scripts/build/build.js",
|
|
|
|
|
"build:website": "node ./scripts/build-website.js"
|
2021-08-16 15:08:19 +08:00
|
|
|
},
|
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/utils/unexpected-node-error.js",
|
2023-02-23 22:15:18 +09:00
|
|
|
"src/language-js/types/estree.d.ts",
|
|
|
|
|
"src/**/**/*.d.ts"
|
2022-01-04 17:00:25 +08:00
|
|
|
]
|
|
|
|
|
},
|
2021-08-16 15:08:19 +08:00
|
|
|
"browserslist": [
|
|
|
|
|
">0.5%",
|
|
|
|
|
"not ie 11",
|
|
|
|
|
"not safari 5.1",
|
|
|
|
|
"not op_mini all"
|
2022-05-06 20:27:33 +08:00
|
|
|
],
|
2023-07-03 09:45:06 +08:00
|
|
|
"packageManager": "yarn@3.6.1"
|
2017-09-01 18:17:07 +08:00
|
|
|
}
|