Skip to content

Commit

Permalink
Add TS types (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed May 28, 2021
1 parent 3c0613a commit dfca887
Show file tree
Hide file tree
Showing 6 changed files with 1,201 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
@@ -0,0 +1,2 @@
pino.d.ts
test/types/pino.test-d.ts
18 changes: 14 additions & 4 deletions package.json
Expand Up @@ -3,9 +3,12 @@
"version": "6.11.3",
"description": "super fast, all natural json logger",
"main": "pino.js",
"type": "commonjs",
"types": "pino.d.ts",
"browser": "./browser.js",
"files": [
"pino.js",
"pino.d.ts",
"bin.js",
"browser.js",
"pretty.js",
Expand All @@ -19,8 +22,9 @@
"docs": "docsify serve",
"browser-test": "airtap --local 8080 test/browser*test.js",
"lint": "eslint .",
"test": "npm run lint && tap --100 test/*test.js test/*/*test.js",
"test": "npm run lint && tap --100 test/*test.js test/*/*test.js && npm run test:types",
"test-ci": "npm run lint && tap test/*test.js test/*/*test.js --coverage-report=lcovonly",
"test-types": "tsc && tsd",
"cov-ui": "tap --coverage-report=html test/*test.js test/*/*test.js",
"bench": "node benchmarks/utils/runbench all",
"bench-basic": "node benchmarks/utils/runbench basic",
Expand Down Expand Up @@ -60,6 +64,7 @@
},
"homepage": "http://getpino.io",
"devDependencies": {
"@types/node": "^15.3.0",
"airtap": "4.0.3",
"benchmark": "^2.1.4",
"bole": "^4.0.0",
Expand All @@ -76,7 +81,7 @@
"import-fresh": "^3.2.1",
"log": "^6.0.0",
"loglevel": "^1.6.7",
"pino-pretty": "^4.1.0",
"pino-pretty": "^5.0.0",
"pre-commit": "^1.2.2",
"proxyquire": "^2.1.3",
"pump": "^3.0.0",
Expand All @@ -87,13 +92,18 @@
"tap": "^15.0.1",
"tape": "^5.0.0",
"through2": "^4.0.0",
"tsd": "^0.15.1",
"typescript": "^4.2.4",
"winston": "^3.3.3"
},
"dependencies": {
"fast-redact": "^3.0.0",
"fast-safe-stringify": "^2.0.7",
"pino-std-serializers": "^3.1.0",
"pino-std-serializers": "^4.0.0",
"quick-format-unescaped": "^4.0.3",
"sonic-boom": "^1.0.2"
"sonic-boom": "^2.0.1"
},
"tsd": {
"directory": "test/types"
}
}

0 comments on commit dfca887

Please sign in to comment.