UNPKG

rexreplace

Version:

Search & replace across files with a CLI tool that makes you trust what you are doing.

74 lines (73 loc) 2.85 kB
{ "name": "rexreplace", "version": "7.1.14", "description": "Search & replace across files with a CLI tool that makes you trust what you are doing.", "author": "Mathias Rangel Wulff", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/mathiasrw/rexreplace.git" }, "bugs": { "url": "https://github.com/mathiasrw/rexreplace/issues" }, "homepage": "https://github.com/mathiasrw/rexreplace#readme", "bin": { "rr": "bin/rexreplace.cli.min.js", "rexreplace": "bin/rexreplace.cli.js" }, "main": "src/engine.js", "scripts": { "test": "yarn build && yarn test-cli && yarn test-js", "postbuild": "cp bin/rexreplace.cli.js bin/rexreplace.cli.min.js", "version": "yarn build-minify", "build": "rollup -c --bundleConfigAsCjs", "build-minify": "yarn build && yarn minify", "minify": "cat bin/rexreplace.cli.js > bin/rexreplace.cli.min.js", "prebuild": "rm -fr bin && yarn format", "test-js": "echo todo: async mocha", "test-minify": "yarn build-minify && yarn test-cli && yarn test-js", "test-cli": "npm uninstall --location=global rexreplace && npm --location=global install ./ && yarn test-cli-only # why on earth are they depricating the -g flag", "test-cli-only": "bash test/cli/run.sh && bash test/cli/run.ai.sh ", "test-ci": "yarn test-format && yarn test && yarn test-minify", "test-speed": "bash test/speed/run.sh", "rebase": "yarn is-git-clean && git fetch && git rebase origin/main", "load-options": "# rr -h | rr 'Options:(.+)Examples:' _ -ms | rr '\\n {26,}|\\n\\n *' ' ' | rr \"'\" '`' | rr '^ (-.+?), (--[^ ]+) *' '`€1` | **`€2`** ' | rr '(^---- . ----).+?(## Good to know)' '€1 + nl + pipe + nl + nl + €2' readme.md -jsT", "test-format": "prettier . --list-different || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)", "format": "prettier . --write", "is-git-clean": "(git diff --quiet --exit-code --cached && git diff --quiet --exit-code) || (echo Please commit or stash changes && exit 1)", "release": "yarn version", "prerelease": "yarn is-git-clean && yarn test && yarn test-minify && yarn load-options", "postrelease": "npm publish && git push && git push --tags && echo \"Successfully released version $npm_package_version\" && (open https://github.com/mathiasrw/rexreplace/releases || 1)" }, "keywords": [ "search", "find", "replace", "regex", "regexp", "regular expression", "sed" ], "devDependencies": { "@rollup/plugin-replace": "6.0.3", "@rollup/plugin-swc": "^0.4.0", "@swc/core": "1.15.2", "@types/node": "24.10.1", "assert": "^2.0.0", "mocha": "11.7.5", "prettier": "3.6.2", "rollup": "4.53.3", "yarn": "1.22.22" }, "resolutions": { "glob": "9" }, "directories": { "test": "test" }, "dependencies": { "fast-glob": "^3.3.3", "yargs": "16" } }