A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
1.33k
stars
70
forks
source link
Userscript has incorrect name if `author` in package.json is specified as object #38
Closed
7nik closed 1 year ago
The
author
field inpackage.json
can be specified as a string or the objectIn the latter case, the
author.name
is used as the userscript name instead of thename
field frompackage.json
which is of course incorrect.Example
If
package.json
has the following fields:the userscript will be compiler with the name
author_name
instead ofscript_name
.