mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:31:54 +00:00
bazel: bazel configure (#50320)
Bazel configure based on [the Slack thread](https://sourcegraph.slack.com/archives/C04MYFW01NV/p1680563481187279). `.d.ts` files have a special config in gazelle: `# gazelle:js_files globals.d.ts`, so I renamed recently added `typings.d.ts` to `globals.d.ts` to keep them consistent across packages.
This commit is contained in:
parent
08dba20a85
commit
ee402e7017
9
client/cody-shared/BUILD.bazel
generated
9
client/cody-shared/BUILD.bazel
generated
@ -17,6 +17,7 @@ ts_config(
|
||||
ts_project(
|
||||
name = "cody-shared_lib",
|
||||
srcs = [
|
||||
"package.json",
|
||||
"src/chat/chat.ts",
|
||||
"src/chat/client.ts",
|
||||
"src/chat/markdown.ts",
|
||||
@ -58,6 +59,7 @@ ts_project(
|
||||
"src/sourcegraph-api/graphql/index.ts",
|
||||
"src/sourcegraph-api/graphql/queries.ts",
|
||||
"src/sourcegraph-api/index.ts",
|
||||
"src/telemetry/EventLogger.ts",
|
||||
"src/timestamp.ts",
|
||||
"src/utils.ts",
|
||||
],
|
||||
@ -68,16 +70,15 @@ ts_project(
|
||||
"//:node_modules/@microsoft/fetch-event-source",
|
||||
"//:node_modules/@types/isomorphic-fetch",
|
||||
"//:node_modules/@types/node",
|
||||
"//:node_modules/@types/uuid",
|
||||
"//:node_modules/isomorphic-fetch",
|
||||
"//:node_modules/uuid",
|
||||
],
|
||||
)
|
||||
|
||||
npm_package(
|
||||
name = "cody-shared_pkg",
|
||||
srcs = [
|
||||
"package.json",
|
||||
":cody-shared_lib",
|
||||
],
|
||||
srcs = [":cody-shared_lib"],
|
||||
)
|
||||
|
||||
ts_project(
|
||||
|
||||
1
client/cody-ui/BUILD.bazel
generated
1
client/cody-ui/BUILD.bazel
generated
@ -29,6 +29,7 @@ ts_project(
|
||||
"src/Tips.tsx",
|
||||
"src/chat/CodeBlocks.tsx",
|
||||
"src/chat/ContextFiles.tsx",
|
||||
"src/globals.d.ts",
|
||||
"src/index.ts",
|
||||
"src/utils/icons.tsx",
|
||||
],
|
||||
|
||||
@ -7,7 +7,6 @@
|
||||
"outDir": "out",
|
||||
"jsx": "react-jsx",
|
||||
"declaration": true,
|
||||
"types": ["./src/typings.d.ts"],
|
||||
},
|
||||
"include": ["**/*", ".*"],
|
||||
"exclude": ["out", "dist"],
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
"sourceRoot": "src",
|
||||
"outDir": "out",
|
||||
"jsx": "react-jsx",
|
||||
"types": ["./src/typings.d.ts"],
|
||||
},
|
||||
"include": ["src", "vite.config.ts", "package.json", ".eslintrc.js", "jest.config.js"],
|
||||
"exclude": ["out", "dist"],
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"sourceRoot": "src",
|
||||
"outDir": "out",
|
||||
"jsx": "react-jsx",
|
||||
"types": ["./webviews/typings.d.ts", "jest"],
|
||||
"types": ["jest"],
|
||||
},
|
||||
"include": [
|
||||
"src",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user