-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
70 lines (70 loc) · 2.72 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"name": "pm2-devmon",
"version": "1.5.1",
"description": "PM2 development environment monitor running in independent mode",
"keywords": [
"cli",
"pm2",
"pm2-dev",
"pm2-devmon",
"node-pm2",
"dev",
"development",
"monitor",
"reload",
"restart",
"independent",
"nodemon",
"express",
"fastify",
"supervisor",
"daemon",
"manager",
"tools"
],
"homepage": "https://github.com/alexzel/pm2-devmon#readme",
"bugs": "https://github.com/alexzel/pm2-devmon/issues",
"repository": "https://github.com/alexzel/pm2-devmon.git",
"author": "Alex Zelensky",
"license": "MIT",
"scripts": {
"lint": "eslint ./lib",
"test": "jest",
"pretest": "yarn run lint",
"release": "tags=($(git tag -l --sort=-version:refname)); last_tag=${tags[0]}; echo \"Last version: ${last_tag:1}\"; read -p \"New version: \" version && export PKG_VERSION=$version && export PKG_LAST_TAG=$last_tag && export PKG_BRANCH=$(git rev-parse --abbrev-ref HEAD) && yarn commits",
"prerelease": "yarn cleanup && yarn install && yarn test",
"commits": "export PKG_COMMITS=$(git log $PKG_LAST_TAG...HEAD --no-merges --oneline --pretty=format:\" * %s\") && yarn message",
"message": "export PKG_MESSAGE=$(echo \"## [$PKG_VERSION](${npm_package_repository_url:0:$(expr ${#npm_package_repository_url} - 4)}/compare/$PKG_LAST_TAG...v$PKG_VERSION) (`date +%F`)\n\n$PKG_COMMITS\") && yarn confirm",
"confirm": "echo \"\n${PKG_MESSAGE}\n\"; read -r -p \"Proceed with the changes? [y/N]\";echo;if [[ $REPLY =~ ^[Yy]$ ]];then yarn proceed;fi;",
"proceed": "echo \"$(head -n 1 CHANGELOG.md)\n\n${PKG_MESSAGE}\n$(tail -n +2 CHANGELOG.md)\" > CHANGELOG.md && yarn version --no-git-tag-version --new-version $PKG_VERSION && git add . && (echo \"v${PKG_VERSION}\n\n${PKG_COMMITS}\" | git commit -F -) && git tag v$PKG_VERSION && yarn push",
"push": "read -r -p \"Push ${PKG_BRANCH} to github? [y/N]\";echo;if [[ $REPLY =~ ^[Yy]$ ]];then git push origin $PKG_BRANCH --tags && yarn publish . --new-version $PKG_VERSION;else yarn cleanup;fi;",
"cleanup": "git tag -d $(git tag) && git fetch --all --tags && git clean --force -d -x && git reset --hard origin/main && git checkout main"
},
"main": "lib/start.js",
"files": [
"lib",
"bin",
"test"
],
"bin": {
"pm2-devmon": "./bin/pm2-devmon"
},
"devDependencies": {
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"jest": "^29.7.0",
"pm2": "^ 5.3.1"
},
"peerDependencies": {
"pm2": ">= 5.2.0 < 6"
},
"dependencies": {
"yargs": "^17.7.2"
},
"engines": {
"node": ">=16.0.0"
}
}