Skip to content

Commit

Permalink
update paths in package.json files to reflect new dist folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Nov 8, 2024
1 parent 93e110d commit aa86311
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"packages": [
"packages/eslint-plugin-pf-codemods",
"packages/pf-codemods",
"packages/class-name-updater"
"packages/class-name-updater",
"packages/css-vars-updater"
],
"version": "independent"
}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "yarn test:v4 && yarn test:v5 && yarn test:v6",
"test:v4": "mocha packages/eslint-plugin-pf-codemods/test/rules/v4",
"test:v5": "mocha packages/eslint-plugin-pf-codemods/test/rules/v5",
"test:v6": "yarn build && mocha packages/eslint-plugin-pf-codemods/dist/js/rules/v6/*/*.test.js",
"test:v6": "yarn build && mocha packages/eslint-plugin-pf-codemods/dist/js/packages/eslint-plugin-pf-codemods/src/rules/v6/*/*.test.js",
"test:v4:single": "pf-codemods --v4 --no-cache test/v4test.tsx",
"test:v5:single": "pf-codemods --no-cache test/test.tsx",
"test:v6:single": "yarn build && pf-codemods --v6 --no-cache packages/eslint-plugin-pf-codemods/src/rules/v6/*/*Input.tsx",
Expand Down Expand Up @@ -38,8 +38,7 @@
},
"homepage": "https://github.com/patternfly/pf-codemods#readme",
"workspaces": [
"packages/*",
"tokenLists"
"packages/*"
],
"devDependencies": {
"lerna": "^3.22.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/class-name-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Red Hat",
"license": "MIT",
"bin": {
"class-name-updater": "./dist/cli.js"
"class-name-updater": "./dist/packages/class-name-updater/src/cli.js"
},
"engines": {
"node": ">=18"
Expand All @@ -17,8 +17,8 @@
"build": "tsc --build --verbose ./tsconfig.json",
"clean": "rimraf ./dist",
"test": "yarn build && yarn test:v5 && yarn test:v6",
"test:v5": "node ./dist/cli.js test --exclude test/largeFile.js",
"test:v6": "node ./dist/cli.js test --exclude test/largeFile.js --v6"
"test:v5": "node ./dist/packages/class-name-updater/src/cli.js test --exclude test/largeFile.js",
"test:v6": "node ./dist/packages/class-name-updater/src/cli.js test --exclude test/largeFile.js --v6"
},
"dependencies": {
"colors": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/class-name-updater/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { classNameUpdate } from "./classNameUpdate";

program
.version(
require('../package.json').version
require('../../../../package.json').version
)
.description("Update class name versioning")
.arguments("<path> [otherPaths...]")
Expand Down
2 changes: 1 addition & 1 deletion packages/css-vars-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Red Hat",
"license": "MIT",
"bin": {
"css-vars-updater": "./dist/cli.js"
"css-vars-updater": "./dist/packages/css-vars-updater/src/cli.js"
},
"engines": {
"node": ">=18"
Expand Down

0 comments on commit aa86311

Please sign in to comment.