@suspensive/codemods 3.11.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/codemods.cjs +3 -59
- package/package.json +1 -1
package/dist/bin/codemods.cjs
CHANGED
|
@@ -5,69 +5,13 @@ __commander_js_extra_typings = require_transformRunner.__toESM(__commander_js_ex
|
|
|
5
5
|
|
|
6
6
|
//#region package.json
|
|
7
7
|
var name = "@suspensive/codemods";
|
|
8
|
-
var version = "3.
|
|
8
|
+
var version = "3.13.0";
|
|
9
9
|
var description = "Codemods for @suspensive.";
|
|
10
|
-
var keywords = ["suspensive", "codemods"];
|
|
11
|
-
var homepage = "https://suspensive.org";
|
|
12
|
-
var bugs = "https://github.com/toss/suspensive/issues";
|
|
13
|
-
var repository = {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/toss/suspensive.git",
|
|
16
|
-
"directory": "packages/codemods"
|
|
17
|
-
};
|
|
18
|
-
var license = "MIT";
|
|
19
|
-
var author = "Gwansik Kim <gwansik.kim@gwansik.dev>";
|
|
20
|
-
var sideEffects = false;
|
|
21
|
-
var type = "module";
|
|
22
|
-
var bin = "dist/bin/codemods.cjs";
|
|
23
|
-
var files = ["dist"];
|
|
24
|
-
var scripts = {
|
|
25
|
-
"build": "tsdown",
|
|
26
|
-
"ci:eslint": "eslint \"**/*.{ts,tsx,cts,mts}\"",
|
|
27
|
-
"ci:test": "vitest run",
|
|
28
|
-
"ci:type": "tsc --noEmit",
|
|
29
|
-
"clean": "rimraf ./dist ./coverage ./node_modules",
|
|
30
|
-
"test:ui": "vitest --ui"
|
|
31
|
-
};
|
|
32
|
-
var dependencies = {
|
|
33
|
-
"@commander-js/extra-typings": "^13.0.0",
|
|
34
|
-
"commander": "^13.0.0",
|
|
35
|
-
"execa": "^5.1.1",
|
|
36
|
-
"jscodeshift": "^17.0.0",
|
|
37
|
-
"prompts": "^2.4.2"
|
|
38
|
-
};
|
|
39
|
-
var devDependencies = {
|
|
40
|
-
"@suspensive/eslint-config": "workspace:*",
|
|
41
|
-
"@suspensive/tsconfig": "workspace:*",
|
|
42
|
-
"@suspensive/tsdown": "workspace:*",
|
|
43
|
-
"@types/jscodeshift": "^0.12.0",
|
|
44
|
-
"@types/prompts": "^2.4.9"
|
|
45
|
-
};
|
|
46
|
-
var publishConfig = { "access": "public" };
|
|
47
|
-
var package_default = {
|
|
48
|
-
name,
|
|
49
|
-
version,
|
|
50
|
-
description,
|
|
51
|
-
keywords,
|
|
52
|
-
homepage,
|
|
53
|
-
bugs,
|
|
54
|
-
repository,
|
|
55
|
-
license,
|
|
56
|
-
author,
|
|
57
|
-
sideEffects,
|
|
58
|
-
type,
|
|
59
|
-
bin,
|
|
60
|
-
files,
|
|
61
|
-
scripts,
|
|
62
|
-
dependencies,
|
|
63
|
-
devDependencies,
|
|
64
|
-
publishConfig
|
|
65
|
-
};
|
|
66
10
|
|
|
67
11
|
//#endregion
|
|
68
12
|
//#region src/bin/codemods.ts
|
|
69
|
-
const program = new __commander_js_extra_typings.Command(
|
|
70
|
-
program.description(
|
|
13
|
+
const program = new __commander_js_extra_typings.Command(name);
|
|
14
|
+
program.description(description).version(version, "-v, --version", "Output the current version of @suspensive/codemods.").argument("[codemod]", "Codemod slug to run. See \"https://suspensive.org/docs/codemods/motivation\"").argument("[path]", "Path to source directory.").usage("[codemod] [path]").helpOption("-h, --help", "Display this help message.").option("-d, --dry", "Dry run (no changes are made to files)").option("-p, --print", "Print transformed files to stdout, useful for development").action(require_transformRunner.transformRunner);
|
|
71
15
|
program.parse(process.argv);
|
|
72
16
|
|
|
73
17
|
//#endregion
|