From 426bfb72cea56368e2bcc4b66c46baa279d0cce0 Mon Sep 17 00:00:00 2001 From: adamviktora Date: Wed, 13 Nov 2024 12:59:28 +0100 Subject: [PATCH] chore: update yarn classic to yarn@4.5.1 --- .gitignore | 9 +++++++++ .yarnrc.yml | 1 + package.json | 13 +++++++------ packages/class-name-updater/package.json | 2 +- packages/css-vars-updater/package.json | 6 ++++-- packages/eslint-plugin-pf-codemods/package.json | 2 +- packages/shared-helpers/package.json | 4 ++-- packages/shared-helpers/tsconfig.json | 1 + 8 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 .yarnrc.yml diff --git a/.gitignore b/.gitignore index ef5e97296..d4d1e3483 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,14 @@ test/packages/* .DS_Store dist +# Yarn modern +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + # IDE - VSCode .history \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 000000000..3186f3f07 --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/package.json b/package.json index 15fdac786..aa21ffdbe 100644 --- a/package.json +++ b/package.json @@ -41,13 +41,14 @@ "packages/*" ], "devDependencies": { - "lerna": "^3.22.0", - "mocha": "^7.2.0", - "plop": "^3.1.2", - "ts-node": "^10.9.2", + "@types/fs-extra": "^11.0.4", "case-anything": "^2.1.13", "fs-extra": "^11.2.0", - "@types/fs-extra": "^11.0.4" + "lerna": "^8.1.9", + "mocha": "^7.2.0", + "plop": "^3.1.2", + "rimraf": "^6.0.1", + "ts-node": "^10.9.2" }, - "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" + "packageManager": "yarn@4.5.1" } diff --git a/packages/class-name-updater/package.json b/packages/class-name-updater/package.json index 79e62565e..e978f0c97 100644 --- a/packages/class-name-updater/package.json +++ b/packages/class-name-updater/package.json @@ -25,7 +25,7 @@ "commander": "^5.1.0", "diff": "^5.1.0", "glob": "^10.2.6", - "shared-helpers": "^1.0.0" + "shared-helpers": "workspace:^1.0.0" }, "devDependencies": { "@types/diff": "^5.0.9", diff --git a/packages/css-vars-updater/package.json b/packages/css-vars-updater/package.json index 71dea25c3..62f42cd95 100644 --- a/packages/css-vars-updater/package.json +++ b/packages/css-vars-updater/package.json @@ -4,7 +4,9 @@ "description": "Utility to update Patternfly CSS variables when migrating from V5 to a new design token system in V6", "author": "Red Hat", "license": "MIT", - "bin": "./dist/cli.js", + "bin": { + "css-vars-updater": "./dist/cli.js" + }, "engines": { "node": ">=18" }, @@ -21,7 +23,7 @@ "diff": "^5.1.0", "glob": "^10.2.6", "inquirer": "^12.0.1", - "shared-helpers": "^1.0.0" + "shared-helpers": "workspace:^1.0.0" }, "devDependencies": { "@types/diff": "^5.0.9", diff --git a/packages/eslint-plugin-pf-codemods/package.json b/packages/eslint-plugin-pf-codemods/package.json index 20f091184..2de99d765 100644 --- a/packages/eslint-plugin-pf-codemods/package.json +++ b/packages/eslint-plugin-pf-codemods/package.json @@ -18,7 +18,7 @@ "clean": "rimraf ./dist" }, "dependencies": { - "shared-helpers": "^1.0.0" + "shared-helpers": "workspace:^1.0.0" }, "peerDependencies": { "@typescript-eslint/parser": ">=5.58.0", diff --git a/packages/shared-helpers/package.json b/packages/shared-helpers/package.json index 9b8ac6ab3..c6d65dbd7 100644 --- a/packages/shared-helpers/package.json +++ b/packages/shared-helpers/package.json @@ -2,6 +2,8 @@ "name": "shared-helpers", "version": "1.0.0", "description": "Shared helpers for the monorepo", + "author": "Red Hat", + "license": "MIT", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", @@ -9,8 +11,6 @@ "build": "tsc --build --verbose ./tsconfig.json", "clean": "rimraf ./dist" }, - "author": "Red Hat", - "license": "MIT", "dependencies": { "colors": "^1.4.0", "diff": "^5.1.0" diff --git a/packages/shared-helpers/tsconfig.json b/packages/shared-helpers/tsconfig.json index ce1a2da30..d0f268fbe 100644 --- a/packages/shared-helpers/tsconfig.json +++ b/packages/shared-helpers/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { + "module": "CommonJS", "outDir": "./dist" }, "include": ["src/**/*"],