|
4 | 4 | "private": false, |
5 | 5 | "description": "The search client to use MeiliSearch with InstantSearch.", |
6 | 6 | "scripts": { |
| 7 | + "cleanup": "shx rm -rf dist/", |
7 | 8 | "test": "jest", |
8 | 9 | "test:demo": "yarn build && yarn test:demo:browser && yarn test:demo:nodejs && yarn test:demo:esm", |
9 | 10 | "test:demo:browser": "yarn --cwd examples/express && yarn --cwd examples/express test", |
10 | 11 | "test:demo:nodejs": "node examples/node/index.js", |
11 | 12 | "test:demo:esm": "yarn --cwd examples/esm && yarn --cwd examples/esm start", |
12 | | - "build:playground:vue": "yarn --cwd ./playgrounds/vue && yarn --cwd ./playgrounds/vue build", |
13 | | - "build:playground:react": "yarn --cwd ./playgrounds/react && yarn --cwd ./playgrounds/react build", |
14 | | - "build:playground:vanilla-js": "yarn --cwd ./playgrounds/vanilla-js && yarn --cwd ./playgrounds/vanilla-js build", |
| 13 | + "build:playground:vue": "yarn build && yarn --cwd ./playgrounds/vue && yarn --cwd ./playgrounds/vue build", |
| 14 | + "build:playground:react": "yarn build && yarn --cwd ./playgrounds/react && yarn --cwd ./playgrounds/react build", |
| 15 | + "build:playground:vanilla-js": "yarn build && yarn --cwd ./playgrounds/vanilla-js && yarn --cwd ./playgrounds/vanilla-js build", |
15 | 16 | "test:all": "yarn test && yarn test:demo", |
16 | 17 | "lint": "eslint --ext .js,.ts,.tsx,.vue .", |
17 | 18 | "lint:fix": "eslint --ext .js,.ts,.tsx,.vue --fix .", |
18 | | - "build": "rollup -c rollup.config.js && rollup --environment NODE_ENV:production -c rollup.config.js ", |
19 | | - "playground:vue": "yarn --cwd ./playgrounds/vue && yarn --cwd ./playgrounds/vue serve", |
20 | | - "playground:react": "yarn --cwd ./playgrounds/react && yarn --cwd ./playgrounds/react start", |
21 | | - "playground:vanilla-js": "yarn --cwd ./playgrounds/vanilla-js && yarn --cwd ./playgrounds/vanilla-js start" |
| 19 | + "build": "yarn cleanup && rollup -c rollup.config.js && rollup --environment NODE_ENV:production -c rollup.config.js ", |
| 20 | + "postbuild": "yarn typingsheader", |
| 21 | + "playground:vue": "yarn build && yarn --cwd ./playgrounds/vue && yarn --cwd ./playgrounds/vue serve", |
| 22 | + "playground:react": "yarn build && yarn --cwd ./playgrounds/react && yarn --cwd ./playgrounds/react start", |
| 23 | + "playground:vanilla-js": "yarn build && yarn --cwd ./playgrounds/vanilla-js && yarn --cwd ./playgrounds/vanilla-js start", |
| 24 | + "typingsheader": "node scripts/build.js" |
22 | 25 | }, |
23 | 26 | "main": "./dist/instant-meilisearch.umd.js", |
24 | 27 | "module": "./dist/instant-meilisearch.esm.js", |
25 | 28 | "browser": "./dist/instant-meilisearch.umd.js", |
26 | 29 | "cjs": "./dist/instant-meilisearch.cjs.js", |
| 30 | + "source": "src/index.ts", |
| 31 | + "typings": "./dist/types/index.d.ts", |
| 32 | + "types": "./dist/types/index.d.ts", |
| 33 | + "sideEffects": false, |
| 34 | + "bugs": { |
| 35 | + "url": "https://github.com/meilisearch/instant-meilisearch/issues" |
| 36 | + }, |
27 | 37 | "files": [ |
28 | 38 | "dist", |
29 | 39 | "src" |
|
40 | 50 | "url": "https://github.com/meilisearch/instant-meilisearch.git" |
41 | 51 | }, |
42 | 52 | "dependencies": { |
43 | | - "meilisearch": "^0.16.0" |
| 53 | + "meilisearch": "^0.16.1" |
44 | 54 | }, |
45 | 55 | "devDependencies": { |
46 | 56 | "@babel/cli": "^7.10.5", |
|
59 | 69 | "eslint-plugin-flowtype": "^5.2.0", |
60 | 70 | "eslint-plugin-import": "^2.22.0", |
61 | 71 | "eslint-plugin-jest": "^24.0.0", |
| 72 | + "eslint-plugin-jsdoc": "^30.7.7", |
62 | 73 | "eslint-plugin-jsx-a11y": "^6.4.1", |
63 | 74 | "eslint-plugin-node": "^11.1.0", |
64 | 75 | "eslint-plugin-prettier": "^3.1.4", |
|
74 | 85 | "rollup": "^2.23.0", |
75 | 86 | "rollup-plugin-babel": "^4.4.0", |
76 | 87 | "rollup-plugin-terser": "^7.0.0", |
| 88 | + "rollup-plugin-typescript2": "^0.29.0", |
| 89 | + "shx": "^0.3.3", |
| 90 | + "ts-jest": "^26.4.4", |
77 | 91 | "typescript": "^4.0.0" |
78 | 92 | } |
79 | 93 | } |
0 commit comments