Skip to content

Commit 2ababdf

Browse files
committed
fix(rollup): npm requires an index.js file
1 parent 2b72f2c commit 2ababdf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/rollup/src/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ filegroup(
3333
srcs = [
3434
"BUILD.bazel",
3535
"index.bzl",
36+
"index.js",
3637
"package.json",
3738
"rollup.config.js",
3839
"rollup_bundle.bzl",

packages/rollup/src/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// npm install throws if there is no JS in the package
2+
// npm ERR! path /home/alexeagle/Projects/angular/node_modules/@bazel/rollup/index.js
3+
// npm ERR! code ENOENT
4+
// npm ERR! errno -2
5+
// npm ERR! syscall chmod
6+
// npm ERR! enoent ENOENT: no such file or directory, chmod
7+
// '/home/alexeagle/Projects/angular/node_modules/@bazel/rollup/index.js' npm ERR! enoent This is
8+
// related to npm not being able to find a file. npm ERR! enoent
9+
throw new Error('@bazel/rollup package has no executable JS code');

0 commit comments

Comments
 (0)