Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Add engines to package.json #18

Merged
merged 5 commits into from
Feb 25, 2020
Merged

Add engines to package.json #18

merged 5 commits into from
Feb 25, 2020

Conversation

gabritto
Copy link
Collaborator

Require node >= 12.
I could try to require node >= 10.10, but then we run into this issue and it seems too much trouble.
This also means having to update the minimum node version in dtslint, types-publisher and DT.

@gabritto gabritto requested a review from sandersn February 21, 2020 21:43
@sandersn
Copy link
Collaborator

I believe @domoritz had some reason to support node 10 in dtslint, although I didn't ask at the time because I wasn't aware of any reason that node 12 was required.
The issue you linked appears to do with the types (although I might have misread it). Is it possible just to update the types and leave the engine version alone?

@domoritz did you have a specific reason that dtslint needed to support node 10?

@domoritz
Copy link

Yes, I am working on https://github.com/vega/vega and we use this package to test our typings. Since Node 10 is not deprecated (https://nodejs.org/en/about/releases/), we need to support it.

It would probably make sense to test node 10 in https://github.com/microsoft/dtslint/blob/master/.travis.yml to make sure that the minimum node version is actually supported.

@sandersn
Copy link
Collaborator

I installed @types/[email protected] and got dts-critic to compile on its own, at least. Was the compilation error in conjunction with dtslint?

@domoritz
Copy link

Is this a question for @gabritto?

@gabritto
Copy link
Collaborator Author

@domoritz do you need to support all Node 10 versions (e.g. 10.0.0)? Or is Node >= 10.17.0 enough?

@domoritz
Copy link

I think the latest node 10 version is enough. We use Travis so I’d like to support the version they use.

@gabritto gabritto merged commit 568fdfb into master Feb 25, 2020
@domoritz
Copy link

I think you can also use node typings for node 12 and still support node 10 (and test it on the CI). At least it has worked well for us in Vega: https://github.com/vega/vega/blob/master/package.json.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants