Skip to content

Commit d0a54a0

Browse files
committed
[perf] writePublishDeployment - no cloneDeep
1 parent 00f6b37 commit d0a54a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/publish/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import { warning } from "../deno_ral/log.ts";
88
import { stringify } from "../core/yaml.ts";
99
import { basename, dirname, join } from "../deno_ral/path.ts";
1010

11-
import * as ld from "../core/lodash.ts";
12-
1311
import { Metadata } from "../config/types.ts";
1412
import { readYaml, readYamlFromString } from "../core/yaml.ts";
1513
import { ProjectContext } from "../project/types.ts";
@@ -69,7 +67,9 @@ export function writePublishDeployment(
6967
publish: PublishRecord,
7068
) {
7169
// don't write 'code' field if false
72-
publish = ld.cloneDeep(publish) as PublishRecord;
70+
publish = {
71+
...publish,
72+
} as PublishRecord;
7373
if (publish.code === false) {
7474
delete (publish as Record<string, unknown>).code;
7575
}

0 commit comments

Comments
 (0)