Skip to content

Running npm init rust-webpack my-app yields an unexpected result #148

Closed
@kraenhansen

Description

@kraenhansen

Describe the Bug

Running npm init with rust-webpack yields a directory which is not what I expected.

Steps to Reproduce

  1. Run npm init rust-webpack my-app
  2. List directory ls -la my-app
  3. Notice that this is not the template directory as expected.

Expected Behavior

When I init from rust-webpack I expect the newly created directory to have the contents of the template directory.

Actual Behavior

Running the npm init command with rust-webpack

npm init rust-webpack my-app

gives me the following my-app directory

drwxr-xr-x  13 kraenhansen  staff    416 19 Jun 16:27 .
drwxr-xr-x  77 kraenhansen  staff   2464 19 Jun 16:27 ..
drwxr-xr-x   3 kraenhansen  staff     96 19 Jun 16:27 .bin
drwxr-xr-x  12 kraenhansen  staff    384 19 Jun 16:27 .git
-rw-r--r--   1 kraenhansen  staff     82 19 Jun 16:27 .gitignore
-rw-r--r--   1 kraenhansen  staff    314 19 Jun 16:27 .travis.yml
-rw-r--r--   1 kraenhansen  staff  10847 19 Jun 16:27 LICENSE-APACHE
-rw-r--r--   1 kraenhansen  staff   1071 19 Jun 16:27 LICENSE-MIT
-rw-r--r--   1 kraenhansen  staff   1849 19 Jun 16:27 README.md
drwxr-xr-x  19 kraenhansen  staff    608 19 Jun 16:27 node_modules
-rw-r--r--   1 kraenhansen  staff   4410 19 Jun 16:27 package-lock.json
-rw-r--r--   1 kraenhansen  staff    362 19 Jun 16:27 package.json
drwxr-xr-x  11 kraenhansen  staff    352 19 Jun 16:27 template

Additional Context

As a comparison, calling npm init with react-app yields a directory with only the files needed to build an app (try running npm init react-app my-react-app).

I believe this is happening because #144 changes the structure of the repository and a release has not been made quickly thereafter. It would be awesome if this got released very soon as it's super confusing for a newcomer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions