-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tooling #169
Update tooling #169
Conversation
|
||
test: ## Launch unit tests | ||
@NODE_ENV=test ./node_modules/.bin/jest | ||
@NODE_ENV=test NODE_OPTIONS="$$NODE_OPTIONS --experimental-vm-modules" ./node_modules/.bin/jest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this I don't understand. Would you ind explaining what it does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make jest accept our ESM code: https://jestjs.io/docs/ecmascript-modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that mean that, in order to use the CLI, our users will have to use the same flag? This would be a BC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, as said in the PR desc, I tested the CLI. I did it without any flag on latest Node LTS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The minimum required node version is 16.
@@ -448,15 +448,15 @@ Then use the `jsonGraphqlExpress` express middleware: | |||
|
|||
```js | |||
import express from 'express'; | |||
import jsonGraphqlExpress from 'json-graphql-server'; | |||
import jsonGraphqlExpress from 'json-graphql-server/node'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import jsonGraphqlExpress from 'json-graphql-server/node'; | |
const { default: jsonGraphqlExpress } = require("json-graphql-server/node"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted the change, the doc was right initially
Update more dependencies
Switch to vite
Fix CLI
Check the CLI mode is working
Check the import through bundlers is working
Check the import inside Node is working