Skip to content

Commit 85e8ff6

Browse files
authored
Fix typo in upgrade guide (#149)
1 parent 7f825c2 commit 85e8ff6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

UPGRADING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ After you are done you will notice that the install step added various files to
2424

2525
The `./bin/dev` file is a shell script that uses [foreman](https://github.com/ddollar/foreman) and `Procfile.dev` to start two processes in a single terminal: `rails s` and `yarn build`. The latter replaces `webpack-dev-server` for bundling and watching for changes in javascript files.
2626

27-
**The 'build' attribute added to packages.json**
27+
**The 'build' attribute added to package.json**
2828

2929
This is the command that `yarn build` will use to bundle javascript files.
3030

@@ -63,7 +63,7 @@ module.exports = {
6363
}
6464
```
6565

66-
Then open `packages.json` and add this:
66+
Then open `package.json` and add this:
6767
```json
6868
"babel": {
6969
"presets": [
@@ -72,7 +72,7 @@ Then open `packages.json` and add this:
7272
}
7373
```
7474

75-
Finally, download [webpackers babel preset](https://github.com/rails/webpacker/blob/master/package/babel/preset.js) file and place it in the same directory as `packages.json` with the name `webpack.babel.js`.
75+
Finally, download [webpackers babel preset](https://github.com/rails/webpacker/blob/master/package/babel/preset.js) file and place it in the same directory as `package.json` with the name `webpack.babel.js`.
7676

7777
**Module resolution**
7878

@@ -157,7 +157,7 @@ After you are done you will notice that the install step updated some files.
157157

158158
Just like the javascript process, this one will bundle and watch for changes in css files.
159159

160-
**The 'build:css' attribute added to packages.json**
160+
**The 'build:css' attribute added to package.json**
161161

162162
This is the command `yarn build` will use to bundle css files.
163163

@@ -191,7 +191,7 @@ stylesheets/sources/application/source_1.scss
191191
stylesheets/sources/application/source_2.scss
192192
```
193193

194-
Then adjust the `build` attribute in `packages.json`:
194+
Then adjust the `build` attribute in `package.json`:
195195
```
196196
"build:css": "sass ./app/assets/stylesheets/entrypoints:./app/assets/builds --no-source-map --load-path=node_modules"
197197
```

0 commit comments

Comments
 (0)