2016-11-29 12:14:10 -05:00
|
|
|
{
|
2017-01-09 22:45:22 -05:00
|
|
|
"name": "prettier",
|
2021-11-25 22:57:21 +09:00
|
|
|
"version": "2.6.0-dev",
|
2017-07-01 17:14:24 -07:00
|
|
|
"description": "Prettier is an opinionated code formatter",
|
2020-01-13 20:17:24 +08:00
|
|
|
"bin": "./bin/prettier.js",
|
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",
|
2017-01-13 21:11:03 -07:00
|
|
|
"license": "MIT",
|
2016-11-29 15:23:00 -05:00
|
|
|
"main": "./index.js",
|
2020-05-25 09:51:54 +03:00
|
|
|
"browser": "./standalone.js",
|
|
|
|
|
"unpkg": "./standalone.js",
|
2017-09-16 19:47:53 +03:00
|
|
|
"engines": {
|
2021-05-11 08:52:38 +08:00
|
|
|
"node": ">=12.17.0"
|
2017-09-16 19:47:53 +03:00
|
|
|
},
|
2020-04-23 10:37:09 +08:00
|
|
|
"files": [
|
|
|
|
|
"index.js",
|
|
|
|
|
"standalone.js",
|
|
|
|
|
"src",
|
|
|
|
|
"bin"
|
|
|
|
|
],
|
2017-06-17 17:36:50 +03:00
|
|
|
"dependencies": {
|
2021-12-16 14:17:56 +08:00
|
|
|
"@angular/compiler": "12.2.15",
|
2021-10-31 08:36:47 +00:00
|
|
|
"@babel/code-frame": "7.16.0",
|
2021-12-15 02:04:49 +00:00
|
|
|
"@babel/parser": "7.16.6",
|
2021-11-09 02:15:28 +00:00
|
|
|
"@glimmer/syntax": "0.83.1",
|
2020-04-23 13:41:17 +03:00
|
|
|
"@iarna/toml": "2.2.5",
|
2021-12-22 14:51:16 +00:00
|
|
|
"@typescript-eslint/typescript-estree": "5.8.0",
|
2021-07-08 15:28:10 +08:00
|
|
|
"angular-estree-parser": "2.5.0",
|
2021-04-12 11:53:19 +03:00
|
|
|
"angular-html-parser": "1.8.0",
|
2021-11-17 12:27:31 +09:00
|
|
|
"camelcase": "6.2.1",
|
2021-08-01 17:51:17 +09:00
|
|
|
"chalk": "4.1.2",
|
2021-11-26 06:27:58 +00:00
|
|
|
"ci-info": "3.3.0",
|
2021-01-11 10:15:37 +08:00
|
|
|
"cjk-regex": "2.0.1",
|
2021-08-23 08:29:52 +08:00
|
|
|
"cosmiconfig": "7.0.1",
|
2019-09-28 21:44:20 +08:00
|
|
|
"dashify": "2.0.0",
|
2020-11-10 08:04:15 +08:00
|
|
|
"diff": "5.0.0",
|
2019-09-28 21:41:30 +08:00
|
|
|
"editorconfig": "0.15.3",
|
2020-08-27 06:27:28 +08:00
|
|
|
"editorconfig-to-prettier": "0.2.0",
|
2020-04-23 13:41:29 +03:00
|
|
|
"escape-string-regexp": "4.0.0",
|
2021-12-06 01:22:35 +00:00
|
|
|
"espree": "9.2.0",
|
2019-09-30 19:44:43 +08:00
|
|
|
"esutils": "2.0.3",
|
2021-07-12 06:54:32 +09:00
|
|
|
"fast-glob": "3.2.7",
|
2020-06-18 23:15:06 +08:00
|
|
|
"fast-json-stable-stringify": "2.1.0",
|
2021-05-16 20:42:19 +00:00
|
|
|
"find-parent-dir": "0.3.1",
|
2021-12-23 11:31:23 +08:00
|
|
|
"flow-parser": "0.168.0",
|
2020-09-17 07:32:19 +08:00
|
|
|
"get-stdin": "8.0.0",
|
2021-06-20 02:58:19 +00:00
|
|
|
"globby": "11.0.4",
|
2021-10-11 16:17:25 +00:00
|
|
|
"graphql": "15.6.1",
|
2020-10-14 13:57:13 +03:00
|
|
|
"html-element-attributes": "2.3.0",
|
2018-10-13 13:55:38 +08:00
|
|
|
"html-styles": "1.0.0",
|
2020-01-25 16:19:59 +02:00
|
|
|
"html-tag-names": "1.1.5",
|
2020-06-23 19:58:49 +08:00
|
|
|
"html-void-elements": "1.0.5",
|
2021-12-22 15:40:57 +08:00
|
|
|
"ignore": "5.2.0",
|
2021-12-01 16:25:52 +08:00
|
|
|
"jest-docblock": "27.4.0",
|
2021-02-01 06:17:02 +00:00
|
|
|
"json5": "2.2.0",
|
2019-09-30 20:02:55 +08:00
|
|
|
"leven": "3.1.0",
|
2021-11-29 10:06:40 +08:00
|
|
|
"lines-and-columns": "2.0.3",
|
2021-06-01 10:29:22 +08:00
|
|
|
"linguist-languages": "7.15.0",
|
2021-02-21 23:48:56 +08:00
|
|
|
"lodash": "4.17.21",
|
2021-04-23 17:55:19 +08:00
|
|
|
"mem": "8.1.1",
|
2021-07-12 14:45:33 +08:00
|
|
|
"meriyah": "4.2.0",
|
2017-07-10 22:26:36 +10:00
|
|
|
"minimatch": "3.0.4",
|
2020-03-15 17:43:46 +09:00
|
|
|
"minimist": "1.2.5",
|
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-05-21 12:25:01 +08:00
|
|
|
"parse-srcset": "ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee",
|
2020-03-23 03:32:05 +02:00
|
|
|
"please-upgrade-node": "3.2.0",
|
2020-10-31 22:22:35 +09:00
|
|
|
"postcss-less": "3.1.4",
|
2017-06-01 20:38:25 -07:00
|
|
|
"postcss-media-query-parser": "0.2.3",
|
2020-10-31 22:22:35 +09:00
|
|
|
"postcss-scss": "2.1.1",
|
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",
|
2018-09-02 16:20:22 +08:00
|
|
|
"regexp-util": "1.2.2",
|
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",
|
2021-02-12 23:48:43 +00:00
|
|
|
"resolve": "1.20.0",
|
2021-03-29 10:29:08 +08:00
|
|
|
"semver": "7.3.5",
|
2021-11-22 10:52:42 +08:00
|
|
|
"string-width": "4.2.3",
|
2021-02-07 08:51:19 +08:00
|
|
|
"strip-ansi": "6.0.0",
|
2021-12-16 03:36:13 +00:00
|
|
|
"typescript": "4.5.4",
|
2019-10-01 18:54:24 +08:00
|
|
|
"unicode-regex": "3.0.0",
|
2021-02-28 19:46:02 +00:00
|
|
|
"unified": "9.2.1",
|
2018-08-31 11:26:07 +08:00
|
|
|
"vnopts": "1.0.2",
|
2021-02-07 08:51:19 +08:00
|
|
|
"wcwidth": "1.0.1",
|
2020-09-10 21:30:40 +08:00
|
|
|
"yaml-unist-parser": "1.3.1"
|
2017-06-17 17:36:50 +03:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
2021-12-14 14:26:23 +00:00
|
|
|
"@babel/core": "7.16.5",
|
2021-12-14 15:34:06 +00:00
|
|
|
"@babel/preset-env": "7.16.5",
|
2021-10-31 11:30:28 +00:00
|
|
|
"@babel/types": "7.16.0",
|
2021-11-09 15:35:55 +09:00
|
|
|
"@glimmer/reference": "0.83.1",
|
2021-10-24 10:52:25 +00:00
|
|
|
"@rollup/plugin-alias": "3.1.8",
|
2021-02-15 10:18:00 +00:00
|
|
|
"@rollup/plugin-babel": "5.3.0",
|
2021-10-24 14:55:04 +00:00
|
|
|
"@rollup/plugin-commonjs": "21.0.1",
|
2020-06-08 15:56:02 +00:00
|
|
|
"@rollup/plugin-json": "4.1.0",
|
2021-12-14 15:20:39 -03:00
|
|
|
"@rollup/plugin-node-resolve": "13.1.1",
|
2021-07-19 09:06:03 +08:00
|
|
|
"@rollup/plugin-replace": "3.0.0",
|
2021-07-11 16:21:59 +09:00
|
|
|
"@types/estree": "0.0.50",
|
2021-11-21 13:23:27 +08:00
|
|
|
"@types/jest": "27.0.3",
|
2021-12-14 15:48:17 +00:00
|
|
|
"babel-jest": "27.4.5",
|
2021-10-24 10:48:53 +00:00
|
|
|
"babel-loader": "8.2.3",
|
2018-07-01 19:49:16 -07:00
|
|
|
"benchmark": "2.1.4",
|
2020-12-23 17:05:03 +08:00
|
|
|
"builtin-modules": "3.2.0",
|
2021-12-16 12:48:09 +08:00
|
|
|
"core-js": "3.20.0",
|
2020-12-02 15:16:17 +08:00
|
|
|
"cross-env": "7.0.3",
|
2021-12-19 04:42:42 +00:00
|
|
|
"cspell": "5.13.4",
|
2021-08-13 12:47:18 +09:00
|
|
|
"enquirer": "2.3.6",
|
2021-12-18 23:46:49 -03:00
|
|
|
"eslint": "8.5.0",
|
2021-04-25 04:04:23 +00:00
|
|
|
"eslint-config-prettier": "8.3.0",
|
2019-08-08 18:21:32 +08:00
|
|
|
"eslint-formatter-friendly": "7.0.0",
|
2021-11-17 11:42:22 +00:00
|
|
|
"eslint-plugin-compat": "4.0.0",
|
2021-11-15 16:15:56 +00:00
|
|
|
"eslint-plugin-import": "2.25.3",
|
2021-11-26 13:02:51 +08:00
|
|
|
"eslint-plugin-jest": "25.3.0",
|
2021-07-21 09:10:52 +08:00
|
|
|
"eslint-plugin-prettier-internal-rules": "2.0.1",
|
2021-12-23 17:27:08 +00:00
|
|
|
"eslint-plugin-react": "7.28.0",
|
2021-11-26 06:15:03 +00:00
|
|
|
"eslint-plugin-regexp": "1.5.1",
|
2021-11-21 15:02:16 +00:00
|
|
|
"eslint-plugin-unicorn": "39.0.0",
|
2021-09-05 06:38:16 +00:00
|
|
|
"esm-utils": "2.0.0",
|
2021-06-06 12:00:59 +08:00
|
|
|
"execa": "5.1.1",
|
2021-12-14 14:38:04 +00:00
|
|
|
"jest": "27.4.5",
|
2018-09-01 12:11:19 +08:00
|
|
|
"jest-snapshot-serializer-ansi": "1.0.0",
|
2021-04-30 03:27:35 +00:00
|
|
|
"jest-snapshot-serializer-raw": "1.2.0",
|
2021-10-03 14:01:32 +00:00
|
|
|
"jest-watch-typeahead": "1.0.0",
|
2021-10-12 10:33:45 +00:00
|
|
|
"node-actionlint": "1.2.1",
|
2021-11-09 06:36:31 +00:00
|
|
|
"node-fetch": "3.1.0",
|
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": "2.5.1",
|
2021-02-22 02:07:12 +08:00
|
|
|
"pretty-bytes": "5.6.0",
|
2020-02-14 13:31:29 +02:00
|
|
|
"rimraf": "3.0.2",
|
2021-12-12 12:31:41 +08:00
|
|
|
"rollup": "2.61.1",
|
2021-12-03 07:55:01 -03:00
|
|
|
"rollup-plugin-polyfill-node": "0.8.0",
|
2020-09-07 05:57:08 +00:00
|
|
|
"rollup-plugin-terser": "7.0.2",
|
2021-06-20 11:11:26 +00:00
|
|
|
"snapshot-diff": "0.9.0",
|
2021-11-28 10:52:51 +08:00
|
|
|
"string-replace-loader": "3.1.0",
|
2021-03-22 00:03:41 +09:00
|
|
|
"tempy": "1.0.1",
|
2021-12-18 23:45:47 -03:00
|
|
|
"terser-webpack-plugin": "5.3.0",
|
2021-08-08 09:39:31 +00:00
|
|
|
"webpack": "5.49.0"
|
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",
|
2016-12-30 23:03:22 -05:00
|
|
|
"test": "jest",
|
2020-04-23 10:37:09 +08:00
|
|
|
"test:dev-package": "cross-env INSTALL_PACKAGE=1 jest",
|
2020-04-18 01:24:22 +08:00
|
|
|
"test:dist": "cross-env NODE_ENV=production jest",
|
2020-07-20 20:20:22 +08:00
|
|
|
"test:dist-standalone": "cross-env NODE_ENV=production TEST_STANDALONE=1 jest",
|
2020-02-14 18:20:38 +08:00
|
|
|
"test:integration": "jest tests/integration",
|
|
|
|
|
"perf:repeat": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
|
|
|
|
|
"perf:repeat-inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
|
|
|
|
|
"perf:benchmark": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",
|
2020-08-06 09:04:02 +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",
|
2021-05-15 20:09:52 +08:00
|
|
|
"lint:changelog": "node ./scripts/lint-changelog.mjs",
|
2020-08-25 17:39:24 +08:00
|
|
|
"lint:prettier": "prettier . \"!test*\" --check",
|
2021-08-16 15:08:19 +08:00
|
|
|
"lint:dist": "eslint --no-eslintrc --no-ignore --no-inline-config --config=./scripts/bundle-eslint-config.js \"dist/!(bin-prettier|index|third-party).js\"",
|
2021-08-12 18:55:21 +09:00
|
|
|
"lint:spellcheck": "cspell --no-progress --relative",
|
2021-05-15 20:09:52 +08:00
|
|
|
"lint:deps": "node ./scripts/check-deps.mjs",
|
2021-07-26 09:23:54 +09:00
|
|
|
"lint:actionlint": "node-actionlint",
|
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",
|
2021-11-21 14:10:50 +09:00
|
|
|
"build": "node --max-old-space-size=4096 ./scripts/build/build.mjs",
|
2021-09-11 09:55:46 +08:00
|
|
|
"build:website": "node ./scripts/build-website.mjs"
|
2021-08-16 15:08:19 +08:00
|
|
|
},
|
|
|
|
|
"browserslist": [
|
|
|
|
|
">0.5%",
|
|
|
|
|
"not ie 11",
|
|
|
|
|
"not safari 5.1",
|
|
|
|
|
"not op_mini all"
|
|
|
|
|
]
|
2017-09-01 18:17:07 +08:00
|
|
|
}
|