From e8dfe2a1ed6883b6f9bce144c2c5c5e0726f2a32 Mon Sep 17 00:00:00 2001 From: Kravets <57632712+kravetsone@users.noreply.github.com> Date: Sat, 13 Jul 2024 00:56:15 +0300 Subject: [PATCH 1/2] chore: drop unused package --- package.json | 181 +++++++++++++++++++++++++-------------------------- 1 file changed, 90 insertions(+), 91 deletions(-) diff --git a/package.json b/package.json index d745219..31afaf3 100644 --- a/package.json +++ b/package.json @@ -1,94 +1,93 @@ { - "name": "@pm2/io", - "version": "6.0.1", - "description": "PM2.io NodeJS APM", - "main": "build/main/index.js", - "typings": "build/main/index.d.ts", - "types": "build/main/index.d.ts", - "module": "build/module/index.js", - "repository": "https://github.com/keymetrics/pm2-io-apm", - "author": { - "name": "PM2.io tech team", - "email": "tech@pm2.io", - "url": "https://pm2.io" - }, - "contributors": [ - { - "name": "Vincent Vallet", - "url": "https://github.com/wallet77" - } - ], - "license": "Apache-2", - "scripts": { - "build": "tsc -p tsconfig.json", - "build:module": "tsc -p config/exports/tsconfig.module.json", - "lint": "tslint --project . src/**/*.ts", - "unit": "npm run build && bash test.sh", - "mono": "mocha --exit --require ts-node/register", - "test": "npm run unit", - "watch": "tsc -w", - "prepublishOnly": "npm run build" - }, - "scripts-info": { - "build": "(Trash and re)build the library", - "lint": "Lint all typescript source files", - "unit": "Build the library and run unit tests", - "test": "Lint, build, and test the library", - "watch": "Watch source files, rebuild library on changes, rerun relevant tests" - }, - "engines": { - "node": ">=6.0" - }, - "devDependencies": { - "@types/chai": "4.1.4", - "@types/express": "~4.16.1", - "@types/ioredis": "~4.0.6", - "@types/mocha": "5.2.5", - "@types/mongodb": "~3.1.19", - "@types/node": "~10.12.21", - "@types/redis": "~2.8.10", - "chai": "4.1.2", - "express": "^4.17.1", - "ioredis": "^4.16.3", - "koa": "^2.11.0", - "mocha": "~7.1.0", - "mongodb-core": "^3.2.7", - "mysql": "~2.18.1", - "mysql2": "~2.1.0", - "nock": "~10.0.6", - "nyc": "~13.1.0", - "pg": "^7.18.2", - "redis": "^3.0.2", - "source-map-support": "~0.5.9", - "ts-node": "~7.0.1", - "tslint": "~5.11.0", - "tslint-config-standard": "~8.0.1", - "typescript": "^5.2.2", - "vue": "^2.6.11", - "vue-server-renderer": "^2.6.11" - }, - "keywords": [], - "nyc": { - "extension": [ - ".ts" - ], - "exclude": [ - "build/", - "config/", - "examples/", - "test/" + "name": "@pm2/io", + "version": "6.0.1", + "description": "PM2.io NodeJS APM", + "main": "build/main/index.js", + "typings": "build/main/index.d.ts", + "types": "build/main/index.d.ts", + "module": "build/module/index.js", + "repository": "https://github.com/keymetrics/pm2-io-apm", + "author": { + "name": "PM2.io tech team", + "email": "tech@pm2.io", + "url": "https://pm2.io" + }, + "contributors": [ + { + "name": "Vincent Vallet", + "url": "https://github.com/wallet77" + } ], - "cache": true, - "all": true - }, - "dependencies": { - "async": "~2.6.1", - "debug": "~4.3.1", - "eventemitter2": "^6.3.1", - "require-in-the-middle": "^5.0.0", - "semver": "~7.5.4", - "shimmer": "^1.2.0", - "signal-exit": "^3.0.3", - "tslib": "1.9.3" - } + "license": "Apache-2", + "scripts": { + "build": "tsc -p tsconfig.json", + "build:module": "tsc -p config/exports/tsconfig.module.json", + "lint": "tslint --project . src/**/*.ts", + "unit": "npm run build && bash test.sh", + "mono": "mocha --exit --require ts-node/register", + "test": "npm run unit", + "watch": "tsc -w", + "prepublishOnly": "npm run build" + }, + "scripts-info": { + "build": "(Trash and re)build the library", + "lint": "Lint all typescript source files", + "unit": "Build the library and run unit tests", + "test": "Lint, build, and test the library", + "watch": "Watch source files, rebuild library on changes, rerun relevant tests" + }, + "engines": { + "node": ">=6.0" + }, + "devDependencies": { + "@types/chai": "4.1.4", + "@types/express": "~4.16.1", + "@types/ioredis": "~4.0.6", + "@types/mocha": "5.2.5", + "@types/mongodb": "~3.1.19", + "@types/node": "~10.12.21", + "@types/redis": "~2.8.10", + "chai": "4.1.2", + "express": "^4.17.1", + "ioredis": "^4.16.3", + "koa": "^2.11.0", + "mocha": "~7.1.0", + "mongodb-core": "^3.2.7", + "mysql": "~2.18.1", + "mysql2": "~2.1.0", + "nock": "~10.0.6", + "nyc": "~13.1.0", + "pg": "^7.18.2", + "redis": "^3.0.2", + "source-map-support": "~0.5.9", + "ts-node": "~7.0.1", + "tslint": "~5.11.0", + "tslint-config-standard": "~8.0.1", + "typescript": "^5.2.2", + "vue": "^2.6.11", + "vue-server-renderer": "^2.6.11" + }, + "keywords": [], + "nyc": { + "extension": [ + ".ts" + ], + "exclude": [ + "build/", + "config/", + "examples/", + "test/" + ], + "cache": true, + "all": true + }, + "dependencies": { + "debug": "~4.3.1", + "eventemitter2": "^6.3.1", + "require-in-the-middle": "^5.0.0", + "semver": "~7.5.4", + "shimmer": "^1.2.0", + "signal-exit": "^3.0.3", + "tslib": "1.9.3" + } } From af1835197664aebba7fc16ada121802dcccd27bf Mon Sep 17 00:00:00 2001 From: Kravets <57632712+kravetsone@users.noreply.github.com> Date: Sat, 13 Jul 2024 00:57:42 +0300 Subject: [PATCH 2/2] chore: use `files` instead of `.npmignore` & drop `module` property & set `type` to `commonjs` --- .npmignore | 15 --------------- package.json | 5 ++++- 2 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 118d25e..0000000 --- a/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -.idea -src -./config -examples -test -tsconfig.json -tslint.json -.travis.yml -.github -build/temp -build/docs - -coverage -.nyc_output -*.log diff --git a/package.json b/package.json index 31afaf3..628050c 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "@pm2/io", + "type": "commonjs", "version": "6.0.1", "description": "PM2.io NodeJS APM", "main": "build/main/index.js", "typings": "build/main/index.d.ts", "types": "build/main/index.d.ts", - "module": "build/module/index.js", "repository": "https://github.com/keymetrics/pm2-io-apm", "author": { "name": "PM2.io tech team", @@ -68,6 +68,9 @@ "vue-server-renderer": "^2.6.11" }, "keywords": [], + "files": [ + "build" + ], "nyc": { "extension": [ ".ts"