1
0
Fork 0
docsearch/packages/docsearch-core/package.json
2026-03-26 13:52:48 +01:00

72 lines
2.2 KiB
JSON

{
"name": "@docsearch/core",
"description": "Core package logic for DocSearch",
"version": "4.6.2",
"license": "MIT",
"type": "module",
"homepage": "https://docsearch.algolia.com",
"repository": {
"type": "git",
"url": "git+https://github.com/algolia/docsearch.git",
"directory": "packages/docsearch-core"
},
"author": {
"name": "Algolia, Inc.",
"url": "https://www.algolia.com"
},
"sideEffects": false,
"files": [
"dist/",
"index.js",
"useTheme.js",
"useDocSearchKeyboardEvents.js",
"useKeyboardShortcuts.js"
],
"exports": {
".": "./dist/esm/index.js",
"./useTheme": "./dist/esm/useTheme.js",
"./useDocSearchKeyboardEvents": "./dist/esm/useDocSearchKeyboardEvents.js",
"./useKeyboardShortcuts": "./dist/esm/useKeyboardShortcuts.js"
},
"source": "src/index.ts",
"types": "dist/esm/index.d.ts",
"module": "dist/esm/index.js",
"main": "dist/umd/index.js",
"umd:main": "dist/umd/index.js",
"unpkg": "dist/umd/index.js",
"jsdelivr": "dist/umd/index.js",
"scripts": {
"build:clean": "rm -rf ./dist",
"build:clean-types": "rm -rf ./dist/esm/types",
"build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm/types",
"build:source": "rollup --config --bundleConfigAsCjs",
"build:dts": "rollup --config rollup.dts.config.js --bundleConfigAsCjs",
"build": "yarn build:clean && yarn build:types && yarn build:source && yarn build:dts && yarn build:clean-types",
"on:change": "yarn build",
"watch": "nodemon --watch src --ext ts,tsx,js,jsx,json --ignore dist/ --ignore node_modules/ --verbose --delay 250ms --exec \"yarn on:change\""
},
"devDependencies": {
"@rollup/plugin-replace": "6.0.2",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.2.0",
"nodemon": "^3.1.0",
"rollup-plugin-dts": "^6.2.1",
"vitest": "3.0.9"
},
"peerDependencies": {
"@types/react": ">= 16.8.0 < 20.0.0",
"react": ">= 16.8.0 < 20.0.0",
"react-dom": ">= 16.8.0 < 20.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
},
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
}
}