@lorefnon/tslog
Version:
Extensible TypeScript Logger for Node.js and Browser.
146 lines (145 loc) • 4.23 kB
JSON
{
"name": "@lorefnon/tslog",
"version": "4.9.1-alpha2",
"description": "Extensible TypeScript Logger for Node.js and Browser.",
"author": "Eugene <opensource@terehov.de> (https://fullstack.build)",
"license": "MIT",
"funding": "https://github.com/fullstack-build/tslog?sponsor=1",
"homepage": "https://tslog.js.org",
"repository": {
"type": "git",
"url": "git+https://github.com/fullstack-build/tslog.git"
},
"bugs": {
"url": "https://github.com/fullstack-build/tslog/issues"
},
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"browser": {
"tslog": "./dist/browser/index.js",
"./dist/esm/runtime/nodejs/index.js": "./dist/esm/runtime/browser/index.js",
"./dist/cjs/runtime/nodejs/index.js": "./dist/cjs/runtime/browser/index.js",
"./src/runtime/nodejs/index.js": "./src/runtime/browser/index.js",
"util": false
},
"react-native": "./dist/cjs/index.js",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js",
"default": "./dist/esm/index.js"
}
},
"scripts": {
"prepare": "husky install",
"build": "npm run build-types && npm run build-server && npm run build-browser",
"build-browser": "node build.js",
"build-types": "tsc -b tsconfig.types.json",
"build-server": "tsc -b tsconfig.esm.json tsconfig.cjs.json && cp ./src/package-cjs.json ./dist/cjs/package.json",
"build-example": "tsc -b tsconfig.example.json",
"dev-ts": "nodemon examples/nodejs/index2.ts",
"dev-ts-old-example": "nodemon examples/nodejs/index.ts",
"lint": "eslint --ext .js,.ts .",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
"test": "JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs jest",
"test-puppeteer-serve": "npm run build-browser && node tests/Browser/server/index.cjs -p 4444",
"coverage": "JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs jest --coverage",
"docsify-init": "docsify init ./docs",
"docsify-serve": "cd docs && docsify serve",
"pre-publish": "npm run build",
"release": "np --any-branch"
},
"engines": {
"node": ">=16"
},
"jest": {
"verbose": true,
"preset": "./jest-preset",
"resolver": "ts-jest-resolver",
"testTimeout": 100000,
"testEnvironment": "node",
"collectCoverage": true,
"clearMocks": true,
"testMatch": [
"**/tests/**/*.test.ts",
"**/tests/**/*.test.js"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node-modules/",
"<rootDir>/tests/",
"<rootDir>/src/runtime/browser/"
]
},
"np": {
"yarn": false,
"contents": "."
},
"publishConfig": {
"access": "public"
},
"nodemonConfig": {
"watch": [
"./**/*.ts"
],
"exec": "node --experimental-specifier-resolution=node --enable-source-maps --no-warnings --loader ts-node/esm"
},
"devDependencies": {
"@jest/types": "^28.1.3",
"@types/expect-puppeteer": "^5.0.1",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/node": "^17.0.29",
"@types/puppeteer": "^5.4.6",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"docsify": "^4.11.4",
"esbuild": "^0.15.15",
"eslint": "^8.23.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-puppeteer": "^6.2.0",
"nodemon": "^2.0.19",
"np": "^7.6.2",
"prettier": "^2.7.1",
"puppeteer": "^21.0.1",
"ts-jest": "^28.0.8",
"ts-jest-resolver": "^2.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"sideEffects": false,
"keywords": [
"logger",
"typescript",
"log level",
"json",
"stacktrace",
"Error.stack",
"call location",
"debug",
"pretty",
"log",
"log4j",
"log4js",
"log4ts",
"print",
"logging",
"stack",
"trace",
"pretty print",
"prettify",
"format",
"human",
"callsites",
"callsite",
"show error",
"handling exceptions",
"pretty log",
"pretty json",
"pretty-error",
"sourcemap"
]
}