From e02cc1be8846c5138ee6f6317eafada790b332da Mon Sep 17 00:00:00 2001 From: Timothy Lin Date: Sat, 27 Apr 2024 15:47:18 +0800 Subject: [PATCH] revert ts-patch to v2 --- package.json | 4 +- .../@contentlayer/core/src/_ArtifactsDir.ts | 1 - yarn.lock | 81 +++++++++++++++---- 3 files changed, 69 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 25118da5..550767e3 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-simple-import-sort": "^12.1.0", "prettier": "^3.2.5", - "ts-patch": "^3.1.2", + "ts-patch": "^2.1.0", "typescript": "^5.1.6" }, "resolutions": { @@ -48,4 +48,4 @@ "rxjs": "^7.1.0" }, "packageManager": "yarn@3.2.3" -} \ No newline at end of file +} diff --git a/packages/@contentlayer/core/src/_ArtifactsDir.ts b/packages/@contentlayer/core/src/_ArtifactsDir.ts index 235abbc6..f5bdb647 100644 --- a/packages/@contentlayer/core/src/_ArtifactsDir.ts +++ b/packages/@contentlayer/core/src/_ArtifactsDir.ts @@ -16,7 +16,6 @@ export const mkdir: T.Effect, resolve@patch:resolve@^1.10.0#~builtin, resolve@patch:resolve@^1.19.0#~builtin, resolve@patch:resolve@^1.22.2#~builtin, resolve@patch:resolve@^1.22.4#~builtin": +"resolve@patch:resolve@^1.1.6#~builtin, resolve@patch:resolve@^1.1.7#~builtin, resolve@patch:resolve@^1.10.0#~builtin, resolve@patch:resolve@^1.19.0#~builtin, resolve@patch:resolve@^1.22.1#~builtin, resolve@patch:resolve@^1.22.2#~builtin, resolve@patch:resolve@^1.22.4#~builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#~builtin::version=1.22.8&hash=07638b" dependencies: @@ -9551,6 +9589,19 @@ __metadata: languageName: node linkType: hard +"shelljs@npm:^0.8.5": + version: 0.8.5 + resolution: "shelljs@npm:0.8.5" + dependencies: + glob: ^7.0.0 + interpret: ^1.0.0 + rechoir: ^0.6.2 + bin: + shjs: bin/shjs + checksum: 7babc46f732a98f4c054ec1f048b55b9149b98aa2da32f6cf9844c434b43c6251efebd6eec120937bd0999e13811ebd45efe17410edb3ca938f82f9381302748 + languageName: node + linkType: hard + "side-channel@npm:^1.0.4, side-channel@npm:^1.0.6": version: 1.0.6 resolution: "side-channel@npm:1.0.6" @@ -10409,20 +10460,22 @@ __metadata: languageName: node linkType: hard -"ts-patch@npm:^3.1.2": - version: 3.1.2 - resolution: "ts-patch@npm:3.1.2" +"ts-patch@npm:^2.1.0": + version: 2.1.0 + resolution: "ts-patch@npm:2.1.0" dependencies: chalk: ^4.1.2 + glob: ^8.0.3 global-prefix: ^3.0.0 - minimist: ^1.2.8 - resolve: ^1.22.2 - semver: ^7.5.4 + minimist: ^1.2.6 + resolve: ^1.22.1 + shelljs: ^0.8.5 strip-ansi: ^6.0.1 + peerDependencies: + typescript: ">=4.0.0" bin: - ts-patch: bin/ts-patch.js - tspc: bin/tspc.js - checksum: b6bf7a34280863b32f5c21d8367108046f1e0305d197e87ef871679c446a6fe29662d7e3d4de19bda8785b49bd628d58d9dc82d908f1a785638115a08c6b01ea + ts-patch: bin/cli.js + checksum: 05ab14bb3552b0264c61751009f6a78f5d95b6c695e4bfd8183e7666a617e6ec9653e12a0453a0abc623591a56fd0c0f0c9c590b87be5b177332429db97cbfd1 languageName: node linkType: hard