diff --git a/package-lock.json b/package-lock.json index 03bd17c..b057213 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,6 @@ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2", "@eslint/js": "^9.39.5", "chai": "^6.2.2", - "dirname-filename-esm": "^1.1.2", "eslint": "^9.39.5", "eslint-config-prettier": "^10.1.8", "eslint-plugin-import": "^2.32.0", @@ -1615,12 +1614,6 @@ "node": ">=0.3.1" } }, - "node_modules/dirname-filename-esm": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/dirname-filename-esm/-/dirname-filename-esm-1.1.2.tgz", - "integrity": "sha512-mMhH2imzJN95KnX/iDAhC0QDG0VU833c88U3SXCaQzATu7YlO9YTFD/CF9Nn2xhSwFlV9iWEKb/YyGJ4TwCcPg==", - "dev": true - }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -6015,12 +6008,6 @@ "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", "dev": true }, - "dirname-filename-esm": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/dirname-filename-esm/-/dirname-filename-esm-1.1.2.tgz", - "integrity": "sha512-mMhH2imzJN95KnX/iDAhC0QDG0VU833c88U3SXCaQzATu7YlO9YTFD/CF9Nn2xhSwFlV9iWEKb/YyGJ4TwCcPg==", - "dev": true - }, "dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", diff --git a/package.json b/package.json index 4d4c28d..6cd0b0a 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2", "@eslint/js": "^9.39.5", "chai": "^6.2.2", - "dirname-filename-esm": "^1.1.2", "eslint": "^9.39.5", "eslint-config-prettier": "^10.1.8", "eslint-plugin-import": "^2.32.0", diff --git a/test/index.js b/test/index.js index fa3750f..764481e 100644 --- a/test/index.js +++ b/test/index.js @@ -2,7 +2,6 @@ import { join } from "node:path"; import { readFileSync } from "node:fs"; import { expect } from "chai"; import { requireFromString, importFromStringSync } from "module-from-string"; -import { dirname } from "dirname-filename-esm"; // https://github.com/import-js/eslint-plugin-import/issues/1649 // eslint-disable-next-line import/no-unresolved @@ -11,7 +10,8 @@ import lua2js from "redis-lua2js"; describe("redis-lua2js", () => { it("should export name and numberOfKeys from lua", () => { const lua = readFileSync( - join(dirname(import.meta), "test_both.lua"), + // eslint-disable-next-line n/no-unsupported-features/node-builtins + join(import.meta.dirname, "test_both.lua"), "utf8", ); @@ -24,7 +24,8 @@ describe("redis-lua2js", () => { it("should return null name and numeberOfKeys", () => { const lua = readFileSync( - join(dirname(import.meta), "test_none.lua"), + // eslint-disable-next-line n/no-unsupported-features/node-builtins + join(import.meta.dirname, "test_none.lua"), "utf8", ); @@ -37,7 +38,8 @@ describe("redis-lua2js", () => { it("should export name from lua and null numberOfKeys", () => { const lua = readFileSync( - join(dirname(import.meta), "test_name.lua"), + // eslint-disable-next-line n/no-unsupported-features/node-builtins + join(import.meta.dirname, "test_name.lua"), "utf8", ); @@ -50,7 +52,8 @@ describe("redis-lua2js", () => { it("should export null name and numberOfKeys from lua", () => { const lua = readFileSync( - join(dirname(import.meta), "test_nkeys.lua"), + // eslint-disable-next-line n/no-unsupported-features/node-builtins + join(import.meta.dirname, "test_nkeys.lua"), "utf8", ); @@ -63,7 +66,8 @@ describe("redis-lua2js", () => { it("should generate esm module", () => { const lua = readFileSync( - join(dirname(import.meta), "test_both.lua"), + // eslint-disable-next-line n/no-unsupported-features/node-builtins + join(import.meta.dirname, "test_both.lua"), "utf8", );