From c11f3722df9ae8f41424248fb4180f8aca1e1cba Mon Sep 17 00:00:00 2001 From: Tiago Evangelista Pinto Date: Tue, 13 Aug 2024 13:07:50 -0300 Subject: [PATCH] fix(ui-kit): Missing a peer dependency (#33000) --- .changeset/calm-tigers-peel.md | 5 ++ packages/ui-kit/package.json | 125 +++++++++++++++++---------------- yarn.lock | 59 ++++++++++++++-- 3 files changed, 124 insertions(+), 65 deletions(-) create mode 100644 .changeset/calm-tigers-peel.md diff --git a/.changeset/calm-tigers-peel.md b/.changeset/calm-tigers-peel.md new file mode 100644 index 000000000000..32feed6f7107 --- /dev/null +++ b/.changeset/calm-tigers-peel.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/ui-kit": patch +--- + +fix UiKit error message: Failed to resolve module: @rocket.chat/icons diff --git a/packages/ui-kit/package.json b/packages/ui-kit/package.json index 817b03a22ba7..44aac1e25d17 100644 --- a/packages/ui-kit/package.json +++ b/packages/ui-kit/package.json @@ -1,62 +1,67 @@ { - "name": "@rocket.chat/ui-kit", - "version": "0.36.0", - "description": "Interactive UI elements for Rocket.Chat Apps", - "homepage": "https://rocket.chat", - "author": { - "name": "Rocket.Chat", - "url": "https://rocket.chat/" - }, - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/RocketChat/Rocket.Chat.git" - }, - "bugs": { - "url": "https://github.com/RocketChat/Rocket.Chat/issues" - }, - "main": "dist/cjs/index.js", - "module": "dist/esm/index.js", - "types": "dist/esm/index.d.ts", - "files": [ - "/dist" - ], - "publishConfig": { - "access": "public" - }, - "scripts": { - "build": "run-s .:build:prepare .:build:clean .:build:esm .:build:cjs", - ".:build:prepare": "ts-patch install && typia patch", - ".:build:clean": "rimraf dist", - ".:build:esm": "tsc -p tsconfig.esm.json", - ".:build:cjs": "tsc -p tsconfig.cjs.json", - "typecheck": "tsc --noEmit", - "lint": "eslint . --ext .ts,.tsx", - "test": "jest" - }, - "devDependencies": { - "@babel/core": "~7.21.4", - "@babel/eslint-parser": "~7.23.3", - "@babel/plugin-transform-runtime": "~7.21.4", - "@babel/preset-env": "~7.21.4", - "@rocket.chat/eslint-config": "workspace:~", - "@rocket.chat/jest-presets": "workspace:~", - "@types/jest": "~29.5.12", - "babel-loader": "~9.1.2", - "eslint": "~8.45.0", - "jest": "~29.7.0", - "npm-run-all": "~4.1.5", - "prettier": "~2.8.8", - "rimraf": "~3.0.2", - "ts-loader": "~9.4.2", - "ts-node": "~10.9.1", - "ts-patch": "~3.0.2", - "typescript": "~5.3.3" - }, - "dependencies": { - "typia": "~5.3.3" - }, - "volta": { - "extends": "../../package.json" - } + "name": "@rocket.chat/ui-kit", + "version": "0.36.0", + "description": "Interactive UI elements for Rocket.Chat Apps", + "homepage": "https://rocket.chat", + "author": { + "name": "Rocket.Chat", + "url": "https://rocket.chat/" + }, + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/RocketChat/Rocket.Chat.git" + }, + "bugs": { + "url": "https://github.com/RocketChat/Rocket.Chat/issues" + }, + "main": "dist/cjs/index.js", + "module": "dist/esm/index.js", + "types": "dist/esm/index.d.ts", + "files": [ + "/dist" + ], + "publishConfig": { + "access": "public" + }, + "scripts": { + "build": "run-s .:build:prepare .:build:clean .:build:esm .:build:cjs", + ".:build:prepare": "ts-patch install && typia patch", + ".:build:clean": "rimraf dist", + ".:build:esm": "tsc -p tsconfig.esm.json", + ".:build:cjs": "tsc -p tsconfig.cjs.json", + "typecheck": "tsc --noEmit", + "lint": "eslint . --ext .ts,.tsx", + "test": "jest" + }, + "devDependencies": { + "@babel/core": "~7.21.4", + "@babel/eslint-parser": "~7.23.3", + "@babel/plugin-transform-runtime": "~7.21.4", + "@babel/preset-env": "~7.21.4", + "@rocket.chat/eslint-config": "workspace:~", + "@rocket.chat/icons": "^0.36.0", + "@rocket.chat/jest-presets": "workspace:~", + "@types/jest": "~29.5.12", + "babel-loader": "~9.1.2", + "eslint": "~8.45.0", + "jest": "~29.7.0", + "npm-run-all": "~4.1.5", + "prettier": "~2.8.8", + "rimraf": "~3.0.2", + "ts-jest": "~29.1.1", + "ts-loader": "~9.4.2", + "ts-node": "~10.9.1", + "ts-patch": "~3.0.2", + "typescript": "~5.3.3" + }, + "dependencies": { + "typia": "~5.3.3" + }, + "peerDependencies": { + "@rocket.chat/icons": "*" + }, + "volta": { + "extends": "../../package.json" + } } diff --git a/yarn.lock b/yarn.lock index 00ca4ab5c550..de477be8048a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10360,6 +10360,7 @@ __metadata: "@babel/plugin-transform-runtime": ~7.21.4 "@babel/preset-env": ~7.21.4 "@rocket.chat/eslint-config": "workspace:~" + "@rocket.chat/icons": ^0.36.0 "@rocket.chat/jest-presets": "workspace:~" "@types/jest": ~29.5.12 babel-loader: ~9.1.2 @@ -10368,11 +10369,14 @@ __metadata: npm-run-all: ~4.1.5 prettier: ~2.8.8 rimraf: ~3.0.2 + ts-jest: ~29.1.1 ts-loader: ~9.4.2 ts-node: ~10.9.1 ts-patch: ~3.0.2 typescript: ~5.3.3 typia: ~5.3.3 + peerDependencies: + "@rocket.chat/icons": "*" languageName: unknown linkType: soft @@ -17703,6 +17707,15 @@ __metadata: languageName: node linkType: hard +"bs-logger@npm:0.x": + version: 0.2.6 + resolution: "bs-logger@npm:0.2.6" + dependencies: + fast-json-stable-stringify: 2.x + checksum: d34bdaf68c64bd099ab97c3ea608c9ae7d3f5faa1178b3f3f345acd94e852e608b2d4f9103fb2e503f5e69780e98293df41691b84be909b41cf5045374d54606 + languageName: node + linkType: hard + "bs58@npm:^4.0.1": version: 4.0.1 resolution: "bs58@npm:4.0.1" @@ -23269,7 +23282,7 @@ __metadata: languageName: node linkType: hard -"fast-json-stable-stringify@npm:^2.0.0, fast-json-stable-stringify@npm:^2.1.0": +"fast-json-stable-stringify@npm:2.x, fast-json-stable-stringify@npm:^2.0.0, fast-json-stable-stringify@npm:^2.1.0": version: 2.1.0 resolution: "fast-json-stable-stringify@npm:2.1.0" checksum: b191531e36c607977e5b1c47811158733c34ccb3bfde92c44798929e9b4154884378536d26ad90dfecd32e1ffc09c545d23535ad91b3161a27ddbb8ebe0cbecb @@ -28234,7 +28247,7 @@ __metadata: languageName: node linkType: hard -"jest-util@npm:^29.7.0": +"jest-util@npm:^29.0.0, jest-util@npm:^29.7.0": version: 29.7.0 resolution: "jest-util@npm:29.7.0" dependencies: @@ -29455,7 +29468,7 @@ __metadata: languageName: node linkType: hard -"lodash.memoize@npm:^4.1.2": +"lodash.memoize@npm:4.x, lodash.memoize@npm:^4.1.2": version: 4.1.2 resolution: "lodash.memoize@npm:4.1.2" checksum: 9ff3942feeccffa4f1fafa88d32f0d24fdc62fd15ded5a74a5f950ff5f0c6f61916157246744c620173dddf38d37095a92327d5fd3861e2063e736a5c207d089 @@ -29795,7 +29808,7 @@ __metadata: languageName: node linkType: hard -"make-error@npm:^1.1.1": +"make-error@npm:1.x, make-error@npm:^1.1.1": version: 1.3.6 resolution: "make-error@npm:1.3.6" checksum: b86e5e0e25f7f777b77fabd8e2cbf15737972869d852a22b7e73c17623928fccb826d8e46b9951501d3f20e51ad74ba8c59ed584f610526a48f8ccf88aaec402 @@ -39983,6 +39996,42 @@ __metadata: languageName: node linkType: hard +"ts-jest@npm:~29.1.1": + version: 29.1.5 + resolution: "ts-jest@npm:29.1.5" + dependencies: + bs-logger: 0.x + fast-json-stable-stringify: 2.x + jest-util: ^29.0.0 + json5: ^2.2.3 + lodash.memoize: 4.x + make-error: 1.x + semver: ^7.5.3 + yargs-parser: ^21.0.1 + peerDependencies: + "@babel/core": ">=7.0.0-beta.0 <8" + "@jest/transform": ^29.0.0 + "@jest/types": ^29.0.0 + babel-jest: ^29.0.0 + jest: ^29.0.0 + typescript: ">=4.3 <6" + peerDependenciesMeta: + "@babel/core": + optional: true + "@jest/transform": + optional: true + "@jest/types": + optional: true + babel-jest: + optional: true + esbuild: + optional: true + bin: + ts-jest: cli.js + checksum: 96bfdea46d7faa83457c2647806a31a86f28656f703515fee9f6d2ff1ccfc58ccfbbe3ae9283f40141a85af0def30afe887843be5b002c08ed5d5189c941eab1 + languageName: node + linkType: hard + "ts-loader@npm:~9.4.2": version: 9.4.4 resolution: "ts-loader@npm:9.4.4" @@ -42953,7 +43002,7 @@ __metadata: languageName: node linkType: hard -"yargs-parser@npm:^21.1.1": +"yargs-parser@npm:^21.0.1, yargs-parser@npm:^21.1.1": version: 21.1.1 resolution: "yargs-parser@npm:21.1.1" checksum: ed2d96a616a9e3e1cc7d204c62ecc61f7aaab633dcbfab2c6df50f7f87b393993fe6640d017759fe112d0cb1e0119f2b4150a87305cc873fd90831c6a58ccf1c