mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 20:15:34 +00:00
The headline here is adding a flatbuffer_ts_library rule for generating typescript code in bazel. This entails some non-trivial other changes, but ideally none are user-visible. In particular: * Added a --ts-flat-file flag that generates a single *_generated.ts file instead of separate files for each typescript type. This makes bazel much happier. * Import the bazel rules_nodejs stuff needed to support building typescript in bazel * Move flatbuffers.ts to index.ts because I wasn't sure how to make bazel comprehend the "main" attribute of the package.json. Happy to take another stab at figuring that out if really needed. * Fix another couple keyword escaping spots in typescript...
26 lines
592 B
JSON
26 lines
592 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES6",
|
|
"lib": ["ES2015", "ES2020.BigInt", "DOM"],
|
|
"moduleResolution": "Node",
|
|
"noImplicitAny": true,
|
|
"strict": true,
|
|
"noUnusedParameters": false,
|
|
"noUnusedLocals": false,
|
|
"noImplicitReturns": true,
|
|
"strictNullChecks": true,
|
|
"baseUrl": ".",
|
|
"noEmit": false
|
|
},
|
|
"include": [
|
|
"monster_test.ts",
|
|
"typescript_keywords.ts",
|
|
"typescript_keywords_generated.ts",
|
|
"my-game/**/*.ts",
|
|
"typescript/**/*.ts",
|
|
"optional_scalars/**/*.ts",
|
|
"namespace_test/**/*.ts",
|
|
"union_vector/**/*.ts"
|
|
]
|
|
}
|