package.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. {
  2. "_from": "preact@^10.0.0",
  3. "_id": "preact@10.7.2",
  4. "_inBundle": false,
  5. "_integrity": "sha512-GLjn0I3r6ka+NvxJUppsVFqb4V0qDTEHT/QxHlidPuClGaxF/4AI2Qti4a0cv3XMh5n1+D3hLScW10LRIm5msQ==",
  6. "_location": "/preact",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "preact@^10.0.0",
  12. "name": "preact",
  13. "escapedName": "preact",
  14. "rawSpec": "^10.0.0",
  15. "saveSpec": null,
  16. "fetchSpec": "^10.0.0"
  17. },
  18. "_requiredBy": [
  19. "/@docsearch/js"
  20. ],
  21. "_resolved": "https://registry.npmjs.org/preact/-/preact-10.7.2.tgz",
  22. "_shasum": "5c632ba194b87345dcaee6598b3b6529b58e6a12",
  23. "_spec": "preact@^10.0.0",
  24. "_where": "D:\\work\\liebao-developApi\\node_modules\\@docsearch\\js",
  25. "amdName": "preact",
  26. "authors": [
  27. "The Preact Authors (https://github.com/preactjs/preact/contributors)"
  28. ],
  29. "bugs": {
  30. "url": "https://github.com/preactjs/preact/issues"
  31. },
  32. "bundleDependencies": false,
  33. "deprecated": false,
  34. "description": "Fast 3kb React-compatible Virtual DOM library.",
  35. "devDependencies": {
  36. "@actions/github": "^5.0.0",
  37. "@actions/glob": "^0.2.0",
  38. "@babel/core": "^7.7.0",
  39. "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
  40. "@babel/plugin-transform-react-jsx": "^7.7.0",
  41. "@babel/plugin-transform-react-jsx-source": "^7.7.4",
  42. "@babel/preset-env": "^7.7.1",
  43. "@babel/register": "^7.7.0",
  44. "@types/chai": "^4.1.2",
  45. "@types/mocha": "^5.0.0",
  46. "@types/node": "^14.14.10",
  47. "babel-plugin-istanbul": "^6.0.0",
  48. "babel-plugin-transform-async-to-promises": "^0.8.15",
  49. "babel-plugin-transform-rename-properties": "0.1.0",
  50. "benchmark": "^2.1.4",
  51. "chai": "^4.1.2",
  52. "check-export-map": "^1.3.0",
  53. "coveralls": "^3.0.0",
  54. "cross-env": "^7.0.2",
  55. "diff": "^5.0.0",
  56. "errorstacks": "^2.4.0",
  57. "esbuild": "^0.14.25",
  58. "eslint": "5.15.1",
  59. "eslint-config-developit": "^1.1.1",
  60. "eslint-config-prettier": "^6.5.0",
  61. "eslint-plugin-react": "7.12.4",
  62. "husky": "^4.3.0",
  63. "karma": "^6.3.16",
  64. "karma-chai-sinon": "^0.1.5",
  65. "karma-chrome-launcher": "^3.1.0",
  66. "karma-coverage": "^2.1.0",
  67. "karma-esbuild": "^2.2.4",
  68. "karma-mocha": "^2.0.1",
  69. "karma-mocha-reporter": "^2.2.5",
  70. "karma-sauce-launcher": "^4.3.4",
  71. "karma-sinon": "^1.0.5",
  72. "karma-sourcemap-loader": "^0.3.7",
  73. "kolorist": "^1.2.10",
  74. "lint-staged": "^10.5.2",
  75. "lodash": "^4.17.20",
  76. "microbundle": "^0.11.0",
  77. "mocha": "^8.2.1",
  78. "npm-merge-driver-install": "^1.1.1",
  79. "npm-run-all": "^4.0.0",
  80. "prettier": "^1.18.2",
  81. "prop-types": "^15.7.2",
  82. "sade": "^1.7.4",
  83. "sinon": "^9.2.3",
  84. "sinon-chai": "^3.5.0",
  85. "typescript": "4.4.2",
  86. "undici": "^4.12.0"
  87. },
  88. "eslintConfig": {
  89. "extends": [
  90. "developit",
  91. "prettier"
  92. ],
  93. "settings": {
  94. "react": {
  95. "pragma": "createElement"
  96. }
  97. },
  98. "rules": {
  99. "camelcase": [
  100. 1,
  101. {
  102. "allow": [
  103. "__test__*",
  104. "unstable_*",
  105. "UNSAFE_*"
  106. ]
  107. }
  108. ],
  109. "no-unused-vars": [
  110. 2,
  111. {
  112. "args": "none",
  113. "varsIgnorePattern": "^h|React$"
  114. }
  115. ],
  116. "prefer-rest-params": 0,
  117. "prefer-spread": 0,
  118. "no-cond-assign": 0,
  119. "react/jsx-no-bind": 0,
  120. "react/no-danger": "off",
  121. "react/prefer-stateless-function": 0,
  122. "react/sort-comp": 0,
  123. "jest/valid-expect": 0,
  124. "jest/no-disabled-tests": 0,
  125. "jest/no-test-callback": 0,
  126. "jest/expect-expect": 0,
  127. "jest/no-standalone-expect": 0,
  128. "jest/no-export": 0,
  129. "react/no-find-dom-node": 0
  130. }
  131. },
  132. "eslintIgnore": [
  133. "test/fixtures",
  134. "test/ts/",
  135. "*.ts",
  136. "dist"
  137. ],
  138. "exports": {
  139. ".": {
  140. "types": "./src/index.d.ts",
  141. "browser": "./dist/preact.module.js",
  142. "umd": "./dist/preact.umd.js",
  143. "import": "./dist/preact.mjs",
  144. "require": "./dist/preact.js"
  145. },
  146. "./compat": {
  147. "types": "./compat/src/index.d.ts",
  148. "browser": "./compat/dist/compat.module.js",
  149. "umd": "./compat/dist/compat.umd.js",
  150. "import": "./compat/dist/compat.mjs",
  151. "require": "./compat/dist/compat.js"
  152. },
  153. "./debug": {
  154. "browser": "./debug/dist/debug.module.js",
  155. "umd": "./debug/dist/debug.umd.js",
  156. "import": "./debug/dist/debug.mjs",
  157. "require": "./debug/dist/debug.js"
  158. },
  159. "./devtools": {
  160. "types": "./devtools/src/index.d.ts",
  161. "browser": "./devtools/dist/devtools.module.js",
  162. "umd": "./devtools/dist/devtools.umd.js",
  163. "import": "./devtools/dist/devtools.mjs",
  164. "require": "./devtools/dist/devtools.js"
  165. },
  166. "./hooks": {
  167. "types": "./hooks/src/index.d.ts",
  168. "browser": "./hooks/dist/hooks.module.js",
  169. "umd": "./hooks/dist/hooks.umd.js",
  170. "import": "./hooks/dist/hooks.mjs",
  171. "require": "./hooks/dist/hooks.js"
  172. },
  173. "./test-utils": {
  174. "types": "./test-utils/src/index.d.ts",
  175. "browser": "./test-utils/dist/testUtils.module.js",
  176. "umd": "./test-utils/dist/testUtils.umd.js",
  177. "import": "./test-utils/dist/testUtils.mjs",
  178. "require": "./test-utils/dist/testUtils.js"
  179. },
  180. "./jsx-runtime": {
  181. "types": "./jsx-runtime/src/index.d.ts",
  182. "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
  183. "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
  184. "import": "./jsx-runtime/dist/jsxRuntime.mjs",
  185. "require": "./jsx-runtime/dist/jsxRuntime.js"
  186. },
  187. "./jsx-dev-runtime": {
  188. "browser": "./jsx-runtime/dist/jsxRuntime.module.js",
  189. "umd": "./jsx-runtime/dist/jsxRuntime.umd.js",
  190. "import": "./jsx-runtime/dist/jsxRuntime.mjs",
  191. "require": "./jsx-runtime/dist/jsxRuntime.js"
  192. },
  193. "./compat/client": {
  194. "import": "./compat/client.mjs",
  195. "require": "./compat/client.js"
  196. },
  197. "./compat/server": {
  198. "import": "./compat/server.mjs",
  199. "require": "./compat/server.js"
  200. },
  201. "./compat/jsx-runtime": {
  202. "import": "./compat/jsx-runtime.mjs",
  203. "require": "./compat/jsx-runtime.js"
  204. },
  205. "./compat/jsx-dev-runtime": {
  206. "import": "./compat/jsx-dev-runtime.mjs",
  207. "require": "./compat/jsx-dev-runtime.js"
  208. },
  209. "./compat/scheduler": {
  210. "import": "./compat/scheduler.mjs",
  211. "require": "./compat/scheduler.js"
  212. },
  213. "./package.json": "./package.json",
  214. "./compat/package.json": "./compat/package.json",
  215. "./debug/package.json": "./debug/package.json",
  216. "./devtools/package.json": "./devtools/package.json",
  217. "./hooks/package.json": "./hooks/package.json",
  218. "./test-utils/package.json": "./test-utils/package.json",
  219. "./jsx-runtime/package.json": "./jsx-runtime/package.json"
  220. },
  221. "files": [
  222. "src",
  223. "dist",
  224. "compat/dist",
  225. "compat/src",
  226. "compat/client.js",
  227. "compat/client.mjs",
  228. "compat/server.js",
  229. "compat/server.mjs",
  230. "compat/scheduler.js",
  231. "compat/scheduler.mjs",
  232. "compat/test-utils.js",
  233. "compat/jsx-runtime.js",
  234. "compat/jsx-runtime.mjs",
  235. "compat/jsx-dev-runtime.js",
  236. "compat/jsx-dev-runtime.mjs",
  237. "compat/package.json",
  238. "debug/dist",
  239. "debug/src",
  240. "debug/package.json",
  241. "devtools/dist",
  242. "devtools/src",
  243. "devtools/package.json",
  244. "hooks/dist",
  245. "hooks/src",
  246. "hooks/package.json",
  247. "jsx-runtime/dist",
  248. "jsx-runtime/src",
  249. "jsx-runtime/package.json",
  250. "test-utils/src",
  251. "test-utils/package.json",
  252. "test-utils/dist"
  253. ],
  254. "funding": {
  255. "type": "opencollective",
  256. "url": "https://opencollective.com/preact"
  257. },
  258. "homepage": "https://preactjs.com",
  259. "husky": {
  260. "hooks": {
  261. "pre-commit": "lint-staged"
  262. }
  263. },
  264. "keywords": [
  265. "preact",
  266. "react",
  267. "ui",
  268. "user interface",
  269. "virtual dom",
  270. "vdom",
  271. "components",
  272. "dom diff",
  273. "front-end",
  274. "framework"
  275. ],
  276. "license": "MIT",
  277. "lint-staged": {
  278. "**/*.{js,jsx,ts,tsx,yml}": [
  279. "prettier --write"
  280. ]
  281. },
  282. "main": "dist/preact.js",
  283. "module": "dist/preact.module.js",
  284. "name": "preact",
  285. "prettier": {
  286. "singleQuote": true,
  287. "trailingComma": "none",
  288. "useTabs": true,
  289. "tabWidth": 2
  290. },
  291. "private": false,
  292. "repository": {
  293. "type": "git",
  294. "url": "git+https://github.com/preactjs/preact.git"
  295. },
  296. "scripts": {
  297. "benchmark": "npm run test:karma:bench -- no-single-run",
  298. "build": "npm-run-all --parallel build:*",
  299. "build:compat": "microbundle build src/index.js src/scheduler.js --raw --cwd compat --globals 'preact/hooks=preactHooks'",
  300. "build:core": "microbundle build --raw",
  301. "build:core-min": "microbundle build --raw -f iife src/cjs.js -o dist/preact.min.js",
  302. "build:debug": "microbundle build --raw --cwd debug",
  303. "build:devtools": "microbundle build --raw --cwd devtools",
  304. "build:hooks": "microbundle build --raw --cwd hooks",
  305. "build:jsx": "microbundle build --raw --cwd jsx-runtime",
  306. "build:test-utils": "microbundle build --raw --cwd test-utils",
  307. "dev": "microbundle watch --raw --format cjs",
  308. "dev:compat": "microbundle watch --raw --format cjs --cwd compat --globals 'preact/hooks=preactHooks'",
  309. "dev:hooks": "microbundle watch --raw --format cjs --cwd hooks",
  310. "lint": "eslint src test debug compat hooks test-utils",
  311. "postbuild": "node ./config/node-13-exports.js && node ./config/compat-entries.js",
  312. "prepare": "run-s build && check-export-map",
  313. "test": "npm-run-all build lint test:unit",
  314. "test:karma": "cross-env COVERAGE=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
  315. "test:karma:bench": "cross-env PERFORMANCE=true COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test/benchmarks/**.js --single-run",
  316. "test:karma:hooks": "cross-env COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=hooks/test/browser/**.js --no-single-run",
  317. "test:karma:minify": "cross-env COVERAGE=true MINIFY=true BABEL_NO_MODULES=true karma start karma.conf.js --single-run",
  318. "test:karma:test-utils": "cross-env PERFORMANCE=false COVERAGE=false BABEL_NO_MODULES=true karma start karma.conf.js --grep=test-utils/test/shared/**.js --no-single-run",
  319. "test:karma:watch": "cross-env BABEL_NO_MODULES=true karma start karma.conf.js --no-single-run",
  320. "test:mocha": "mocha --recursive --require \"@babel/register\" test/shared test/node",
  321. "test:mocha:watch": "npm run test:mocha -- --watch",
  322. "test:ts": "run-p test:ts:*",
  323. "test:ts:compat": "tsc -p compat/test/ts/",
  324. "test:ts:core": "tsc -p test/ts/ && mocha --require \"@babel/register\" test/ts/**/*-test.js",
  325. "test:unit": "run-p test:mocha test:karma:minify test:ts"
  326. },
  327. "source": "src/index.js",
  328. "types": "src/index.d.ts",
  329. "umd:main": "dist/preact.umd.js",
  330. "unpkg": "dist/preact.min.js",
  331. "version": "10.7.2"
  332. }