Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Upgrade to @ethereumjs/config-typescript #152

Merged
merged 3 commits into from
Oct 23, 2020
Merged

Conversation

cgewecke
Copy link
Contributor

@cgewecke cgewecke commented Oct 21, 2020

#148

  • Upgrade to @ethereumjs/config-typescript@2.0.0
  • Follows pattern for ts.config files established in ethereumjs-vm 913
  • Updates tape imports as necessary

Notes

  • npm run build is broken prior to this PR and will require substantial work to get running. The relevant entry points still need to be ported to TS, etc. Have not altered those script commands. (Addressed in Migrate browser folder files to typescript & fix npm build #155)
  • Manually verified that the production build works and client launches from cli as expected

"include": ["browser/index.js"],
"exclude": ["lib/index.js"],
"compilerOptions": {
"outDir": "dist.browser",
"target": "es5",
"lib": ["es5"],
"alwaysStrict": true
Copy link
Contributor Author

@cgewecke cgewecke Oct 21, 2020

Choose a reason for hiding this comment

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

Here and in the configs below, have removed options which are already included in the default configs.

alwaysStrict is a sub-category of strict, which TS handbook describes as:

Enables all strict type checking options. Enabling --strict enables --noImplicitAny, --noImplicitThis, --alwaysStrict, --strictBindCallApply, --strictNullChecks, --strictFunctionTypes and --strictPropertyInitialization

@coveralls
Copy link

coveralls commented Oct 22, 2020

Coverage Status

Coverage decreased (-4.3%) to 75.842% when pulling 34bbec0 on upgrade/config-typescript into b45a1bf on master.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

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

LGTM, nice! 🎉

@holgerd77 holgerd77 merged commit b4d885b into master Oct 23, 2020
@holgerd77 holgerd77 deleted the upgrade/config-typescript branch October 23, 2020 08:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants