@badcafe/jsonizer
Version:
Structural reviving for JSON
141 lines (140 loc) • 4.15 kB
JSON
{
"name": "@badcafe/jsonizer",
"version": "9.1.0",
"description": "Structural reviving for JSON",
"main": "dist/index.cjs",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"types": "./dist/index.d.cts",
"files": [
"dist",
"README.md",
"LICENSE.txt"
],
"scripts": {
"test": "jest --runInBand --verbose",
"test:watch": "jest --runInBand --watchAll",
"test:file": "jest --",
"check": "attw --pack .",
"compile": "tsc -b",
"postcompile": "rollup -c",
"compile:test": "cd test ; tsc -b",
"compile:version": "tsc -v",
"eslint": "eslint src",
"site:prepare:reports:sloc": "sloc -e tests --format json src/ > scripts/sloc-report.json",
"site:prepare:reports:sloc:tests": "sloc --format json test > scripts/sloc-tests-report.json",
"site:prepare:reports:eslint": "eslint -f json -o scripts/eslint-report.json src || :",
"site:prepare:reports:jest": "jest --noStackTrace --silent --json --outputFile='scripts/jest-report.json' || :",
"site:prepare:reports:attw": "attw --pack --format json . > scripts/attw-report.json",
"site:prepare:reports": "npm run site:prepare:reports:sloc && npm run site:prepare:reports:sloc:tests && npm run site:prepare:reports:eslint && npm run site:prepare:reports:jest && npm run site:prepare:reports:attw",
"site:assemble:reports": "node --import tsx scripts/reports.mts",
"site:assemble:api": "typedoc --tsconfig tsconfig.json src",
"site:assemble": "npm run site:assemble:reports && npm run site:assemble:api",
"presite": "npm run site:prepare:reports && npm run site:assemble",
"site": "docsify --port 4455 serve ./docs",
"site:init": "require('docsify-cli')('./docs')"
},
"repository": {
"type": "git",
"url": "git+https://github.com/badcafe/jsonizer.git"
},
"author": "Philippe Poulard <philippe.poulard@inria.fr>",
"license": "MIT",
"bugs": {
"url": "https://github.com/badcafe/jsonizer/issues"
},
"homepage": "https://badcafe.github.io/jsonizer",
"keywords": [
"JSON",
"reviver",
"replacer",
"parse",
"stringify",
"toJSON",
"fromJSON",
"class",
"nested",
"hierarchy",
"structural",
"typescript",
"namespace",
"inria"
],
"devDependencies": {
"@arethetypeswrong/cli": "^0.13.6",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.16",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"docsify": "^4.13.1",
"docsify-cli": "^4.4.4",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"rollup": "^4.9.6",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-typescript2": "^0.36.0",
"sloc": "^0.2.1",
"ts-jest": "^29.2.5",
"tsx": "^4.19.2",
"typedoc": "^0.27.6",
"typescript": "^5.7.3"
},
"dependencies": {
"reflect-metadata": "^0.2.1"
},
"jest": {
"roots": [
"test"
],
"verbose": true,
"preset": "ts-jest/presets/default",
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json",
"useESM": true
}
]
}
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-inner-declarations": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
},
"eslintIgnore": [
"build",
"dist",
"test",
"node_modules"
]
}