Skip to content

Commit

Permalink
Update test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jessiehuff committed Mar 26, 2024
1 parent f6a7bd2 commit 00f9e54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/class-name-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"scripts": {
"build": "tsc --build --verbose ./tsconfig.json",
"clean": "rimraf ./dist",
"test": "node ./dist/cli.js test --exclude test/largeFile.js"
"test": "node ./dist/cli.js test --exclude test/largeFile.js",
"test:v6": "node ./dist/cli.js test --exclude test/largeFile.js --pfVersion 6"
},
"dependencies": {
"colors": "^1.4.0",
Expand Down
1 change: 0 additions & 1 deletion packages/class-name-updater/src/classNameUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { printDiff } from "./printDiff";

export async function classNameUpdate(globTarget: string, makeChange: boolean, fileTypesRegex: RegExp, excludeFiles: string[] = [], pfVersion: number) {
const acceptedFileTypesRegex = fileTypesRegex || /\.(s?css|less|(t|j)sx?|md)$/;
// const changeNeededRegex = /(\b|\$)pf-([cul]|global|theme|color)-/g;
const previousVersion = pfVersion ? "-v" + (pfVersion - 1) : "";
const changeNeededRegex = new RegExp(
"(\\b|\\$)pf" + previousVersion + "-([cul]|global|theme|color)-",
Expand Down

0 comments on commit 00f9e54

Please sign in to comment.