mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-18 12:14:26 +00:00
Include subdirectories in published npm package (#6850)
Updates the `files` globs in package.json to include subdirectories in order to also include the flexbuffers directory in the published npm package. Updates .gitignore to include the tsc-generated JS files.
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -101,7 +101,10 @@ android/build/
|
|||||||
samples/android/.externalNativeBuild/
|
samples/android/.externalNativeBuild/
|
||||||
samples/android/.gradle/
|
samples/android/.gradle/
|
||||||
samples/android/build/
|
samples/android/build/
|
||||||
js/flatbuffers.mjs
|
js/**/*.js
|
||||||
|
js/**/*.d.ts
|
||||||
|
mjs/**/*.js
|
||||||
|
mjs/**/*.d.ts
|
||||||
/bazel-bin
|
/bazel-bin
|
||||||
/bazel-flatbuffers
|
/bazel-flatbuffers
|
||||||
/bazel-genfiles
|
/bazel-genfiles
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -3,11 +3,11 @@
|
|||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"description": "Memory Efficient Serialization Library",
|
"description": "Memory Efficient Serialization Library",
|
||||||
"files": [
|
"files": [
|
||||||
"js/*.js",
|
"js/**/*.js",
|
||||||
"js/*.d.ts",
|
"js/**/*.d.ts",
|
||||||
"mjs/*.js",
|
"mjs/**/*.js",
|
||||||
"mjs/*.d.ts",
|
"mjs/**/*.d.ts",
|
||||||
"ts/*.ts"
|
"ts/**/*.ts"
|
||||||
],
|
],
|
||||||
"main": "js/flatbuffers.js",
|
"main": "js/flatbuffers.js",
|
||||||
"module": "mjs/flatbuffers.js",
|
"module": "mjs/flatbuffers.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user