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:
Valery Bugakov 2023-04-03 21:21:38 -07:00 committed by GitHub
parent 08dba20a85
commit ee402e7017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 7 additions and 7 deletions

View File

@ -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(

View File

@ -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",
],

View File

@ -7,7 +7,6 @@
"outDir": "out",
"jsx": "react-jsx",
"declaration": true,
"types": ["./src/typings.d.ts"],
},
"include": ["**/*", ".*"],
"exclude": ["out", "dist"],

View File

@ -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"],

View File

@ -6,7 +6,7 @@
"sourceRoot": "src",
"outDir": "out",
"jsx": "react-jsx",
"types": ["./webviews/typings.d.ts", "jest"],
"types": ["jest"],
},
"include": [
"src",