Skip to content

Commit

Permalink
Add types and sideEffects field to generated proxy packages (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubhy authored Dec 6, 2023
1 parent 2b50b5b commit 5985ed5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-games-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/build-utils": minor
---

Add `types` field to proxy packages
2 changes: 2 additions & 0 deletions src/PackV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export const run = Effect.gen(function*(_) {
Effect.zipRight(fsUtils.writeJson(`dist/${_}/package.json`, {
main: path.relative(`dist/${_}`, `dist/dist/cjs/${_}.js`),
module: path.relative(`dist/${_}`, `dist/dist/esm/${_}.js`),
types: path.relative(`dist/${_}`, `dist/dist/dts/${_}.d.ts`),
sideEffects: [],
})),
),
{
Expand Down

0 comments on commit 5985ed5

Please sign in to comment.