|
27 | 27 | "node": ">= 8.x"
|
28 | 28 | },
|
29 | 29 | "scripts": {
|
30 |
| - "test": "npm run prettier:check && npm run lint && npm run check && npm run testonly", |
31 |
| - "test:ci": "yarn check --integrity && npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build", |
| 30 | + "test": "npm run prettier:check && npm run lint && npm run check && npm run check:ts && npm run testonly", |
| 31 | + "test:ci": "yarn check --integrity && npm run prettier:check && npm run lint && npm run check && npm run check:ts && npm run testonly:cover && npm run build", |
32 | 32 | "testonly": "mocha src/**/__tests__/**/*.js",
|
33 | 33 | "testonly:cover": "nyc npm run testonly",
|
34 | 34 | "lint": "eslint src resources",
|
35 | 35 | "prettier": "prettier --ignore-path .gitignore --write --list-different '**/*.{js,ts,md,json,yml}'",
|
36 |
| - "prettier:check": "prettier --ignore-path .gitignore --check '**/*.{js,md,json,yml}'", |
| 36 | + "prettier:check": "prettier --ignore-path .gitignore --check '**/*.{js,ts,md,json,yml}'", |
37 | 37 | "check": "flow check",
|
| 38 | + "check:ts": "dtslint types", |
38 | 39 | "build": "node resources/build.js",
|
39 | 40 | "preversion": ". ./resources/checkgit.sh",
|
40 | 41 | "start": "node -r @babel/register examples/index.js"
|
|
50 | 51 | "@babel/plugin-transform-flow-strip-types": "7.4.4",
|
51 | 52 | "@babel/plugin-transform-modules-commonjs": "7.5.0",
|
52 | 53 | "@babel/register": "7.4.4",
|
| 54 | + "@types/graphql": "^14.2.2", |
| 55 | + "@types/node": "^12.6.2", |
53 | 56 | "babel-eslint": "10.0.2",
|
54 | 57 | "body-parser": "1.19.0",
|
55 | 58 | "chai": "4.2.0",
|
|
0 commit comments