X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=package.json;h=acdb54cc846ca92fd1fa0b8f91ae9979d5638847;hb=5c5b24ee8a3461b7b2eb5832fdac4efb9bf3449f;hp=0d98bdad80827b720346e4dfb33883f91eb2d5c2;hpb=816ece19d6fd46f03b81fdae79337cefe372fb27;p=poolifier.git diff --git a/package.json b/package.json index 0d98bdad..acdb54cc 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,21 @@ { "name": "poolifier", - "version": "1.2.0", + "version": "1.2.1", "description": "Library on top of node js worker threads that implement various worker pools type", - "main": "index.js", - "types": "index.d.ts", + "main": "lib/index.js", "scripts": { - "build": "npm install", - "test": "standard && nyc mocha --exit --timeout 20000 tests/*test.js ", - "debug-test": "mocha --inspect-brk --exit tests/*test.js ", - "demontest": "nodemon --exec \"npm test\"", + "build": "npm run build:clean && tsc", + "build:clean": "rimraf lib", + "test": "standard && ts-standard && npm run build && nyc mocha --exit --timeout 20000 tests/*test.js ", + "test:debug": "mocha --inspect-brk --exit tests/*test.js ", + "test:nodemon": "nodemon --exec \"npm test\"", "coverage": "nyc report --reporter=text-lcov | coveralls", - "standard-verbose": "npx standard --verbose", - "lint": "standard --fix" + "import-sort": "npx import-sort-cli --write 'src/**/*.ts{,x}'", + "standard:verbose": "npx standard --verbose", + "lint:standard": "prettier-standard --format | standard --fix", + "ts-standard:verbose": "npx ts-standard --verbose", + "lint:ts-standard": "ts-standard --fix", + "lint-and-format": "npm run lint:standard && npm run lint:ts-standard && npm run import-sort" }, "repository": { "type": "git", @@ -30,6 +34,22 @@ "env": [ "mocha", "node" + ], + "ignore": [ + "lib/", + "src/", + "examples/typescript/" + ] + }, + "ts-standard": { + "env": [ + "mocha", + "node" + ], + "extensions": ".ts", + "ignore": [ + "lib/", + "examples/typescript/" ] }, "author": "pioardi", @@ -45,9 +65,14 @@ "mocha": "^8.0.1", "mocha-lcov-reporter": "^1.3.0", "nyc": "^15.0.0", - "standard": "^15.0.0" + "prettier-standard": "^16.4.1", + "rimraf": "^3.0.2", + "standard": "^16.0.3", + "ts-standard": "^10.0.0", + "typescript": "^4.1.3" }, "engines": { "node": ">=12.0.0" - } + }, + "dependencies": {} }