Skip to content

Commit

Permalink
fix(rollup): npm requires an index.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle committed Sep 12, 2019
1 parent 2b72f2c commit 2ababdf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/rollup/src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ filegroup(
srcs = [
"BUILD.bazel",
"index.bzl",
"index.js",
"package.json",
"rollup.config.js",
"rollup_bundle.bzl",
Expand Down
9 changes: 9 additions & 0 deletions packages/rollup/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// npm install throws if there is no JS in the package
// npm ERR! path /home/alexeagle/Projects/angular/node_modules/@bazel/rollup/index.js
// npm ERR! code ENOENT
// npm ERR! errno -2
// npm ERR! syscall chmod
// npm ERR! enoent ENOENT: no such file or directory, chmod
// '/home/alexeagle/Projects/angular/node_modules/@bazel/rollup/index.js' npm ERR! enoent This is
// related to npm not being able to find a file. npm ERR! enoent
throw new Error('@bazel/rollup package has no executable JS code');

0 comments on commit 2ababdf

Please sign in to comment.