Skip to content

Commit be4a25e

Browse files
authoredMay 17, 2022
refactor(remix-dev): clean up custom tsconfig loader (#3074)
1 parent 0dd7684 commit be4a25e

File tree

5 files changed

+12
-222
lines changed

5 files changed

+12
-222
lines changed
 

‎packages/remix-dev/compiler/utils/tsconfig/configLoader.ts

-63
This file was deleted.

‎packages/remix-dev/compiler/utils/tsconfig/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import tsConfigPaths from "tsconfig-paths";
22

3-
import { loadTsConfig } from "./configLoader";
43
import { writeConfigDefaults } from "./write-config-defaults";
5-
export { loadTsConfig } from "./configLoader";
64

75
export function createMatchPath() {
8-
let configLoaderResult = loadTsConfig();
6+
let configLoaderResult = tsConfigPaths.loadConfig();
97
if (configLoaderResult.resultType === "failed") {
108
if (configLoaderResult.message === "Missing baseUrl in compilerOptions") {
119
throw new Error(

‎packages/remix-dev/compiler/utils/tsconfig/tsConfigLoader.ts

-153
This file was deleted.

‎packages/remix-dev/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@
5050
"remark-mdx-frontmatter": "^1.0.1",
5151
"semver": "^7.3.5",
5252
"sort-package-json": "^1.55.0",
53-
"strip-bom": "^4.0.0",
5453
"tar-fs": "^2.1.1",
55-
"tsconfig-paths": "^3.14.0",
54+
"tsconfig-paths": "^4.0.0",
5655
"ws": "^7.4.5",
5756
"xdm": "^2.0.0"
5857
},

‎yarn.lock

+10-1
Original file line numberDiff line numberDiff line change
@@ -10319,7 +10319,7 @@ ts-node@8.9.1:
1031910319
source-map-support "^0.5.17"
1032010320
yn "3.1.1"
1032110321

10322-
tsconfig-paths@^3.12.0, tsconfig-paths@^3.14.0, tsconfig-paths@^3.9.0:
10322+
tsconfig-paths@^3.12.0, tsconfig-paths@^3.9.0:
1032310323
version "3.14.1"
1032410324
resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz"
1032510325
integrity sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==
@@ -10329,6 +10329,15 @@ tsconfig-paths@^3.12.0, tsconfig-paths@^3.14.0, tsconfig-paths@^3.9.0:
1032910329
minimist "^1.2.6"
1033010330
strip-bom "^3.0.0"
1033110331

10332+
tsconfig-paths@^4.0.0:
10333+
version "4.0.0"
10334+
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-4.0.0.tgz#1082f5d99fd127b72397eef4809e4dd06d229b64"
10335+
integrity sha512-SLBg2GBKlR6bVtMgJJlud/o3waplKtL7skmLkExomIiaAtLGtVsoXIqP3SYdjbcH9lq/KVv7pMZeCBpLYOit6Q==
10336+
dependencies:
10337+
json5 "^2.2.1"
10338+
minimist "^1.2.6"
10339+
strip-bom "^3.0.0"
10340+
1033210341
tslib@^1.8.1, tslib@^1.9.0:
1033310342
version "1.14.1"
1033410343
resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"

0 commit comments

Comments
 (0)
Please sign in to comment.