|
1 | 1 | { |
2 | 2 | "name": "meilisearch", |
3 | | - "version": "0.42.0", |
| 3 | + "version": "0.43.0", |
4 | 4 | "description": "The Meilisearch JS client for Node.js and the browser.", |
5 | 5 | "keywords": [ |
6 | 6 | "meilisearch", |
|
23 | 23 | "types": "./dist/types/index.d.ts", |
24 | 24 | "jsdelivr": "./dist/bundles/meilisearch.umd.js", |
25 | 25 | "unpkg": "./dist/bundles/meilisearch.umd.js", |
| 26 | + "exports": { |
| 27 | + ".": { |
| 28 | + "types": "./dist/types/index.d.ts", |
| 29 | + "browser": "./dist/bundles/meilisearch.umd.js", |
| 30 | + "import": "./dist/bundles/meilisearch.esm.js", |
| 31 | + "require": "./dist/bundles/meilisearch.cjs.js", |
| 32 | + "default": "./dist/bundles/meilisearch.umd.js" |
| 33 | + } |
| 34 | + }, |
26 | 35 | "sideEffects": false, |
27 | 36 | "repository": { |
28 | 37 | "type": "git", |
29 | 38 | "url": "https://github.com/meilisearch/meilisearch-js" |
30 | 39 | }, |
31 | 40 | "scripts": { |
32 | 41 | "playground:javascript": "yarn --cwd ./playgrounds/javascript && yarn --cwd ./playgrounds/javascript start", |
33 | | - "clear_jest": "jest --clearCache", |
34 | 42 | "cleanup": "shx rm -rf dist/", |
35 | 43 | "build": "yarn cleanup && rollup -c && rollup -c --environment NODE_ENV:production", |
36 | 44 | "build:docs": "typedoc", |
37 | 45 | "watch": "yarn cleanup && rollup -c --watch", |
38 | 46 | "postbuild": "yarn size && yarn typingsheader", |
39 | | - "test": "yarn clear_jest && jest --runInBand --verbose", |
| 47 | + "test": "vitest run --coverage", |
40 | 48 | "types:watch": "nodemon --config nodemon.json", |
41 | 49 | "types": "yarn tsc", |
42 | 50 | "test:env:browser": "yarn build && yarn --cwd tests/env/express && yarn --cwd tests/env/express test", |
43 | | - "test:watch": "yarn clear_jest && yarn test --watch", |
44 | | - "test:coverage": "yarn test --coverage", |
45 | | - "test:ci": "yarn test --ci", |
| 51 | + "test:watch": "vitest watch", |
| 52 | + "test:coverage": "yarn test", |
| 53 | + "test:ci": "yarn test", |
46 | 54 | "test:env": "yarn build && yarn test:env:nodejs && yarn test:env:esm && yarn test:env:node-ts", |
47 | 55 | "test:env:node-ts": "yarn --cwd tests/env/typescript-node start", |
48 | 56 | "test:env:nodejs": "yarn build && node tests/env/node/index.js && node tests/env/node/getting_started.js", |
|
53 | 61 | "style:fix": "yarn fmt:fix && yarn lint:fix", |
54 | 62 | "fmt": "prettier -c ./**/*.{js,ts}", |
55 | 63 | "fmt:fix": "prettier -w ./**/*.{js,ts}", |
56 | | - "lint": "eslint --ext .js,.ts,.tsx .", |
57 | | - "lint:fix": "eslint --ext .js,.ts,.tsx --fix .", |
| 64 | + "lint": "eslint .", |
| 65 | + "lint:fix": "eslint --fix .", |
58 | 66 | "typingsheader": "node scripts/build.js" |
59 | 67 | }, |
60 | 68 | "files": [ |
|
75 | 83 | "devDependencies": { |
76 | 84 | "@babel/core": "^7.25.2", |
77 | 85 | "@babel/preset-env": "^7.25.4", |
| 86 | + "@eslint/js": "^9.11.1", |
78 | 87 | "@rollup/plugin-babel": "^6.0.4", |
79 | 88 | "@rollup/plugin-commonjs": "28.0.0", |
80 | 89 | "@rollup/plugin-json": "^6.1.0", |
81 | 90 | "@rollup/plugin-node-resolve": "15.3.0", |
82 | | - "@types/jest": "^29.5.11", |
83 | | - "@typescript-eslint/eslint-plugin": "^6.19.0", |
84 | | - "@typescript-eslint/parser": "^6.19.0", |
| 91 | + "@types/eslint__js": "^8.42.3", |
| 92 | + "@vitest/coverage-v8": "2.0.5", |
| 93 | + "@vitest/eslint-plugin": "^1.1.4", |
| 94 | + "@types/node": "^20.16.10", |
85 | 95 | "brotli-size": "^4.0.0", |
86 | | - "eslint": "^8.56.0", |
| 96 | + "eslint": "^9.11.1", |
87 | 97 | "eslint-config-prettier": "^9.1.0", |
88 | | - "eslint-plugin-jest": "^27.6.3", |
89 | | - "eslint-plugin-tsdoc": "^0.2.17", |
| 98 | + "eslint-plugin-tsdoc": "^0.3.0", |
| 99 | + "globals": "^15.9.0", |
90 | 100 | "gzip-size": "^6.0.0", |
91 | | - "jest": "^29.7.0", |
92 | | - "jest-environment-jsdom": "^29.7.0", |
93 | | - "jest-fetch-mock": "^3.0.3", |
94 | | - "jest-watch-typeahead": "^2.2.2", |
95 | 101 | "kleur": "^4.1.5", |
96 | 102 | "lint-staged": "15.2.10", |
97 | 103 | "nodemon": "^3.1.7", |
|
102 | 108 | "rollup-plugin-terser": "^7.0.0", |
103 | 109 | "rollup-plugin-typescript2": "^0.36.0", |
104 | 110 | "shx": "^0.3.2", |
105 | | - "ts-jest": "^29.2.5", |
106 | 111 | "typedoc": "^0.26.7", |
107 | | - "typescript": "^5.4.5" |
| 112 | + "typescript": "^5.4.5", |
| 113 | + "typescript-eslint": "^8.8.0", |
| 114 | + "vitest": "2.0.5" |
108 | 115 | }, |
109 | 116 | "packageManager": "[email protected]" |
110 | 117 | } |
0 commit comments