Skip to content

Commit bab48b3

Browse files
committed
fix #37: character } in directives breaks transpiling
1 parent 67d3825 commit bab48b3

File tree

5 files changed

+210
-158
lines changed

5 files changed

+210
-158
lines changed

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
lib/
22
test/
3-
webpack.config.js
3+
webpack.config.js
4+
_doc/

_doc/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Tips On How To Debug
2+
## Tip 1 - Have a look at the overal AST object
3+
4+
Most of the bugs we've received so far come from errors in the way the schema is parsed into an AST. If there is an error in that AST, then the rebuilt schema is also compromised. So when an error similar to `My transpiled schema is not working` arises, start by looking into the output of the `_getSchemaBits` function in the `src/graphqls2s.js` file.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "WEBPACK_ENV=build webpack",
88
"dev": "WEBPACK_ENV=dev webpack",
9-
"lint": "eslint graphqls2s.js src/ test/ --fix",
9+
"lint": "eslint src/ test/ --fix",
1010
"push": "git push --follow-tags origin master && npm publish",
1111
"rls": "standard-version --release-as",
1212
"test": "mocha ./test/node/*.js",

0 commit comments

Comments
 (0)