Replace Browserify and Babel with TypeScript and Rollup #1061
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The content of this PR is the same as the previously closed PR. I must have done something to anger the Git gods because I could no longer merge upstream changes due to unrelated histories, so I just manually recreated this PR.
This is largely a replication of the work done to migrate kinto-http.js to TypeScript and Rollup. It makes the same modifications to
package.json
and uses essentially the exact same Rollup config.There are, however, two small changes specific to this repo:
test/adapters/IDB_test.js
that could cause an index out-of-bounds error.uuid
from the Gecko build.cs-check
command to use prettier's--check
option. I think this is why the builds have been green despite the test files not matching the prettier config.Unfortunately, it looks like some of the test files didn't follow the Prettier style, so those changes also come along in this PR. The only other changes in the test files (besides the trailing commas) is the change of import for
uuid
to match how it's being imported in the main library (import uuid from 'uuid/v4'