Skip to content

Commit

Permalink
build(try_megacloud): add copying of minjs file to dist on success
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshRitesh12 committed Dec 16, 2024
1 parent e248c79 commit 2637e46
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from "tsup";
import { execSync } from "child_process";

export default defineConfig({
format: ["esm"],
Expand All @@ -14,5 +15,11 @@ export default defineConfig({
globalName: "aniwatch",
skipNodeModulesBundle: true,

// sourcemap: true,
// @ts-ignore
onSuccess() {
execSync(
"cp ./src/extractors/__megacloud.min.js ./dist/__megacloud.min.js"
);
return undefined;
},
});

0 comments on commit 2637e46

Please sign in to comment.