atom
atom copied to clipboard
(node:21463) [DEP0128] DeprecationWarning 2 times when running script/build
Hello all,
when executing script/build
, you will get two warnings from node
:
(node:21463) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/.cache/yay/atom/src/atom/out/app/node_modules/find-parent-dir/package.json' of 'find-parent-dir.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:21463) [DEP0128] DeprecationWarning: Invalid 'main' field in '/opt/.cache/yay/atom/src/atom/out/app/node_modules/isbinaryfile/package.json' of './lib/panino.js'. Please either fix that or report it to the module author
Here is a patch that will fix that.
--- a/node_modules/find-parent-dir/package.json 2022-06-21 15:00:18.055055351 +0200
+++ b/node_modules/find-parent-dir/package.json 2022-06-21 15:00:34.211336704 +0200
@@ -53,7 +53,7 @@
"walk"
],
"license": "MIT",
- "main": "find-parent-dir.js",
+ "main": "index.js",
"name": "find-parent-dir",
"repository": {
"type": "git",
--- a/node_modules/isbinaryfile/package.json 2022-06-21 15:01:18.460281392 +0200
+++ b/node_modules/isbinaryfile/package.json 2022-06-21 15:01:34.829890986 +0200
@@ -38,7 +38,7 @@
"node": ">=0.6.0"
},
"homepage": "https://github.com/gjtorikian/isBinaryFile#readme",
- "main": "./lib/panino.js",
+ "main": "index.js",
"maintainers": [
{
"name": "Garen J. Torikian",