Skip to content

Commit

Permalink
Merge pull request #334 from acro5piano/feature/export-all
Browse files Browse the repository at this point in the history
export all files, replace husky with simple-git-hooks
  • Loading branch information
acro5piano authored Jun 6, 2022
2 parents 4a33cbe + a04c4b8 commit df75efb
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 291 deletions.
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"jsnext:main": "dist/index.es.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"types": "dist/index.d.ts",
"scripts": {
"prepare": "simple-git-hooks || true",
"build": "rollup -c",
"clean": "rimraf dist",
"dist": "npm-run-all clean build",
Expand All @@ -31,32 +31,36 @@
"peerDependencies": {
"typescript": "^4.0.2"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"prettier --write",
"tslint --fix"
]
},
"devDependencies": {
"@types/jest": "^27.0.3",
"@types/node": "^17.0.40",
"@types/webpack-env": "^1.13.6",
"codecov": "^4.0.0-0",
"husky": "^4.2.5",
"jest": "^23.6.0",
"lint-staged": "^11.0.0",
"lint-staged": "^13.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"rollup": "^2.23.0",
"rollup-plugin-typescript2": "^0.32.0",
"ts-jest": "^23.10.5",
"ts-node": "^10.0.0",
"simple-git-hooks": "^2.8.0",
"tsd": "^0.20.0",
"ts-jest": "^23.10.5",
"tslib": "^2.0.0",
"tslint": "^6.1.2",
"ts-node": "^10.0.0",
"typescript": "^4.0.2"
},
"resolutions": {
"handlebars": "4.5.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm run format && git add ."
}
}
}
16 changes: 3 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
export {
fragment,
params,
query,
mutation,
subscription,
alias,
rawString,
QueryObject,
CompiledResult,
} from './graphqlify'
export { types, optional, on, onUnion } from './types'
export { fragmentToString } from './render'
export * from './graphqlify'
export * from './types'
export * from './render'
Loading

0 comments on commit df75efb

Please sign in to comment.