From b16e80f1bae3ebe23358479d5a4531e1d400c6d0 Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Mon, 5 Feb 2024 16:42:20 +0100 Subject: [PATCH] refactor: explicitly use built-in `path` and `fs` modules --- package.json | 2 -- pnpm-lock.yaml | 17 ----------------- webpack.mix.js | 4 ++-- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 8f4509e..09af77a 100644 --- a/package.json +++ b/package.json @@ -62,12 +62,10 @@ "eslint": "8.56.0", "eslint-plugin-json": "3.1.0", "eslint-plugin-react": "7.33.2", - "fs": "0.0.2", "laravel-mix": "6.0.49", "npm-check-updates": "16.14.14", "npm-package-json-lint": "7.1.0", "npm-run-all": "4.1.5", - "path": "0.12.7", "resolve-url-loader": "5.0.0", "stylelint": "16.2.1", "stylelint-config-standard-scss": "13.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 07b211e..862f380 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,9 +103,6 @@ devDependencies: eslint-plugin-react: specifier: 7.33.2 version: 7.33.2(eslint@8.56.0) - fs: - specifier: 0.0.2 - version: 0.0.2 laravel-mix: specifier: 6.0.49 version: 6.0.49(@babel/core@7.23.7)(@babel/plugin-proposal-object-rest-spread@7.20.7)(@babel/plugin-syntax-dynamic-import@7.8.3)(@babel/plugin-transform-runtime@7.23.7)(@babel/preset-env@7.23.8)(postcss@8.4.33)(webpack-cli@4.10.0)(webpack@5.89.0) @@ -118,9 +115,6 @@ devDependencies: npm-run-all: specifier: 4.1.5 version: 4.1.5 - path: - specifier: 0.12.7 - version: 0.12.7 resolve-url-loader: specifier: 5.0.0 version: 5.0.0 @@ -8052,10 +8046,6 @@ packages: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true - /fs@0.0.2: - resolution: {integrity: sha512-YAiVokMCrSIFZiroB1oz51hPiPRVcUtSa4x2U5RYXyhS9VAPdiFigKbPTnOSq7XY8wd3FIVPYmXpo5lMzFmxgg==} - dev: true - /fsevents@2.3.2: resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -11738,13 +11728,6 @@ packages: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} - /path@0.12.7: - resolution: {integrity: sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==} - dependencies: - process: 0.11.10 - util: 0.10.4 - dev: true - /pbkdf2@3.1.2: resolution: {integrity: sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==} engines: {node: '>=0.12'} diff --git a/webpack.mix.js b/webpack.mix.js index 2dd269b..03c983c 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -1,6 +1,6 @@ const mix = require('laravel-mix'), - fs = require('fs'), - path = require('path'); + fs = require('node:fs'), + path = require('node:path'); const ALLOWED_FILES = ['.scss', 'client.js']; const MIX_OPTIONS = {