From 738a117198c66eaba469f2ab10e1b6ce848e3bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allen=20Zhang=20=28=E5=BC=A0=E6=B6=9B=29?= Date: Mon, 30 Sep 2024 15:00:58 +0800 Subject: [PATCH] feat: update --- packages/canyon-report/lib/reports/dynamic-data.js | 2 +- packages/canyon-report/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",