From a0665f5499de1a307cc0097106ad56421a516d74 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 19 Jun 2024 10:20:17 +0100 Subject: [PATCH] Remove deprecated packages (#1732) --- package.json | 2 -- scripts/@types/find-npm-prefix.d.ts | 19 ------------------- scripts/hak/index.ts | 3 +-- yarn.lock | 22 +++++----------------- 4 files changed, 6 insertions(+), 40 deletions(-) delete mode 100644 scripts/@types/find-npm-prefix.d.ts diff --git a/package.json b/package.json index 0dc8190..265fc77 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,6 @@ "@types/auto-launch": "^5.0.1", "@types/counterpart": "^0.18.1", "@types/minimist": "^1.2.1", - "@types/mkdirp": "^2.0.0", "@types/node": "18.19.34", "@types/pacote": "^11.1.1", "@types/tar": "^6.1.3", @@ -107,7 +106,6 @@ "eslint-plugin-import": "^2.25.4", "eslint-plugin-matrix-org": "^1.0.0", "eslint-plugin-unicorn": "^53.0.0", - "find-npm-prefix": "^1.0.2", "glob": "^10.0.0", "knip": "^5.0.0", "matrix-web-i18n": "^3.2.1", diff --git a/scripts/@types/find-npm-prefix.d.ts b/scripts/@types/find-npm-prefix.d.ts deleted file mode 100644 index 42d731a..0000000 --- a/scripts/@types/find-npm-prefix.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2022 New Vector Ltd - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -declare module "find-npm-prefix" { - export default function findPrefix(dir: string): Promise; -} diff --git a/scripts/hak/index.ts b/scripts/hak/index.ts index 9e0896b..1d91005 100644 --- a/scripts/hak/index.ts +++ b/scripts/hak/index.ts @@ -15,7 +15,6 @@ limitations under the License. */ import path from "path"; -import findNpmPrefix from "find-npm-prefix"; import HakEnv from "./hakEnv"; import { TargetId } from "./target"; @@ -37,7 +36,7 @@ const METACOMMANDS: Record = { const HAKSCRIPTS = ["check", "fetch", "build"]; async function main(): Promise { - const prefix = await findNpmPrefix(process.cwd()); + const prefix = path.join(__dirname, "..", ".."); let packageJson; try { packageJson = require(path.join(prefix, "package.json")); diff --git a/yarn.lock b/yarn.lock index bd69e96..3be3c11 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2263,13 +2263,6 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e" integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag== -"@types/mkdirp@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-2.0.0.tgz#d14f087a889c3744e7cc41e82ad762b047ebc636" - integrity sha512-c/iUqMymAlxLAyIK3u5SzrwkrkyOdv1XDc91T+b5FsY7Jr6ERhUD19jJHOhPW4GD6tmN6mFEorfSdks525pwdQ== - dependencies: - mkdirp "*" - "@types/ms@*": version "0.7.32" resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.32.tgz#f6cd08939ae3ad886fcc92ef7f0109dacddf61ab" @@ -4125,11 +4118,6 @@ filter-obj@^1.1.0: resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" integrity sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ== -find-npm-prefix@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/find-npm-prefix/-/find-npm-prefix-1.0.2.tgz#8d8ce2c78b3b4b9e66c8acc6a37c231eb841cfdf" - integrity sha512-KEftzJ+H90x6pcKtdXZEPsQse8/y/UnvzRKrOSQFprnrGaFuJ62fVkP34Iu2IYuMvyauCyoLTNkJZgrrGA2wkA== - find-up@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" @@ -5442,11 +5430,6 @@ minizlib@^2.1.1, minizlib@^2.1.2: minipass "^3.0.0" yallist "^4.0.0" -mkdirp@*, mkdirp@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50" - integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg== - mkdirp@^0.5.1: version "0.5.6" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" @@ -5459,6 +5442,11 @@ mkdirp@^1.0.3: resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== +mkdirp@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50" + integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg== + module-details-from-path@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/module-details-from-path/-/module-details-from-path-1.0.3.tgz#114c949673e2a8a35e9d35788527aa37b679da2b"