From a0a8a94cb014bcf432f4cc33260be11ff18f25a0 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Tue, 23 Apr 2024 17:32:18 +0200 Subject: [PATCH] Updated README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 55dc8bb..b012396 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ _Codemod to remove `inject as service`_1 1. [Contributing](#contributing) 1. [License](#license) -1. `@ember/service` has provided `service` since [Ember 4.1](https://blog.emberjs.com/ember-4-1-released/). `inject`, which became an alias to `service`, is [planned to be deprecated in v6](https://rfcs.emberjs.com/id/1001-deprecate-named-inject). +1. `@ember/service` provides `service` since [Ember 4.1](https://blog.emberjs.com/ember-4-1-released/). `inject`, which became an alias to `service`, is [planned to be deprecated in v6](https://rfcs.emberjs.com/id/1001-deprecate-named-inject). ## Features @@ -41,12 +41,12 @@ npx ember-codemod-remove-inject-as-service Step 2. Fix formatting issues. -- Optional: Do a find-and-replace-all, if you want to place `@service()` and `declare` on the same line when possible. +- Optional: Do a find-and-replace-all in TS files, if you want to place `@service()` and `declare` on the same line when possible. - Find: `@service\((.+)\)(\n|\s)+declare` - Replace: `@service($1) declare` -- Optional: Do a find-and-replace-all, if you want to place `@service` and `declare` on the same line when possible. +- Optional: Do a find-and-replace-all in TS files, if you want to place `@service` and `declare` on the same line when possible. - Find: `@service(\n|\s)+declare` - Replace: `@service declare`