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

chore: more cleanup for ESM + Vite #273

Merged
merged 1 commit into from
Dec 25, 2023
Merged

chore: more cleanup for ESM + Vite #273

merged 1 commit into from
Dec 25, 2023

Conversation

neoncitylights
Copy link
Owner

@neoncitylights neoncitylights commented Dec 25, 2023

vite.config.ts:

  • don't use build.lib.name, only needed for umd/iife packages
  • simplify build.lib.fileName
  • use ESM node module for path via node:path

package.json:

  • register types at root too, not just exports
  • also run publint when running npm run lint
  • remove directories key, not needed (defined from CommonJS spec)

- vite.config.ts: don't use build.lib.name, only needed for umd/iife packages
- vite.config.ts: simplify build.lib.fileName
- package.json: register types at root too, not just exports
- package.json: also run publint when running `npm run lint`
Copy link

codesandbox bot commented Dec 25, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

codecov bot commented Dec 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a49274e) 100.00% compared to head (33bac20) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #273   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            3         3           
  Branches         1         1           
=========================================
  Hits             3         3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@neoncitylights neoncitylights merged commit 850667d into main Dec 25, 2023
13 checks passed
@neoncitylights neoncitylights deleted the cleanup-esm-vite branch December 25, 2023 08:06
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