Skip to content

Commit

Permalink
fix(package): typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaharEli committed Aug 27, 2021
1 parent 8ddc02c commit 68f4c58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"version": "1.2.5",
"description": "Select the fields you want to get from the api in your client just like graphql with this middleware",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"test": "jest",
"dev": "nodemon example/index.ts",
"build": "tsc",
"build": "rm -rf ./build && tsc",
"lint": "eslint . --ext .js,.ts --fix",
"commit": "npx cz",
"release": "standard-version"
Expand Down Expand Up @@ -65,7 +66,9 @@
"dependencies": {
"express": "^4.17.1"
},
"files": "build",
"files": [
"build/**/*"
],
"keywords": [
"graphQL",
"middleware",
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const requestFieldsSelectorMiddleware = (
req.transform = (data: Data) => transform(data, fields, dataNestedField, isSilent)
return next()
} catch {
console.log('111111')

return next()
}
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"build",
"__tests__",
"assets",
"example"
],
}
}

0 comments on commit 68f4c58

Please sign in to comment.