Skip to content

Various Node Versions Support #13

Closed
@scurker

Description

@scurker

This is probably in the early stages, so I apologize if this issue is premature. From the documentation, it looks like the intent is to support node 4 <=, but currently isn't transpiled down to support Node 4.

Node 4 & 5 (no destructuring)

/bin/babel-upgrade
const { isAcceptedNodeVersion, writePackageJSON, writeBabelRC } = require("../src");
      ^
SyntaxError: Unexpected token {

Node 6 (no async)

/src/index.js:59
async function writePackageJSON() {
      ^^^^^^^^
SyntaxError: Unexpected token function

Node 7 (no trailing/last commas)

/src/packageData.js:243
);
^
SyntaxError: Unexpected token )

Otherwise, everything has worked great in node 8 & 9 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions