|
1 | 1 | { |
2 | 2 | "name": "@shelf/jest-dynamodb", |
3 | | - "version": "3.2.0", |
| 3 | + "version": "3.3.0", |
4 | 4 | "description": "Run your tests using Jest & DynamoDB local", |
5 | 5 | "keywords": [ |
6 | 6 | "dynamodb", |
|
17 | 17 | "url": "shelf.io" |
18 | 18 | }, |
19 | 19 | "files": [ |
20 | | - "environment.js", |
21 | 20 | "jest-preset.js", |
22 | | - "setup.js", |
23 | | - "teardown.js", |
24 | | - "wait-for-localhost.js" |
| 21 | + "lib/" |
25 | 22 | ], |
26 | 23 | "scripts": { |
| 24 | + "build": "rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'", |
| 25 | + "build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib", |
27 | 26 | "coverage": "jest --coverage", |
28 | 27 | "lint": "eslint . --ext .js,.ts,.json --fix", |
29 | 28 | "lint:ci": "eslint . --ext .js,.ts,.json", |
30 | | - "test": "export ENVIRONMENT=local && jest ." |
| 29 | + "prepack": "yarn build", |
| 30 | + "test": "export ENVIRONMENT=local && jest tests", |
| 31 | + "type-check": "tsc --noEmit", |
| 32 | + "type-check:watch": "npm run type-check -- --watch" |
31 | 33 | }, |
32 | 34 | "lint-staged": { |
33 | 35 | "*.{html,md,yml}": [ |
34 | 36 | "prettier --write" |
35 | 37 | ], |
36 | | - "*.{js,json}": [ |
| 38 | + "*.{ts,js,json}": [ |
37 | 39 | "eslint --fix" |
38 | 40 | ] |
39 | 41 | }, |
|
53 | 55 | "dynamodb-local": "0.0.31" |
54 | 56 | }, |
55 | 57 | "devDependencies": { |
56 | | - "@shelf/babel-config": "1.0.2", |
57 | | - "@shelf/eslint-config": "2.18.0", |
| 58 | + "@babel/cli": "7.18.9", |
| 59 | + "@babel/core": "7.18.9", |
| 60 | + "@shelf/babel-config": "1.2.0", |
| 61 | + "@shelf/eslint-config": "2.22.0", |
58 | 62 | "@shelf/prettier-config": "1.0.0", |
59 | | - "eslint": "8.20.0", |
| 63 | + "@shelf/tsconfig": "0.0.8", |
| 64 | + "@types/aws-sdk": "2.7.0", |
| 65 | + "@types/cwd": "^0.10.0", |
| 66 | + "@types/jest": "28.1.3", |
| 67 | + "@types/node": "16", |
| 68 | + "eslint": "8.21.0", |
60 | 69 | "husky": "8.0.1", |
61 | 70 | "jest": "28.1.3", |
62 | 71 | "lint-staged": "13.0.3", |
|
0 commit comments