From aeb1595b86b4f5c62bd0a7ce5c4ffe0f325fd6ba Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Wed, 7 Sep 2022 16:49:29 +0100 Subject: [PATCH] Use patched version of `enhanced-resolve` (#600) --- package-lock.json | 18 +++++++++--------- .../tailwindcss-language-server/package.json | 2 +- .../src/util/resolveFrom.ts | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f5bfbf..6fb4f37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "detective": "5.2.0", "dlv": "1.1.3", "dset": "3.1.2", - "enhanced-resolve": "5.8.0", + "enhanced-resolve-301": "0.0.1", "fast-glob": "3.2.4", "find-up": "5.0.0", "jest": "25.5.4", @@ -7801,10 +7801,10 @@ "once": "^1.4.0" } }, - "node_modules/enhanced-resolve": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.0.tgz", - "integrity": "sha512-Sl3KRpJA8OpprrtaIswVki3cWPiPKxXuFxJXBp+zNb6s6VwNWwFRUdtmzd2ReUut8n+sCPx7QCtQ7w5wfJhSgQ==", + "node_modules/enhanced-resolve-301": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve-301/-/enhanced-resolve-301-0.0.1.tgz", + "integrity": "sha512-g/f3kXka2n15qdlm6ROmbKTumvXmZIbQraY/fNYFrUeMN4slbDWNsCswvpn6LhObdFXAaM/X/ATHUvRWk8+UVg==", "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" @@ -26924,10 +26924,10 @@ "once": "^1.4.0" } }, - "enhanced-resolve": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.8.0.tgz", - "integrity": "sha512-Sl3KRpJA8OpprrtaIswVki3cWPiPKxXuFxJXBp+zNb6s6VwNWwFRUdtmzd2ReUut8n+sCPx7QCtQ7w5wfJhSgQ==", + "enhanced-resolve-301": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve-301/-/enhanced-resolve-301-0.0.1.tgz", + "integrity": "sha512-g/f3kXka2n15qdlm6ROmbKTumvXmZIbQraY/fNYFrUeMN4slbDWNsCswvpn6LhObdFXAaM/X/ATHUvRWk8+UVg==", "requires": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" diff --git a/packages/tailwindcss-language-server/package.json b/packages/tailwindcss-language-server/package.json index 9aebf48..b38ae34 100644 --- a/packages/tailwindcss-language-server/package.json +++ b/packages/tailwindcss-language-server/package.json @@ -47,7 +47,7 @@ "detective": "5.2.0", "dlv": "1.1.3", "dset": "3.1.2", - "enhanced-resolve": "5.8.0", + "enhanced-resolve-301": "0.0.1", "fast-glob": "3.2.4", "find-up": "5.0.0", "jest": "25.5.4", diff --git a/packages/tailwindcss-language-server/src/util/resolveFrom.ts b/packages/tailwindcss-language-server/src/util/resolveFrom.ts index b390fd4..37565df 100644 --- a/packages/tailwindcss-language-server/src/util/resolveFrom.ts +++ b/packages/tailwindcss-language-server/src/util/resolveFrom.ts @@ -1,5 +1,5 @@ import * as fs from 'fs' -import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve' +import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve-301' import { equal } from 'tailwindcss-language-service/src/util/array' let pnpApi: any