Skip to content

Commit a3b5603

Browse files
authored
fix: Move index.js.flow from dist/ -> dist/cjs/ to match index.js (#1038)
1 parent 327082c commit a3b5603

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/flow/flow.js.flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
applyPatches,
88
Patch,
99
original
10-
} from "../../dist/index.js.flow"
10+
} from "../../dist/cjs/index.js.flow"
1111

1212
enableMapSet()
1313
setAutoFreeze(true)

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default defineConfig(options => {
3030
sourcemap: true,
3131
onSuccess() {
3232
// Support Flow types
33-
fs.copyFileSync("src/types/index.js.flow", "dist/index.js.flow")
33+
fs.copyFileSync("src/types/index.js.flow", "dist/cjs/index.js.flow")
3434
}
3535
},
3636
// ESM, Webpack 4 support. Target ES2018 syntax to compile away optional chaining and spreads

0 commit comments

Comments
 (0)