Skip to content

Commit 9dca3cd

Browse files
author
Ruslan Hrabovyi
committed
fix(docs): bring back manual upgrade instructions
1 parent 2aaf7f7 commit 9dca3cd

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,42 @@ ember install ember-cli-typescript@latest
105105

106106
***Note:* To work properly, starting from v2, ember-cli-typescript must be declared as a `dependency`, not a `devDependency` for addons. With `ember install` this migration will be automatically handled for you.**
107107

108+
If you choose to make the upgrade manually with yarn or npm, here are the steps you need to follow:
109+
110+
1. Remove ember-cli-typescript from your `devDependencies`.
111+
112+
With yarn:
113+
114+
```sh
115+
yarn remove ember-cli-typescript
116+
```
117+
118+
With npm:
119+
120+
```sh
121+
npm uninstall ember-cli-typescript
122+
```
123+
124+
2. Install the latest of ember-cli-typescript as a `dependency`:
125+
126+
With yarn:
127+
128+
```sh
129+
yarn add ember-cli-typescript@latest
130+
```
131+
132+
With npm:
133+
134+
```sh
135+
npm install --save ember-cli-typescript@latest
136+
```
137+
138+
3. Run `ember generate`:
139+
140+
```sh
141+
ember generate ember-cli-typescript
142+
```
143+
108144
##### Account for addon build pipeline changes
109145

110146
Since we now integrate in a more traditional way into Ember CLI's build pipeline, there are two changes required for addons using TypeScript.

tests/dummy/app/templates/docs/upgrade-notes.md

+36
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,42 @@ ember install ember-cli-typescript@latest
5252

5353
***Note:* To work properly, starting from v2, ember-cli-typescript must be declared as a `dependency`, not a `devDependency` for addons. With `ember install` this migration would be automatically handled for you.**
5454

55+
If you choose to make the upgrade manually with yarn or npm, here are the steps you need to follow:
56+
57+
1. Remove ember-cli-typescript from your `devDependencies`.
58+
59+
With yarn:
60+
61+
```sh
62+
yarn remove ember-cli-typescript
63+
```
64+
65+
With npm:
66+
67+
```sh
68+
npm uninstall ember-cli-typescript
69+
```
70+
71+
2. Install the latest of ember-cli-typescript as a `dependency`:
72+
73+
With yarn:
74+
75+
```sh
76+
yarn add ember-cli-typescript@latest
77+
```
78+
79+
With npm:
80+
81+
```sh
82+
npm install --save ember-cli-typescript@latest
83+
```
84+
85+
3. Run `ember generate`:
86+
87+
```sh
88+
ember generate ember-cli-typescript
89+
```
90+
5591
### Account for addon build pipeline changes
5692

5793
Since we now integrate in a more traditional way into Ember CLI's build pipeline, there are two changes required for addons using TypeScript.

0 commit comments

Comments
 (0)