Skip to content

Commit

Permalink
[ci] Revise paths on instrumented code
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Jan 8, 2024
1 parent 7084f39 commit 00cfd94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/.nycrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"reporter": ["lcov", "text-summary"],
"include": ["build/js/**/*"],
"exclude": ["cypress/**/*", "node_modules/**/*", "app/**/*", "build/lib/**/*"],
"include": ["app/js/**/*, "build/js/**/*"],
"exclude": ["cypress/**/*", "node_modules/**/*", "app/lib/**/*", "build/lib/**/*"],
"check-coverage": false,
"report-dir": "cypress/coverage",
"sourceMap": false
Expand Down
6 changes: 5 additions & 1 deletion client/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ module.exports = function(grunt) {
shell: {
babel: {
command: "npx babel build/js --out-dir build/js"
},
fix_instrumented_paths: {
command: "find ./build/js/ -type f -exec sed -i -- 's/\\/client\\/build/\\/client\\/app/g' {} +"
}
}
});
Expand Down Expand Up @@ -1058,6 +1061,7 @@ module.exports = function(grunt) {
"clean",
"copy:sources",
"copy:coverage",
"shell:babel"
"shell:babel",
"shell:fix_instrumented_paths"
]);
};

0 comments on commit 00cfd94

Please sign in to comment.