-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
91 lines (91 loc) · 3.31 KB
/
package.json
File metadata and controls
91 lines (91 loc) · 3.31 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
90
91
{
"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",
"type": "module",
"main": "src/engine.js",
"repository": {
"type": "git",
"url": "git+https://github.com/mathiasrw/rexreplace.git"
},
"bin": {
"rr": "src/env/bun.ts",
"rexreplace_node": "bin/rexreplace.cli.js",
"rexreplace": "src/env/bun.ts"
},
"scripts": {
"test": "yarn build && yarn test-cli && yarn test-js",
"version": "yarn build-minify",
"build": "yarn build-only",
"postbuild": "npx rexreplace@7 '^(#!.+\\n)?' '$1import { createRequire as createImportMetaRequire } from 'module'; import.meta.require ||= (id) => createImportMetaRequire(import.meta.url)(id);\\n' -GM bin/rexreplace.cli.js && cp bin/rexreplace.cli.js bin/rexreplace.cli.min.js",
"build-only": "swc src/ -d dist/ && bun build --target node src/env/node.ts --outfile bin/rexreplace.cli.js ",
"build-minify": "bun build --target node src/env/node.ts --outfile bin/rexreplace.cli.min.js --minify",
"prebuild": "rm -fr bin dist # && yarn format",
"test-js": "echo todo: async mocha",
"test-minify": "yarn build-minify && yarn test-cli && yarn test-js",
"test-cli": "(true || (npm uninstall -g rexreplace && npm -g install ./)) && yarn test-cli-only",
"test-cli-only": "bash test/cli/run.sh",
"test-speed": "bash test/speed/run.sh",
"prepublishOnly": "yarn is-git-clean && git fetch && git rebase origin/main && yarn test-minify && yarn load-options && yarn bump",
"postpublish": "git push --tag && git push && (open https://github.com/mathiasrw/rexreplace/releases || 1)",
"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": "yarn prettier --list-different || (echo 'Please correct file formatting using `yarn format` and try again.' && exit 1)",
"format": "yarn prettier --write",
"prettier": "prettier '{src,test}/**/*.{scss,css,js,ts}'",
"bump": "# bump --tag 'v%s' --all",
"is-git-clean": "(git diff --quiet --exit-code --cached && git diff --quiet --exit-code) || (echo Please commit or stash changes && exit 1)"
},
"keywords": [
"search",
"find",
"replace",
"regex",
"regexp",
"regular expression",
"sed"
],
"devDependencies": {
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.90",
"@types/node": "^20.6.2",
"@types/yargs": "^17.0.24",
"assert": "^2.0.0",
"bun-types": "^1.0.2",
"magic-string": "0.30.3",
"mocha": "10.2.0",
"prettier": "3.0.3",
"ts-node": "^10.9.1",
"typescript": "5.2.2",
"version-bump-prompt": "6.1.0",
"yarn": "1.22.19"
},
"resolutions": {
"ansi-regex": "6",
"glob": "9",
"tough-cookie": "4.1.4"
},
"directories": {
"test": "test"
},
"dependencies": {
"argmate": "^0.6.0",
"chalk": "^5.3.0",
"fast-glob": "^3.3.1",
"fs-extra": "^11.1.1",
"globs": "0.1.4"
},
"prettier": {
"useTabs": true,
"printWidth": 100,
"singleQuote": true,
"arrowParens": "always",
"bracketSpacing": false,
"trailingComma": "es5"
},
"bugs": {
"url": "https://github.com/mathiasrw/rexreplace/issues"
},
"homepage": "https://github.com/mathiasrw/rexreplace#readme"
}