Skip to content

Commit a09111b

Browse files
committed
build: initialize tempSchema in one instance
1 parent f0151ef commit a09111b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/build.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ async function run() {
3636
delete schema.components.parameters;
3737
delete schema.components.headers;
3838

39-
const tempSchema = { ...schema };
40-
tempSchema.components = {
41-
schemas: {},
42-
examples: {},
39+
const tempSchema = {
40+
...schema,
41+
components: {
42+
schemas: {},
43+
examples: {},
44+
},
4345
};
4446

4547
overrides(file, schema);

0 commit comments

Comments
 (0)