Closed newhouse closed 3 years ago
Bump @wittydeveloper If I was sure you were ok with this and was also 100% sure about the deploy procedure, I would merge and publish this on my own...but I'm not 100% sure. Perhaps we can walk through this one? Feel free to e-mail me!
@newhouse published in graphql-2-json-schema@0.5.1
@newhouse I should take time to set up a proper CD system that deploys when merging in master
When using this package as a dependency in a project that a version of Node that's less than 14, I received the following error:
I think the issue is that this change. While the other version-related changes enforce/encourage development of this package using Node
v14
, thepackage.json.engines.node
entry defines requirements for this package to run.Assuming that the release process includes a
tsc
compilation using thetsconfig.json
in this repo, the resulting.js
files were already being transpiled forES3
targets (it's the default).However, since
ES3
is as old as dirt, and since the docs say the following:I figured we may as well use a target of
ES6
/ES2015
since Nodev8.0+
appears to support just about all of its features. Actually, it looks probably safe to go back as far asv6.5+
, but I think anyone who's touching their dependencies these days will be running at least8
.So, I set the
engines.node
to>=8
and explicitly compile thets
down toES2015
.