From 204febb6cdf579da4bf01540475bd9e71a8a8c60 Mon Sep 17 00:00:00 2001 From: Ben Floyd Date: Thu, 4 Jun 2026 08:26:18 -0600 Subject: [PATCH] remove builtin-modules --- esbuild.config.mjs | 4 ++-- package-lock.json | 14 -------------- package.json | 9 ++++----- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/esbuild.config.mjs b/esbuild.config.mjs index 3cb7d2a..e12b13b 100644 --- a/esbuild.config.mjs +++ b/esbuild.config.mjs @@ -1,6 +1,6 @@ import esbuild from "esbuild"; import process from "process"; -import builtins from "builtin-modules"; +import { builtinModules } from "module"; import fs from "fs"; import path from "path"; @@ -37,7 +37,7 @@ const context = await esbuild.context({ "@lezer/common", "@lezer/highlight", "@lezer/lr", - ...builtins], + ...builtinModules], format: "cjs", target: "es2018", logLevel: "info", diff --git a/package-lock.json b/package-lock.json index d20ed50..af979e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,6 @@ "@types/node": "^16.11.6", "@typescript-eslint/eslint-plugin": "5.29.0", "@typescript-eslint/parser": "5.29.0", - "builtin-modules": "3.3.0", "esbuild": "0.17.3", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", @@ -2582,19 +2581,6 @@ "dev": true, "license": "MIT" }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/cacheable": { "version": "2.3.5", "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.3.5.tgz", diff --git a/package.json b/package.json index 0f4c336..d0081f1 100644 --- a/package.json +++ b/package.json @@ -23,15 +23,14 @@ "@types/node": "^16.11.6", "@typescript-eslint/eslint-plugin": "5.29.0", "@typescript-eslint/parser": "5.29.0", - "builtin-modules": "3.3.0", "esbuild": "0.17.3", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "obsidian": "latest", + "stylelint": "^16.6.1", + "stylelint-config-standard": "^36.0.0", "ts-jest": "^29.1.0", "tslib": "2.4.0", - "typescript": "4.7.4", - "stylelint": "^16.6.1", - "stylelint-config-standard": "^36.0.0" + "typescript": "4.7.4" } -} \ No newline at end of file +}