Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
89 lines (89 loc) · 4 KB
/
Copy pathpackage.json
File metadata and controls
89 lines (89 loc) · 4 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "rexreplace",
"version": "8.0.0-dev",
"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.node.min.js",
"rexreplace": "bin/rexreplace.cli.node.js",
"rexreplace-bun": "bin/rexreplace.cli.bun.js"
},
"type": "module",
"main": "./dist/engine.cjs",
"exports": {
".": {
"import": "./dist/engine.js",
"require": "./dist/engine.cjs"
},
"./bin/*": "./bin/*",
"./package.json": "./package.json"
},
"scripts": {
"tst": "AGENT=1 yarn build && yarn test-js",
"test": "AGENT=1 yarn build && yarn test-cli && yarn test-js && yarn test-fuzzy",
"postbuild": "cp bin/rexreplace.cli.node.js bin/rexreplace.cli.node.min.js && cp bin/rexreplace.cli.bun.js bin/rexreplace.cli.bun.min.js",
"version": "yarn build-minify && yarn sync-version && git add npm/rexreplace-bun/package.json",
"build": "yarn bundle-node --outfile=bin/rexreplace.cli.node.js && yarn bundle-bun --outfile=bin/rexreplace.cli.bun.js && yarn build-lib",
"build-lib": "bun build src/engine.ts --target=node --format=esm --packages=external --outfile=dist/engine.js && bun build src/engine.ts --target=node --format=cjs --external tinyglobby --external yargs --outfile=dist/engine.cjs",
"build-minify": "yarn build && yarn minify",
"minify": "yarn bundle-node --minify --outfile=bin/rexreplace.cli.node.min.js && yarn bundle-bun --minify --outfile=bin/rexreplace.cli.bun.min.js",
"bundle-node": "bun build src/cli.node.ts --target=node --format=esm --packages=external",
"bundle-bun": "bun build src/cli.bun.ts --target=bun --format=esm --packages=external",
"prebuild": "rm -fr bin dist && yarn format",
"sync-version": "bun npm/sync-version.cjs",
"test-js": "AGENT=1 bun test ./test/engine ./test/cli ./test/fix",
"test-fuzzy": "AGENT=1 bun test ./test/fuzzy",
"test-minify": "AGENT=1 yarn build-minify && yarn test-cli && yarn test-js",
"test-cli": "yarn test-cli-node && yarn test-cli-bun",
"test-cli-global-bun": "AGENT=1 bash test/cli/global.run.bun.sh",
"test-cli-node": "AGENT=1 bash test/runtime/node.sh",
"test-cli-bun": "AGENT=1 bash test/runtime/bun.sh",
"test-cli-only": "AGENT=1 bash test/cli/run.sh && bash test/cli/run.ai.sh ",
"test-ci": "yarn test-format && yarn build && yarn test-cli && yarn test-js && 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 -jspT",
"test-format": "biome format || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)",
"format": "biome format --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 && npm publish ./npm/rexreplace-bun && 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": {
"@biomejs/biome": "2.5.15",
"@types/node": "26.6.11",
"assert": "^2.0.0",
"yarn": "1.22.22"
},
"resolutions": {
"glob": "9"
},
"directories": {
"test": "test"
},
"dependencies": {
"regex": "6.1.0",
"regex-utilities": "2.3.0",
"tinyglobby": "^0.2.17",
"yargs": "16"
}
}