Skip to content
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

Split syntax task and run no-es6-dist on true publish files #5471

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Feb 4, 2021

Right now we run es5 syntax test on current dist folder not target dist.
That's another reason why we noticed a problem after v2.0.0-rc.0 as mentioned in #5466.

This PR fixes that problem and it is also helpful when we transfer dist/topojson and dist/extras to vendor.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Feb 4, 2021
@archmoj archmoj added this to the NEXT milestone Feb 4, 2021
});

var files = constants.partialBundlePaths.map(function(f) { return f.dist; });
files.unshift(constants.pathToPlotlyDist);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note I removed build from this line:

files.unshift(constants.pathToPlotlyBuild, constants.pathToPlotlyDist);

} else {
console.log('ok ' + name);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌴 Can we pull this out into something like ./util/log? I see it changes EXIT_CODE but we can just return 1 and call it like EXIT_CODE += log('es5-only syntax', errors);

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 Just a nonblocking comment - this looks great!

@archmoj archmoj merged commit 89e27be into master Feb 4, 2021
@archmoj archmoj deleted the publish-dist-no-es6 branch February 4, 2021 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants