preact
Version:
Fast 4kb React-compatible Virtual DOM library.
214 lines • 6.26 kB
JSON
{
"name": "preact",
"amdName": "preact",
"version": "11.0.0",
"private": false,
"publishConfig": {
"access": "public",
"provenance": true
},
"description": "Fast 4kb React-compatible Virtual DOM library.",
"main": "dist/preact.mjs",
"module": "dist/preact.mjs",
"source": "src/index.js",
"exports": {
".": {
"types": "./src/index.d.ts",
"default": "./dist/preact.mjs"
},
"./compat": {
"types": "./compat/src/index.d.ts",
"default": "./compat/dist/compat.mjs"
},
"./debug": {
"types": "./debug/src/index.d.ts",
"default": "./debug/dist/debug.mjs"
},
"./devtools": {
"types": "./devtools/src/index.d.ts",
"default": "./devtools/dist/devtools.mjs"
},
"./hooks": {
"types": "./hooks/src/index.d.ts",
"default": "./hooks/dist/hooks.mjs"
},
"./test-utils": {
"types": "./test-utils/src/index.d.ts",
"default": "./test-utils/dist/testUtils.mjs"
},
"./compat/test-utils": {
"types": "./test-utils/src/index.d.ts",
"default": "./test-utils/dist/testUtils.mjs"
},
"./jsx-runtime": {
"types": "./jsx-runtime/src/index.d.ts",
"default": "./jsx-runtime/dist/jsxRuntime.mjs"
},
"./jsx-dev-runtime": {
"types": "./jsx-runtime/src/index.d.ts",
"default": "./jsx-runtime/dist/jsxRuntime.mjs"
},
"./compat/client": {
"types": "./compat/client.d.ts",
"import": "./compat/client.mjs",
"require": "./compat/client.js"
},
"./compat/server": {
"types": "./compat/server.d.ts",
"browser": "./compat/server.browser.js",
"import": "./compat/server.mjs",
"require": "./compat/server.js"
},
"./compat/server.browser": {
"types": "./compat/server.d.ts",
"default": "./compat/server.browser.js"
},
"./compat/jsx-runtime": {
"types": "./jsx-runtime/src/index.d.ts",
"import": "./compat/jsx-runtime.mjs",
"require": "./compat/jsx-runtime.js"
},
"./compat/jsx-dev-runtime": {
"types": "./jsx-runtime/src/index.d.ts",
"import": "./compat/jsx-dev-runtime.mjs",
"require": "./compat/jsx-dev-runtime.js"
},
"./compat/scheduler": {
"types": "./compat/scheduler.d.ts",
"import": "./compat/scheduler.mjs",
"require": "./compat/scheduler.js"
},
"./package.json": "./package.json",
"./compat/package.json": "./compat/package.json",
"./debug/package.json": "./debug/package.json",
"./devtools/package.json": "./devtools/package.json",
"./hooks/package.json": "./hooks/package.json",
"./test-utils/package.json": "./test-utils/package.json",
"./jsx-runtime/package.json": "./jsx-runtime/package.json"
},
"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/preact"
},
"types": "src/index.d.ts",
"nano-staged": {
"**/*.{js,jsx,mjs,cjs,ts,tsx,yml,json,html,md,css,scss}": [
"oxfmt --write --no-error-on-unmatched-pattern"
]
},
"files": [
"src",
"dist",
"compat/dist",
"compat/src",
"compat/client.d.ts",
"compat/client.js",
"compat/client.mjs",
"compat/server.d.ts",
"compat/server.browser.js",
"compat/server.js",
"compat/server.mjs",
"compat/scheduler.d.ts",
"compat/scheduler.js",
"compat/scheduler.mjs",
"compat/test-utils.js",
"compat/test-utils.mjs",
"compat/jsx-runtime.js",
"compat/jsx-runtime.mjs",
"compat/jsx-dev-runtime.js",
"compat/jsx-dev-runtime.mjs",
"compat/package.json",
"debug/dist",
"debug/src",
"debug/package.json",
"devtools/dist",
"devtools/src",
"devtools/package.json",
"hooks/dist",
"hooks/src",
"hooks/package.json",
"jsx-runtime/dist",
"jsx-runtime/src",
"jsx-runtime/package.json",
"test-utils/src",
"test-utils/package.json",
"test-utils/dist"
],
"keywords": [
"preact",
"react",
"ui",
"user interface",
"virtual dom",
"vdom",
"components",
"dom diff",
"front-end",
"framework"
],
"authors": [
"The Preact Authors (https://github.com/preactjs/preact/contributors)"
],
"repository": "preactjs/preact",
"bugs": "https://github.com/preactjs/preact/issues",
"homepage": "https://preactjs.com",
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/preset-env": "^7.29.7",
"@rollup/plugin-babel": "^6.1.0",
"@types/chai": "^5.2.2",
"@types/node": "^22.20.1",
"@vitest/browser": "^5.0.0",
"@vitest/browser-playwright": "^5.0.0",
"@vitest/coverage-v8": "^5.0.0",
"babel-plugin-transform-rename-properties": "0.1.0",
"chai": "^6.2.2",
"cross-env": "^7.0.3",
"husky": "^9.1.7",
"kolorist": "^1.8.0",
"nano-staged": "^1.0.2",
"npm-run-all2": "^7.0.0",
"oxfmt": "^0.32.0",
"oxlint": "^1.8.0",
"playwright": "^1.54.1",
"preact-render-to-string": "^6.5.0",
"prop-types": "^15.8.1",
"rollup": "^4.62.2",
"terser": "5.16.0",
"typescript": "5.1.6",
"vitest": "^5.0.0"
},
"peerDependencies": {
"preact-render-to-string": ">=6.7.0"
},
"peerDependenciesMeta": {
"preact-render-to-string": {
"optional": true
}
},
"volta": {
"node": "22.22.2"
},
"scripts": {
"build": "node ./scripts/build.mjs",
"postbuild": "node ./config/compat-entries.js",
"dev": "node ./scripts/build.mjs --watch",
"dev:hooks": "node ./scripts/build.mjs --watch hooks",
"dev:compat": "node ./scripts/build.mjs --watch compat",
"test": "npm-run-all build lint test:unit",
"test:install": "playwright install chromium",
"test:unit": "run-p test:vitest:min test:ts",
"test:vitest": "cross-env COVERAGE=true vitest run",
"test:vitest:min": "cross-env MINIFY=true vitest run",
"test:vitest:watch": "vitest",
"test:ts": "run-p 'test:ts:*'",
"test:ts:core": "tsc -p test/ts/",
"test:ts:compat": "tsc -p compat/test/ts/",
"lint": "run-s oxlint tsc",
"tsc": "tsc -p jsconfig-lint.json",
"oxlint": "oxlint src test/browser test/node test/shared debug compat hooks test-utils",
"format": "oxfmt . --write",
"format:check": "oxfmt --check ."
}
}