Skip to content

Commit e226d3a

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ 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+
await cherryPick({ inputDir: "../src", cwd: "./lib", typesDir: "./\\$types", cjsDir: "./\\$cjs", esmDir: "./\\$esm" });
1416

1517
const exportsFiled = generateExportsField("./src", {
1618
directory: {

0 commit comments

Comments
 (0)