edit-package-json
Version:
Edit package.json without parsing, as string, to keep the formatting intact
86 lines (85 loc) • 2.47 kB
JSON
{
"name": "edit-package-json",
"version": "0.8.27",
"description": "Edit package.json without parsing, as string, to keep the formatting intact",
"keywords": [
"changes",
"edit",
"indentation",
"json",
"non-parsing",
"package",
"package.json",
"parse",
"read",
"respect",
"write"
],
"homepage": "https://codsen.com/os/edit-package-json",
"repository": {
"type": "git",
"url": "git+https://github.com/codsen/codsen.git",
"directory": "packages/edit-package-json"
},
"license": "MIT",
"author": {
"name": "Roy Revelt",
"email": "roy@codsen.com",
"url": "https://codsen.com"
},
"type": "module",
"exports": {
"types": "./types/index.d.ts",
"script": "./dist/edit-package-json.umd.js",
"default": "./dist/edit-package-json.esm.js"
},
"types": "types/index.d.ts",
"scripts": {
"build": "node '../../ops/scripts/esbuild.js' && npm run dts",
"cjs-off": "exit 0",
"cjs-on": "exit 0",
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
"devtest": "c8 npm run unit && npm run examples && npm run lint",
"dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
"examples": "node '../../ops/scripts/run-examples.js'",
"lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
"letspublish": "npm publish || :",
"lint": "eslint . --fix",
"perf": "node perf/check.js",
"prep": "echo 'ready'",
"prettier": "prettier",
"prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
"pretest": "npm run lect && npm run build",
"test": "npm run devtest",
"unit": "uvu test"
},
"engines": {
"node": ">=14.18.0"
},
"c8": {
"check-coverage": true,
"exclude": [
"**/test/**/*.*"
],
"lines": 100
},
"lect": {
"licence": {
"extras": [
"",
"Passes adapted .set() unit tests from https://github.com/mariocasciaro/object-path/blob/master/test.js, MIT Licence Copyright (c) 2015 Mario Casciaro"
]
}
},
"dependencies": {
"codsen-utils": "^1.6.8",
"ranges-apply": "^7.0.20",
"string-left-right": "^6.0.21"
},
"devDependencies": {
"ast-monkey-traverse": "^4.0.20",
"globby": "^14.1.0",
"p-map": "^7.0.3",
"rfdc": "^1.4.1"
}
}