Skip to content

Commit d289ea0

Browse files
committed
fix: cherry-pick
1 parent d0c57f6 commit d289ea0

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

scripts/build.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { generateExportsField } from "./tools/dualPackageSupport";
55
import { shell } from "./tools/shell";
66
import { cherryPick } from "./tools/cherry-pick";
77
import * as fs from "fs";
8-
import { posix as path } from "path";
98

109

1110
const main = async () => {

scripts/tools/cherry-pick.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const isFile = (path: string) =>
3333
.catch(() => false);
3434

3535
const withDefaults = ({ cwd = ".", ...options }: Option, additionalDefaults: { cjsDir?: string; esmDir?: string } = {}): Option => ({
36-
cwd: path.resolve(process.cwd(), cwd),
36+
cwd: path.join(process.cwd(), cwd),
3737
...additionalDefaults,
3838
...options,
3939
});
@@ -92,12 +92,8 @@ export const cherryPick = async (inputOptions: Option) => {
9292
esmDir: "es",
9393
});
9494

95-
console.log(options);
96-
9795
const files = await findFiles(options);
9896

99-
console.log({ files });
100-
10197
await Promise.all(
10298
files.map(async file => {
10399
const proxyDir = path.join(options.cwd, file);

0 commit comments

Comments
 (0)