From 9e7ebe34def26cde3f7db2248ee9f650441803c3 Mon Sep 17 00:00:00 2001 From: ls147258 Date: Mon, 4 May 2026 22:45:56 +0800 Subject: [PATCH] fix: suppress Node.js DEP0005 deprecation warning from third-party dependencies Change-Id: I98331d7d614af274b57abaa059a1f2f23da65ffb Co-developed-by: Claude Co-Authored-By: Claude Opus 4.7 --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index 923eb320..0531e97a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,6 @@ +// Suppress Node.js deprecation warnings from third-party dependencies (DEP0005: Buffer constructor) +(process as any).noDeprecation = true; + import * as fs from 'fs'; import { parseArgv } from '@serverless-devs/utils'; import { IInputs } from './interface';