diff --git a/packages/canyon-report/lib/reports/dynamic-data.js b/packages/canyon-report/lib/reports/dynamic-data.js index 8c357ccd..a067e403 100644 --- a/packages/canyon-report/lib/reports/dynamic-data.js +++ b/packages/canyon-report/lib/reports/dynamic-data.js @@ -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)}`, ); } diff --git a/packages/canyon-report/package.json b/packages/canyon-report/package.json index ec1fda76..e5536279 100755 --- a/packages/canyon-report/package.json +++ b/packages/canyon-report/package.json @@ -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",