Skip to content

Commit 09ed65d

Browse files
committed
fix: cherry-pick
1 parent 9cfd8a9 commit 09ed65d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/build.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ import { copyPackageSet } from "./tools/copyPackageSet";
44
import { generateExportsField } from "./tools/dualPackageSupport";
55
import { shell } from "./tools/shell";
66

7+
const { default: cherryPick } = require("cherry-pick");
8+
79
const main = async () => {
810
await Promise.all([
911
shell("yarn tsc -p tsconfig.esm.json -d --emitDeclarationOnly --outDir ./lib/\\$types"),
1012
shell("yarn tsc -p tsconfig.cjs.json"),
1113
shell("yarn tsc -p tsconfig.esm.json"),
1214
]);
13-
await shell("cherry-pick --cwd ./lib --input-dir ../src --types-dir ./\\$types --cjs-dir ./\\$cjs --esm-dir ./\\$esm");
15+
16+
await cherryPick({ inputDir: "../src", cwd: "./lib", typesDir: "./$types", cjsDir: "./$cjs", esmDir: "./$esm" });
1417

1518
const exportsFiled = generateExportsField("./src", {
1619
directory: {

0 commit comments

Comments
 (0)