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:
parent
1d26daff3e
commit
9d686bf433
|
@ -101,7 +101,10 @@ android/build/
|
|||
samples/android/.externalNativeBuild/
|
||||
samples/android/.gradle/
|
||||
samples/android/build/
|
||||
js/flatbuffers.mjs
|
||||
js/**/*.js
|
||||
js/**/*.d.ts
|
||||
mjs/**/*.js
|
||||
mjs/**/*.d.ts
|
||||
/bazel-bin
|
||||
/bazel-flatbuffers
|
||||
/bazel-genfiles
|
||||
|
|
10
package.json
10
package.json
|
@ -3,11 +3,11 @@
|
|||
"version": "2.0.3",
|
||||
"description": "Memory Efficient Serialization Library",
|
||||
"files": [
|
||||
"js/*.js",
|
||||
"js/*.d.ts",
|
||||
"mjs/*.js",
|
||||
"mjs/*.d.ts",
|
||||
"ts/*.ts"
|
||||
"js/**/*.js",
|
||||
"js/**/*.d.ts",
|
||||
"mjs/**/*.js",
|
||||
"mjs/**/*.d.ts",
|
||||
"ts/**/*.ts"
|
||||
],
|
||||
"main": "js/flatbuffers.js",
|
||||
"module": "mjs/flatbuffers.js",
|
||||
|
|
Loading…
Reference in New Issue