Skip to content

Commit 87792ca

Browse files
committed
fix: bump enhanced-resolve for upstream fix
Otherwise, the following is broken: ```javascript module.exports = require('@acme/ui/tailwind.config.cjs') ``` where `@acme/ui` has: ```json "exports": { "./*.cjs": "./*.cjs", }, ``` and requires the following workaround ```json "exports": { "./tailwind.config.cjs": "./tailwind.config.cjs", "./*.cjs": "./*.cjs", }, ``` bumping the package fixes this.
1 parent 8d22df1 commit 87792ca

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tailwindcss-language-server/ThirdPartyNotices.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ THE SOFTWARE.
614614

615615
================================================================================
616616

617-
enhanced-resolve-301@0.0.1
617+
enhanced-resolve@5.15.0
618618

619619
Copyright JS Foundation and other contributors
620620

@@ -1212,4 +1212,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
12121212
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
12131213
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
12141214
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1215-
THE SOFTWARE.
1215+
THE SOFTWARE.

packages/tailwindcss-language-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"deepmerge": "4.2.2",
5252
"dlv": "1.1.3",
5353
"dset": "3.1.2",
54-
"enhanced-resolve-301": "0.0.1",
54+
"enhanced-resolve": "^5.15.0",
5555
"esbuild": "^0.19.5",
5656
"fast-glob": "3.2.4",
5757
"find-up": "5.0.0",

packages/tailwindcss-language-server/src/util/resolveFrom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as fs from 'fs'
2-
import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve-301'
2+
import { CachedInputFileSystem, ResolverFactory, Resolver, ResolveOptions } from 'enhanced-resolve'
33
import { equal } from 'tailwindcss-language-service/src/util/array'
44

55
let pnpApi: any

0 commit comments

Comments
 (0)