We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bcb7a7 commit fe32926Copy full SHA for fe32926
1 file changed
tsup.config.ts
@@ -1,3 +1,4 @@
1
+import { readFileSync, writeFileSync } from 'node:fs';
2
import type { Options } from 'tsup';
3
4
export default [
@@ -7,5 +8,10 @@ export default [
7
8
clean: true,
9
format: ['cjs'],
10
dts: false,
11
+ onSuccess: async () => {
12
+ let cli = readFileSync('./bin/cli.cjs', 'utf8');
13
+ cli = cli.replace('Context = function(retry) {', 'var Context = function(retry) {')
14
+ writeFileSync('./bin/cli.cjs', cli);
15
+ }
16
},
17
] satisfies Options[];
0 commit comments