2016-11-29 12:14:10 -05:00
|
|
|
{
|
2017-01-09 22:45:22 -05:00
|
|
|
"name": "prettier",
|
2022-10-26 10:59:41 +08:00
|
|
|
"version": "3.0.0-alpha.4",
|
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": {
|
|
|
|
|
".": {
|
|
|
|
|
"require": "./src/index.cjs",
|
|
|
|
|
"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-01-29 13:15:29 +08:00
|
|
|
"@angular/compiler": "15.1.2",
|
2022-07-09 11:17:58 +08:00
|
|
|
"@babel/code-frame": "7.18.6",
|
2023-01-22 21:50:11 +08:00
|
|
|
"@babel/parser": "7.20.13",
|
2022-12-25 16:29:00 +08:00
|
|
|
"@babel/types": "7.20.7",
|
2022-04-17 03:26:26 +00:00
|
|
|
"@glimmer/syntax": "0.84.2",
|
2020-04-23 13:41:17 +03:00
|
|
|
"@iarna/toml": "2.2.5",
|
2022-10-30 11:53:45 +08:00
|
|
|
"@prettier/is-es5-identifier-name": "0.1.0",
|
2022-10-16 12:48:01 +08:00
|
|
|
"@prettier/parse-srcset": "2.0.2",
|
2023-01-29 13:49:34 +08:00
|
|
|
"@typescript-eslint/typescript-estree": "5.49.0",
|
|
|
|
|
"@typescript-eslint/visitor-keys": "5.49.0",
|
2023-01-29 13:21:24 +08:00
|
|
|
"acorn": "8.8.2",
|
2022-01-28 15:25:30 +08:00
|
|
|
"acorn-jsx": "5.3.2",
|
2023-01-25 12:46:00 +08:00
|
|
|
"angular-estree-parser": "5.0.2",
|
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",
|
2022-12-18 14:29:40 +08:00
|
|
|
"chalk": "5.2.0",
|
2023-01-09 09:32:05 +08:00
|
|
|
"ci-info": "3.7.1",
|
2021-01-11 10:15:37 +08:00
|
|
|
"cjk-regex": "2.0.1",
|
2022-12-15 01:51:19 -05:00
|
|
|
"collapse-white-space": "1.0.6",
|
2022-12-15 19:35:40 +08:00
|
|
|
"cosmiconfig": "8.0.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",
|
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",
|
2022-03-02 13:43:17 +08:00
|
|
|
"escape-string-regexp": "5.0.0",
|
2022-11-06 19:24:02 +08:00
|
|
|
"espree": "9.4.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-01-28 09:56:49 +08:00
|
|
|
"flow-parser": "0.198.2",
|
2022-07-12 10:28:00 +08:00
|
|
|
"get-stdin": "9.0.0",
|
2022-08-21 13:30:16 +08:00
|
|
|
"graphql": "16.6.0",
|
2022-09-03 17:12:19 +08:00
|
|
|
"hermes-eslint": "0.9.0",
|
2022-02-21 16:44:56 +08:00
|
|
|
"html-element-attributes": "3.1.0",
|
2018-10-13 13:55:38 +08:00
|
|
|
"html-styles": "1.0.0",
|
2022-02-21 16:44:56 +08:00
|
|
|
"html-tag-names": "2.0.1",
|
2022-12-25 16:30:21 +08:00
|
|
|
"ignore": "5.2.4",
|
2023-01-09 09:29:54 +08:00
|
|
|
"import-meta-resolve": "2.2.1",
|
2022-10-16 15:31:36 +08:00
|
|
|
"jest-docblock": "29.2.0",
|
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",
|
2022-06-12 01:55:11 +09:00
|
|
|
"linguist-languages": "7.21.0",
|
2022-02-06 17:31:50 +09:00
|
|
|
"mem": "9.0.2",
|
2022-11-14 20:31:58 +08:00
|
|
|
"meriyah": "4.3.3",
|
2022-03-28 02:18:16 +09:00
|
|
|
"micromatch": "4.0.5",
|
2022-10-16 13:02:44 +08:00
|
|
|
"minimist": "1.2.7",
|
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-01-09 09:29:35 +08:00
|
|
|
"postcss": "8.4.21",
|
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",
|
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",
|
2022-06-11 23:32:32 +09:00
|
|
|
"sdbm": "2.0.0",
|
2022-02-06 17:31:50 +09:00
|
|
|
"string-width": "5.0.1",
|
2022-03-02 13:42:44 +08:00
|
|
|
"strip-ansi": "7.0.1",
|
2022-08-17 09:47:08 +08:00
|
|
|
"to-fast-properties": "4.0.0",
|
2022-12-12 08:53:41 +08:00
|
|
|
"typescript": "4.9.4",
|
2022-04-01 10:48:29 +08:00
|
|
|
"unicode-regex": "3.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-01-29 13:23:15 +08:00
|
|
|
"@babel/generator": "7.20.14",
|
2023-01-29 13:50:21 +08:00
|
|
|
"@esbuild-plugins/node-modules-polyfill": "0.2.2",
|
2022-04-17 07:03:25 +00:00
|
|
|
"@glimmer/reference": "0.84.2",
|
2022-08-01 10:58:41 +08:00
|
|
|
"@types/estree": "1.0.0",
|
2022-06-11 23:32:32 +09:00
|
|
|
"@types/file-entry-cache": "5.0.2",
|
|
|
|
|
"@types/find-cache-dir": "3.2.1",
|
2023-01-29 13:31:13 +08:00
|
|
|
"@types/jest": "29.4.0",
|
2023-01-29 13:49:34 +08:00
|
|
|
"@typescript-eslint/eslint-plugin": "5.49.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",
|
2022-07-24 11:44:20 +08:00
|
|
|
"c8": "7.12.0",
|
2022-04-25 14:39:16 +08:00
|
|
|
"cross-env": "7.0.3",
|
2023-01-22 20:29:11 +08:00
|
|
|
"cspell": "6.19.2",
|
2022-04-25 14:39:16 +08:00
|
|
|
"enquirer": "2.3.6",
|
2023-01-29 13:15:54 +08:00
|
|
|
"esbuild": "0.17.5",
|
2022-12-12 08:47:49 +08:00
|
|
|
"esbuild-visualizer": "0.4.0",
|
2023-01-29 13:49:04 +08:00
|
|
|
"eslint": "8.33.0",
|
2023-01-09 09:23:58 +08:00
|
|
|
"eslint-config-prettier": "8.6.0",
|
2022-04-25 14:39:16 +08:00
|
|
|
"eslint-formatter-friendly": "7.0.0",
|
|
|
|
|
"eslint-plugin-compat": "4.0.2",
|
2023-01-22 20:29:51 +08:00
|
|
|
"eslint-plugin-import": "2.27.5",
|
2023-01-09 09:31:56 +08:00
|
|
|
"eslint-plugin-jest": "27.2.1",
|
2023-01-15 09:57:38 +08:00
|
|
|
"eslint-plugin-n": "15.6.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-01-09 09:23:36 +08:00
|
|
|
"eslint-plugin-regexp": "1.12.0",
|
2022-12-18 11:28:28 +08:00
|
|
|
"eslint-plugin-unicorn": "45.0.2",
|
2022-11-27 22:30:20 +08:00
|
|
|
"esm-utils": "4.1.1",
|
2022-02-16 08:33:48 +08:00
|
|
|
"execa": "6.1.0",
|
2023-01-29 13:31:13 +08:00
|
|
|
"jest": "29.4.1",
|
2022-10-30 11:05:09 +08:00
|
|
|
"jest-light-runner": "0.4.1",
|
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",
|
2023-01-29 13:26:40 +08:00
|
|
|
"jest-watch-typeahead": "2.2.2",
|
2022-12-05 10:23:46 +08:00
|
|
|
"magic-string": "0.27.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.8.3",
|
2022-04-03 20:01:46 +00:00
|
|
|
"pretty-bytes": "6.0.0",
|
2022-11-06 19:48:57 +08:00
|
|
|
"rollup-plugin-license": "3.0.1",
|
2022-10-23 11:18:36 +08:00
|
|
|
"semver": "7.3.8",
|
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",
|
2022-07-20 09:50:25 +08:00
|
|
|
"tempy": "3.0.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}\"",
|
2022-05-01 22:29:45 +08:00
|
|
|
"perf": "yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js",
|
|
|
|
|
"perf:inspect": "yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js",
|
|
|
|
|
"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",
|
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",
|
2022-01-27 15:03:49 +08:00
|
|
|
"lint:spellcheck": "cspell --no-progress --relative --dot --gitignore",
|
2021-05-15 20:09:52 +08:00
|
|
|
"lint:deps": "node ./scripts/check-deps.mjs",
|
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",
|
2022-01-09 01:15:04 +08:00
|
|
|
"build": "node ./scripts/build/build.mjs",
|
2022-02-28 19:48:14 +08:00
|
|
|
"build:website": "node ./scripts/build-website.mjs"
|
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",
|
|
|
|
|
"src/language-js/types/estree.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
|
|
|
],
|
2022-12-25 16:29:50 +08:00
|
|
|
"packageManager": "yarn@3.3.1"
|
2017-09-01 18:17:07 +08:00
|
|
|
}
|