Skip to content

Commit

Permalink
suppress ExperimentalWarning: Importing JSON modules is an experiment…
Browse files Browse the repository at this point in the history
…al ...

see also nodejs/node#30810 (comment)
  • Loading branch information
liudonghua123 committed Jan 16, 2024
1 parent 9927350 commit 8421e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/node-sea.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
#!/usr/bin/env node --no-warnings=ExperimentalWarning

import chalk from "chalk";
import { Command } from "commander";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "liudonghua123 <[email protected]>",
"license": "MIT",
"scripts": {
"start": "node bin/node-sea.js"
"start": "node --no-warnings=ExperimentalWarning bin/node-sea.js"
},
"dependencies": {
"chalk": "^5.3.0",
Expand Down

0 comments on commit 8421e8b

Please sign in to comment.