json-ptr
Version:
A complete implementation of JSON Pointer (RFC 6901) for nodejs and modern browsers.
111 lines (110 loc) • 3.57 kB
JSON
{
"name": "json-ptr",
"version": "3.0.0",
"author": "Phillip Clark <phillip@flitbit.com>",
"description": "A complete implementation of JSON Pointer (RFC 6901) for nodejs and modern browsers.",
"keywords": [
"6901",
"json",
"pointers",
"fragmentid"
],
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"umd": "dist/json-ptr.min.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"types": "dist/types/index.d.ts",
"files": [
"dist"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/flitbit/json-ptr"
},
"scripts": {
"clean": "shx rm -fr coverage dist dist.browser docs tmp .nyc_output",
"prebuild": "npm run lint",
"prebuild:browser": "shx rm -fr dist.browser",
"build:browser": "webpack",
"build:browser-tests": "webpack --config webpack.tests.config.js",
"buildall": "npm run build-lib && npm run build:browser && npm run build:browser-tests && npm run docs",
"build-lib": "rollup -c",
"build": "npm run buildall",
"prebuild-lib": "shx rm -fr dist",
"postbuild-lib": "shx cp package-cjs.json dist/cjs/package.json && shx cp package-esm.json dist/esm/package.json",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"test": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"noEmit\": false }' nyc mocha src/**/*.spec.ts",
"test:watch": "onchange --initial \"*.js\" \"*.json\" \"src/**/*.ts\" -- npm run test",
"cilint": "eslint . --ext .ts,.tsx --format junit --output-file ./reports/eslint/eslint.xml",
"precibuild": "npm run cilint",
"cibuild": "npm run buildall",
"preci": "npm run cibuild",
"ci": "cross-env TS_NODE_COMPILER_OPTIONS='{ \"module\": \"commonjs\", \"noEmit\": false }' nyc mocha src/**/*.spec.ts --timeout=10000 --exit --reporter mocha-junit-reporter --reporter-options mochaFile=reports/mocha/test-results.xml",
"predocs": "shx rm -fr docs",
"docs": "typedoc && shx cp _config.yml docs/"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@types/assert-plus": "^1.0.4",
"@types/bent": "^7.3.2",
"@types/chai": "^4.2.18",
"@types/debug": "^4.1.5",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.4",
"@typescript-eslint/eslint-plugin": "^5.1.0",
"@typescript-eslint/parser": "^5.1.0",
"bent": "^7.3.12",
"chai": "^4.3.4",
"cross-env": "^7.0.3",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-prettier": "^4.0.0",
"mocha": "^9.1.3",
"mocha-junit-reporter": "^2.0.0",
"nyc": "^15.1.0",
"onchange": "^7.1.0",
"prettier": "^2.4.1",
"process": "^0.11.10",
"rimraf": "~3.0.2",
"rollup": "^2.58.3",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"shx": "^0.3.3",
"terser-webpack-plugin": "^5.1.2",
"ts-loader": "^9.1.2",
"ts-node": "^10.4.0",
"typedoc": "^0.22.6",
"typescript": "^4.4.4",
"util": "^0.12.3",
"webpack": "^5.37.0",
"webpack-cli": "^4.7.0"
},
"nyc": {
"include": [
"src/**/*.ts"
],
"extension": [
".ts",
".tsx"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"instrument": true
}
}