Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit f54a43d

Browse files
Validate TS typings (#551)
1 parent 325d159 commit f54a43d

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@
2727
"node": ">= 8.x"
2828
},
2929
"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",
3232
"testonly": "mocha src/**/__tests__/**/*.js",
3333
"testonly:cover": "nyc npm run testonly",
3434
"lint": "eslint src resources",
3535
"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}'",
3737
"check": "flow check",
38+
"check:ts": "dtslint types",
3839
"build": "node resources/build.js",
3940
"preversion": ". ./resources/checkgit.sh",
4041
"start": "node -r @babel/register examples/index.js"
@@ -50,6 +51,8 @@
5051
"@babel/plugin-transform-flow-strip-types": "7.4.4",
5152
"@babel/plugin-transform-modules-commonjs": "7.5.0",
5253
"@babel/register": "7.4.4",
54+
"@types/graphql": "^14.2.2",
55+
"@types/node": "^12.6.2",
5356
"babel-eslint": "10.0.2",
5457
"body-parser": "1.19.0",
5558
"chai": "4.2.0",

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@
217217
resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5"
218218
integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==
219219

220+
"@types/graphql@^14.2.2":
221+
version "14.2.2"
222+
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-14.2.2.tgz#10f197e6f8559c11b16d630c5e9c10c3c8e61c5e"
223+
integrity sha512-okXbUmdZFMO3AYBEJCcpJFPFDkKmIiZZBqWD5TmPtAv+GHfjD2qLZEI0PvZ8IWMU4ozoK2HV2lDxWjw4LbVlnw==
224+
225+
"@types/node@^12.6.2":
226+
version "12.6.2"
227+
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.6.2.tgz#a5ccec6abb6060d5f20d256fb03ed743e9774999"
228+
integrity sha512-gojym4tX0FWeV2gsW4Xmzo5wxGjXGm550oVUII7f7G5o4BV6c7DBdiG1RRQd+y1bvqRyYtPfMK85UM95vsapqQ==
229+
220230
"@types/parsimmon@^1.3.0":
221231
version "1.10.0"
222232
resolved "https://registry.yarnpkg.com/@types/parsimmon/-/parsimmon-1.10.0.tgz#ffb81cb023ff435a41d4710a29ab23c561dc9fdf"

0 commit comments

Comments
 (0)