Skip to content

Commit 76f2d3e

Browse files
committed
rename codemod
1 parent c7fd8fa commit 76f2d3e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

codemods/magic-redirect/codemod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
schema_version: "1.0"
2-
name: "@expressjs/magic-redirect"
2+
name: "@expressjs/back-redirect-deprecated"
33
version: "1.0.0"
44
description: Migrates usage of the legacy APIs `res.redirect('back')` and `res.location('back')` to the current recommended approaches
55
author: bjohansebas (Sebastian Beltran)

codemods/magic-redirect/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@expressjs/magic-redirect",
2+
"name": "@expressjs/back-redirect-deprecated",
33
"private": true,
44
"version": "1.0.0",
55
"description": "Migrates usage of the legacy APIs `res.redirect('back')` and `res.location('back')`.",
@@ -10,12 +10,12 @@
1010
"repository": {
1111
"type": "git",
1212
"url": "git+https://github.com/expressjs/codemod.git",
13-
"directory": "recipes/magic-redirect",
13+
"directory": "codemods/back-redirect-deprecated",
1414
"bugs": "https://github.com/expressjs/codemod/issues"
1515
},
1616
"author": "bjohansebas (Sebastian Beltran)",
1717
"license": "MIT",
18-
"homepage": "https://github.com/expressjs/codemod/blob/main/recipes/magic-redirect/README.md",
18+
"homepage": "https://github.com/expressjs/codemod/blob/main/codemods/back-redirect-deprecated/README.md",
1919
"devDependencies": {
2020
"@codemod.com/jssg-types": "^1.3.1"
2121
}

0 commit comments

Comments
 (0)