convert pakcage.json to private, for internal use
package.json file path
Optional
argv: ArgvOptionsGet application semo config only.
Optional
opts: ArgvOptionsopts.scriptName: set scriptName
Get current node env setting
You can change the node-env-key in command args or semo rc file
Optional
argv: Record<string, unknown>Import a package on runtime
If not exist, will install first,
Package name
node_module directory by location
if true save modules to .semo, if false, save to cwd
Force install again
Shortcut for checking if or not current env is development
Shortcut for checking if or not current env is production
Load any package's package.json
package name
search paths
Load plugin rc config
Plugin name
plugin installed directory name under ~/.semo
if load from HOME directory
Use dotenv style
expand dotenv
Static
getStatic
setProject depends Semo has it's own Semo env which is not initialized. So we need to set the instance manually.
Core instance
Get current argv config