chore(deps-dev): bump tsdown to 0.22.0#1908
Conversation
| dts: { | ||
| sourcemap: true, | ||
| }, | ||
| exports: true, |
There was a problem hiding this comment.
Newer versions of tsdown are able to "Auto-Generating Package Exports"
| "main": "./dist/index.cjs", | ||
| "module": "./dist/index.mjs", | ||
| "types": "./dist/index.d.cts", |
There was a problem hiding this comment.
Enabling Auto Exports means tsdown manages these fields for us
| ], | ||
| "scripts": { | ||
| "build": "tsdown", | ||
| "format": "prettier --check . --ignore-path ../../.gitignore", |
There was a problem hiding this comment.
I also removed the format script from workspaces as they're no longer used
| attw: true, | ||
| clean: true, | ||
| dts: true, | ||
| entry: 'src/index.ts', | ||
| format: ['cjs', 'esm'], | ||
| publint: true, | ||
| tsconfig: 'tsconfig.build.json', |
There was a problem hiding this comment.
Workspace configuration now inherit's root configuration, so a lot of this can be removed
| attw: { | ||
| profile: 'node16', | ||
| }, | ||
| entry: { | ||
| index: 'src/index.ts', | ||
| node: 'src/transpilers/node.ts', | ||
| wasm: 'src/transpilers/wasm.ts', | ||
| }, |
There was a problem hiding this comment.
Some packages required extra configuration to make sure the generated exports were correct.
Here we have to map specific exports to the correct files
9fe255e to
1ac11dc
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1908 +/- ##
==========================================
- Coverage 92.02% 92.01% -0.01%
==========================================
Files 115 115
Lines 3936 3932 -4
Branches 1011 1011
==========================================
- Hits 3622 3618 -4
Misses 282 282
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1ac11dc to
a3e5f31
Compare
a3e5f31 to
e4e2375
Compare
|
Whoops! I failed a rebase.. should be ready now |
No description provided.