Skip to content

Commit d99e404

Browse files
committed
Be explicit about all npm package files
We were previously just globbing the entire google/ dir, which brings in different versions of files that we don't normally publish to npm. For example, we usually publish any_pb.js, which uses commonjs requires instead of any.js, which uses closure's goog.require.
1 parent d451e3b commit d99e404

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
"description": "Protocol Buffers for JavaScript",
55
"main": "google-protobuf.js",
66
"files": [
7-
"google",
8-
"LICENSE-asserts.md"
7+
"google/protobuf/*_pb.js",
8+
"google/protobuf/compiler/*_pb.js",
9+
"google-protobuf.js",
10+
"LICENSE.md",
11+
"LICENSE-asserts.md",
12+
"package.json",
13+
"README.md"
914
],
1015
"dependencies": {},
1116
"devDependencies": {

0 commit comments

Comments
 (0)