-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Description of the JSON schema.
Nodemon supports using package.json for configuration. One can specify the config in the same format as she would for nodemon.json but under nodemonConfig in the package.json file, for example, take the following package.json:
{
"name": "fttl-yt-player",
"version": "1.0.0",
"main": "src/fttl-yt-player.js",
"type": "module",
"scripts": {
"dl:schema": "npm run dl --prefix .vscode",
"watch": "nodemon"
},
"nodemonConfig": {
"events": {
"restart": "node --eval=\"console.log(require('process').env.FILENAME)\""
},
"exec": "npm run build --workspaces --if-present",
"ext": "*",
"ignore": "*.min.*",
"watch": "src"
},
"keywords": [],
"author": "Fabrice Sanga",
"license": "ISC",
"description": "YouTube play on hover web component",
"workspaces": [ "build/", "build/minify/" ],
"devDependencies": {
"nodemon": "^3.1.10"
}
}This would be a merge of the NPM package.json and the nodemon.json schemas.
Supporting information.
Nodemon supports using package.json for configuration
NPM package.json schema
nodemon.json schema
Are you making a PR for this?
No, someone else must create the PR.