package.json 1.71 KB
Newer Older
Sergey's avatar
Sergey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
{
  "name": "@docsearch/react",
  "description": "React package for DocSearch, the best search experience for docs.",
  "version": "3.5.2",
  "license": "MIT",
  "homepage": "https://docsearch.algolia.com",
  "repository": "algolia/docsearch",
  "author": {
    "name": "Algolia, Inc.",
    "url": "https://www.algolia.com"
  },
  "sideEffects": false,
  "files": [
    "dist/",
    "style/",
    "button.js",
    "modal.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:esm": "babel src --root-mode upward --extensions '.ts,.tsx' --out-dir dist/esm",
    "build:types": "tsc -p ./tsconfig.declaration.json --outDir ./dist/esm",
    "build:umd": "rollup --config",
    "build": "yarn build:clean && yarn build:umd && yarn build:esm && yarn build:types",
    "on:change": "concurrently \"yarn build:esm\" \"yarn build:types\"",
    "watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\""
  },
  "dependencies": {
    "@algolia/autocomplete-core": "1.9.3",
    "@algolia/autocomplete-preset-algolia": "1.9.3",
    "@docsearch/css": "3.5.2",
    "algoliasearch": "^4.19.1"
  },
  "peerDependencies": {
    "@types/react": ">= 16.8.0 < 19.0.0",
    "react": ">= 16.8.0 < 19.0.0",
    "react-dom": ">= 16.8.0 < 19.0.0",
    "search-insights": ">= 1 < 3"
  },
  "peerDependenciesMeta": {
    "@types/react": {
      "optional": true
    },
    "react": {
      "optional": true
    },
    "react-dom": {
      "optional": true
    },
    "search-insights": {
      "optional": true
    }
  }
}