Skip to content

Commit

Permalink
fix(dnt): override generated exports
Browse files Browse the repository at this point in the history
  • Loading branch information
redabacha committed Apr 3, 2024
1 parent 21e76e9 commit ee318d5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions scripts/prepare_release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ await build({
sourceMap: true,
target: "ES2022",
},
declaration: "separate",
declaration: "inline",
declarationMap: true,
entryPoints: ["./mod.ts", {
name: "./promise-with-resolvers-polyfill",
Expand All @@ -39,7 +39,18 @@ await build({
description: "Runs promises yielded by generators in parallel",
repository: "https://github.com/redabacha/parallelize-generator-promises",
license: "MIT",
sideEffects: false,
exports: {
".": {
default: {
default: "./script/mod.js",
},
},
"./promise-with-resolvers-polyfill": {
default: {
default: "./script/promise-with-resolvers-polyfill.js",
},
},
},
},
async postBuild() {
await Promise.all([
Expand Down

0 comments on commit ee318d5

Please sign in to comment.