Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Sep 30, 2024
1 parent fc9f0e4 commit 738a117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/canyon-report/lib/reports/dynamic-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const generateDynamicData = ({coverage,_instrumentCwd}) => {
},
};
fs.writeFileSync(
path.join(process.cwd(), `coverage/dynamic-data/${key}.js`),
path.join(process.cwd(), `coverage/dynamic-data/${key.replaceAll(instrumentCwd+'/', "")}.js`),
`window["${key.replaceAll(instrumentCwd+'/', "")}"] = ${JSON.stringify(jsonData,null,2)}`,
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/canyon-report/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "canyon-report",
"version": "0.0.8-beta-27",
"version": "0.0.8-beta-28",
"description": "My webpack project",
"main": "./lib/index.js",
"bin": "./lib/cli.js",
Expand Down

0 comments on commit 738a117

Please sign in to comment.