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

Update library config #12

Merged
merged 5 commits into from
Feb 14, 2023
Merged

Update library config #12

merged 5 commits into from
Feb 14, 2023

Conversation

janndriessen
Copy link
Collaborator

@janndriessen janndriessen commented Feb 14, 2023

Changes

  • Adds tests for icETH
  • Adds type module to package.json (to hopefully get rid of the SDK's export issues) (did not work)
  • Remove .npmignore (as it is not necessary, files in .gitignore will be excluded by default and the /build folder will be added through package.json's files)
  • Adds tsup (read below)

ES and CommonJS modules

The library/SDK had some issues with exports and so importing in ES and/or CommonJS modules. Now tsup is used to configure the building/exporting.

Since ES is the future and mostly used nowadays, I tried to just add type: module in package.json but this won't work with hardhat: https://hardhat.org/hardhat-runner/docs/advanced/using-esm#esm-and-typescript-projects. And looks like it won't change anytime soon: NomicFoundation/hardhat#3385

⚠️

Temporarily disabling some integration tests for dsETH. They do work individually and locally but are to unreliable right now due to market quotes.

@janndriessen janndriessen merged commit f1b62eb into main Feb 14, 2023
@janndriessen janndriessen deleted the task/library2 branch February 14, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant