UNPKG

yaml-diff-patch

Version:

Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure

80 lines (79 loc) 1.74 kB
{ "name": "yaml-diff-patch", "version": "2.0.0", "description": "Apply a JSON diff/patch to YAML while preserving whitespace, comments and overall structure", "author": "Gustaf Räntilä", "license": "MIT", "bugs": { "url": "https://github.com/grantila/yaml-diff-patch/issues" }, "homepage": "https://github.com/grantila/yaml-diff-patch#readme", "main": "./dist/index.js", "types": "./dist/index.d.ts", "directories": {}, "engines": { "node": ">=14" }, "bin": { "yaml-patch": "dist/bin/yaml-patch.js", "yaml-diff-patch": "dist/bin/yaml-patch.js", "yaml-overwrite": "dist/bin/yaml-patch.js" }, "files": [ "dist" ], "scripts": { "build": "rimraf dist && tsc -p tsconfig.prod.json", "test": "jest", "cz": "git-cz" }, "repository": { "type": "git", "url": "https://github.com/grantila/yaml-diff-patch" }, "keywords": [ "yaml", "diff", "patch", "json", "rfc6902" ], "devDependencies": { "@types/jest": "^27.0.1", "commitizen": "^4.2.4", "jest": "^27.1.1", "rimraf": "^3.0.2", "ts-jest": "^27.0.5", "typescript": "^4.5.4" }, "dependencies": { "oppa": "^0.4.0", "fast-json-patch": "^3.1.0", "yaml": "^2.0.0-10" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "jest": { "preset": "ts-jest", "testEnvironment": "node", "testMatch": [ "<rootDir>/lib/**/*.test.ts" ], "collectCoverageFrom": [ "<rootDir>/lib/**" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/__snapshots__/", "/bin/" ], "coverageReporters": [ "lcov", "text", "html" ] } }