-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
73 lines (73 loc) · 2.75 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"name": "rexreplace",
"version": "7.1.12",
"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",
"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",
"@rollup/plugin-swc": "^0.4.0",
"@swc/core": "1.10.1",
"@types/node": "22.10.2",
"assert": "^2.0.0",
"mocha": "11.0.1",
"prettier": "3.4.2",
"rollup": "4.29.1",
"yarn": "1.22.22"
},
"resolutions": {
"glob": "9"
},
"directories": {
"test": "test"
},
"dependencies": {
"globs": "0.1.4",
"yargs": "16"
}
}