Skip to content

Instantly share code, notes, and snippets.

@mgenov
Created November 24, 2020 11:58
Show Gist options
  • Save mgenov/6bfc3d705ecb2d5bef5b18da13f7e101 to your computer and use it in GitHub Desktop.
Save mgenov/6bfc3d705ecb2d5bef5b18da13f7e101 to your computer and use it in GitHub Desktop.
ts_project(
name = "mylib",
extends = "//apps/myapp:tsconfig",
tsconfig = {
"compilerOptions": {
"types": [],
},
},
visibility = [
"//apps/myapp:__subpackages__",
],
deps = [
"@npm//react",
],
)
load("@npm//@bazel/typescript:index.bzl", "ts_config")
exports_files(["tsconfig-base.json"])
ts_config(
name = "tsconfig",
src = "tsconfig-base.json",
visibility = ["//accounts/myaccount:__subpackages__"],
)
{
"compilerOptions": {
"target": "ES5",
"allowJs": true,
"skipLibCheck": true,
"sourceMap": false,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"module": "es2015",
"moduleResolution": "Node",
"jsx": "react",
"lib": [
"es5",
"es2015.promise",
"dom",
"es2015"
],
"rootDirs": [
".",
"../../../bazel-out/darwin-fastbuild/bin/apps/myapp",
"../../../bazel-out/k8-fastbuild/bin/apps/myapp",
"../../../bazel-out/x64_windows-fastbuild/bin/apps/myapp",
"../../../bazel-out/darwin-dbg/bin/apps/myapp",
"../../../bazel-out/k8-dbg/bin/apps/myapp",
"../../../bazel-out/x64_windows-dbg/bin/apps/myapp",
],
"types": [],
"composite": true,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment