1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Action Text: bundle package.json in built gem.

After 866da19fd9 we now use package.json
to install Action Text's JS dependencies (see JS_PACKAGE_PATH).

But when the gem pacakge for Action Text is built, package.json was not
included so running `rails action_text:install` in a Rails app would
fail with:

```
rails action_text:install
rails aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - xxx/gems/actiontext-6.0.0.alpha/lib/templates/../../package.json
./bin/rails:4:in `<main>'
Tasks: TOP => app:template
(See full trace by running task with --trace)
```
This commit is contained in:
Kasper Timm Hansen 2019-01-18 00:11:18 +01:00
parent 3219e4aef1
commit 9aa0815192
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -17,7 +17,7 @@ Gem::Specification.new do |s|
s.email = ["javan@javan.us", "sstephenson@gmail.com", "david@loudthinking.com"]
s.homepage = "https://rubyonrails.org"
s.files = Dir["CHANGELOG.md", "MIT-LICENSE", "README.md", "lib/**/*", "app/**/*", "config/**/*", "db/**/*"]
s.files = Dir["CHANGELOG.md", "MIT-LICENSE", "README.md", "lib/**/*", "app/**/*", "config/**/*", "db/**/*", "package.json"]
s.require_path = "lib"
s.metadata = {