From 8421e8b105c2ba2dab5cf66d569ba15540b60edb Mon Sep 17 00:00:00 2001 From: liudonghua123 Date: Tue, 16 Jan 2024 09:44:10 +0800 Subject: [PATCH] suppress ExperimentalWarning: Importing JSON modules is an experimental ... see also https://github.com/nodejs/node/issues/30810#issuecomment-1433950987 --- bin/node-sea.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/node-sea.js b/bin/node-sea.js index 426bc57..7172e0f 100644 --- a/bin/node-sea.js +++ b/bin/node-sea.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/env node --no-warnings=ExperimentalWarning import chalk from "chalk"; import { Command } from "commander"; diff --git a/package.json b/package.json index f277b29..2ccada4 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "author": "liudonghua123 ", "license": "MIT", "scripts": { - "start": "node bin/node-sea.js" + "start": "node --no-warnings=ExperimentalWarning bin/node-sea.js" }, "dependencies": { "chalk": "^5.3.0",