aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/app
diff options
context:
space:
mode:
authorJavan Makhmali <javan@javan.us>2019-01-09 08:09:51 -0500
committerJavan Makhmali <javan@javan.us>2019-01-10 11:01:57 -0500
commit86b489e3d6a9efbefbc62e8531d0f5850934d4e1 (patch)
tree680d879e2a88d27d8cef6accdf327d076ae74343 /actionview/app
parent7aaf9b8076704426c5e3f20bc3018c398f58dc88 (diff)
downloadrails-86b489e3d6a9efbefbc62e8531d0f5850934d4e1.tar.gz
rails-86b489e3d6a9efbefbc62e8531d0f5850934d4e1.tar.bz2
rails-86b489e3d6a9efbefbc62e8531d0f5850934d4e1.zip
Move all npm packages to @rails scope
Fixes #33083
Diffstat (limited to 'actionview/app')
-rw-r--r--actionview/app/assets/javascripts/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionview/app/assets/javascripts/README.md b/actionview/app/assets/javascripts/README.md
index b74fa1afad..2b110e604f 100644
--- a/actionview/app/assets/javascripts/README.md
+++ b/actionview/app/assets/javascripts/README.md
@@ -17,11 +17,11 @@ Note that the `data` attributes this library adds are a feature of HTML5. If you
### NPM
- npm install rails-ujs --save
-
+ npm install @rails/ujs --save
+
### Yarn
-
- yarn add rails-ujs
+
+ yarn add @rails/ujs
Ensure that `.yarnclean` does not include `assets` if you use [yarn autoclean](https://yarnpkg.com/lang/en/docs/cli/autoclean/).
@@ -40,7 +40,7 @@ In a conventional Rails application that uses the asset pipeline, require `rails
If you're using the Webpacker gem or some other JavaScript bundler, add the following to your main JS file:
```javascript
-import Rails from 'rails-ujs';
+import Rails from "@rails/ujs"
Rails.start()
```