|
1 | 1 | { |
2 | 2 | "name": "@shelf/jest-elasticsearch", |
3 | | - "version": "4.0.0", |
| 3 | + "version": "4.1.0", |
4 | 4 | "description": "Run your tests using jest & elasticsearch-local", |
5 | 5 | "keywords": [ |
6 | 6 | "jest", |
|
20 | 20 | "files": [ |
21 | 21 | "jest-es-config.js", |
22 | 22 | "jest-preset.js", |
23 | | - "setup.js", |
24 | | - "teardown.js" |
| 23 | + "lib/" |
25 | 24 | ], |
26 | 25 | "scripts": { |
| 26 | + "build": "rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'", |
| 27 | + "build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib", |
27 | 28 | "coverage": "jest --coverage", |
28 | | - "lint": "eslint . --ext .js,.json --fix", |
29 | | - "lint:ci": "eslint . --ext .js,.json --quiet", |
30 | | - "test": "jest src" |
| 29 | + "lint": "eslint . --ext .js,.ts,.json --fix", |
| 30 | + "lint:ci": "eslint . --ext .js,.ts,.json", |
| 31 | + "prepack": "yarn build", |
| 32 | + "test": "export ENVIRONMENT=local && jest tests", |
| 33 | + "type-check": "tsc --noEmit", |
| 34 | + "type-check:watch": "npm run type-check -- --watch" |
31 | 35 | }, |
32 | 36 | "lint-staged": { |
33 | | - "*.js": [ |
34 | | - "eslint --fix", |
35 | | - "git add" |
| 37 | + "*.{ts,js,}": [ |
| 38 | + "eslint --fix" |
36 | 39 | ], |
37 | 40 | "*.{html,json,md,yml}": [ |
38 | | - "prettier --write", |
39 | | - "git add" |
| 41 | + "prettier --write" |
40 | 42 | ] |
41 | 43 | }, |
| 44 | + "babel": { |
| 45 | + "extends": "@shelf/babel-config/backend" |
| 46 | + }, |
42 | 47 | "prettier": "@shelf/prettier-config", |
43 | 48 | "jest": { |
44 | 49 | "preset": "./jest-preset.js" |
|
48 | 53 | "cwd": "0.10.0" |
49 | 54 | }, |
50 | 55 | "devDependencies": { |
| 56 | + "@babel/cli": "7.18.9", |
| 57 | + "@babel/core": "7.18.9", |
51 | 58 | "@elastic/elasticsearch": "7.15.0", |
| 59 | + "@shelf/babel-config": "1.2.0", |
52 | 60 | "@shelf/eslint-config": "0.19.0", |
53 | 61 | "@shelf/prettier-config": "0.0.7", |
| 62 | + "@shelf/tsconfig": "0.0.8", |
| 63 | + "@types/cwd": "^0.10.0", |
| 64 | + "@types/jest": "28.1.3", |
| 65 | + "@types/node": "16", |
54 | 66 | "eslint": "7.26.0", |
55 | 67 | "husky": "7.0.4", |
56 | 68 | "jest": "28.1.3", |
57 | 69 | "lint-staged": "12.1.2", |
58 | | - "prettier": "2.3.0" |
| 70 | + "prettier": "2.3.0", |
| 71 | + "typescript": "4.7.4" |
59 | 72 | }, |
60 | 73 | "engines": { |
61 | 74 | "node": ">=16" |
|
0 commit comments