Skip to content

rails new mega -j esbuild --css tailwind creates package.json without scripts #43309

@gobijan

Description

@gobijan

Steps to reproduce

Create a new rails 7 app using alpha2 with these options:

rails new mega -j esbuild --css tailwind 

Expected behavior

Running bin/dev should work (therefore scripts need to be in place in package.json)

Actual behavior

bin/dev breaks because it does not find scripts in package json.
This is the generated package.json:

{
  "name": "app",
  "private": "true",
  "dependencies": {
    "@hotwired/stimulus": "^3.0.0",
    "@hotwired/turbo-rails": "^7.0.1",
    "autoprefixer": "^10.3.6",
    "esbuild": "^0.13.2",
    "postcss": "^8.3.8",
    "tailwindcss": "^2.2.16"
  }
}

System configuration

Rails version: Rails 7 alpha2

Ruby version: 3.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions