-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 4.78 KB
/
package.json
File metadata and controls
137 lines (137 loc) · 4.78 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"name": "regrafter",
"version": "0.3.0",
"description": "Programmatic AST transformation library for relocating React elements with automatic dependency management",
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/cjs/index.cjs"
}
},
"./errors": {
"import": {
"types": "./dist/types/errors/index.d.ts",
"default": "./dist/esm/errors/index.js"
},
"require": {
"types": "./dist/types/errors/index.d.ts",
"default": "./dist/cjs/errors/index.cjs"
}
},
"./validation": {
"import": {
"types": "./dist/types/validation/index.d.ts",
"default": "./dist/esm/validation/index.js"
},
"require": {
"types": "./dist/types/validation/index.d.ts",
"default": "./dist/cjs/validation/index.cjs"
}
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run build:clean && npm run build:esm && npm run build:cjs && npm run build:types",
"build:clean": "rm -rf dist",
"build:esm": "tsc -p config/tsconfig.esm.json",
"build:cjs": "tsc -p config/tsconfig.cjs.json && node scripts/fix-cjs-extensions.js",
"build:types": "tsc -p config/tsconfig.types.json",
"test": "vitest run --config config/vitest.config.ts",
"test:watch": "vitest --config config/vitest.config.ts",
"test:coverage": "vitest run --coverage --config config/vitest.config.ts",
"bench": "vitest bench --run --config config/vitest.config.ts",
"bench:json": "vitest bench --run --config config/vitest.config.ts --outputJson bench-output.json && node scripts/vitest-to-benchmarkjs.js bench-output.json benchmark-results.json",
"bench:memory": "node --expose-gc ./node_modules/.bin/vitest bench --run src/__tests__/benchmarks/memory.bench.ts --config config/vitest.config.ts",
"bench:profile": "node --prof ./node_modules/.bin/vitest bench --run --config config/vitest.config.ts && node --prof-process isolate-*.log > profile.txt",
"bench:inspect": "node --inspect-brk ./node_modules/.bin/vitest bench --run --config config/vitest.config.ts",
"bench:flamegraph": "clinic flame -- node ./node_modules/.bin/vitest bench --run --config config/vitest.config.ts",
"bench:doctor": "clinic doctor -- node ./node_modules/.bin/vitest bench --run --config config/vitest.config.ts",
"lint": "eslint src --ext .ts,.tsx --config config/eslint.config.cjs",
"lint:fix": "eslint src --ext .ts,.tsx --fix --config config/eslint.config.cjs",
"format": "prettier --write \"src/**/*.ts\" --config config/prettier.config.json",
"format:check": "prettier --check \"src/**/*.ts\" --config config/prettier.config.json",
"typecheck": "tsc --noEmit -p config/tsconfig.json",
"prepublishOnly": "npm run build",
"version": "npm run build",
"release": "npm publish --access public",
"docs:start": "cd website && yarn start",
"docs:build": "cd website && yarn build",
"docs:serve": "cd website && yarn serve",
"docs:deploy": "cd website && yarn deploy"
},
"keywords": [
"react",
"jsx",
"ast",
"refactoring",
"codemod",
"transformation",
"babel",
"typescript",
"dependency-analysis",
"hoisting",
"component-relocation"
],
"author": "wickedev",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/wickedev/regrafter.git"
},
"bugs": {
"url": "https://github.com/wickedev/regrafter/issues"
},
"homepage": "https://github.com/wickedev/regrafter#readme",
"sideEffects": false,
"dependencies": {
"@babel/generator": "^7.23.6",
"@babel/parser": "^7.23.6",
"@babel/traverse": "^7.23.6",
"@babel/types": "^7.23.6"
},
"devDependencies": {
"@fast-check/vitest": "^0.2.4",
"@types/babel__generator": "^7.6.8",
"@types/babel__traverse": "^7.20.5",
"@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vitest/coverage-v8": "^4.0.16",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"prettier": "^3.2.0",
"typescript": "^5.3.3",
"vitest": "^4.0.16"
},
"peerDependencies": {
"typescript": ">=4.7.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"engines": {
"node": ">=18"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"packageManager": "yarn@4.12.0"
}