Skip to content

Commit

Permalink
fix: Move index.js.flow from dist/ -> dist/cjs/ to match index.js (#1038
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nifgraup authored May 9, 2023
1 parent 327082c commit a3b5603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/flow/flow.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
applyPatches,
Patch,
original
} from "../../dist/index.js.flow"
} from "../../dist/cjs/index.js.flow"

enableMapSet()
setAutoFreeze(true)
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default defineConfig(options => {
sourcemap: true,
onSuccess() {
// Support Flow types
fs.copyFileSync("src/types/index.js.flow", "dist/index.js.flow")
fs.copyFileSync("src/types/index.js.flow", "dist/cjs/index.js.flow")
}
},
// ESM, Webpack 4 support. Target ES2018 syntax to compile away optional chaining and spreads
Expand Down

0 comments on commit a3b5603

Please sign in to comment.