Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
generate .css.d.ts for non-SCSS (plain .css) files as well (#58546)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqs authored and vovakulikov committed Dec 12, 2023
1 parent d20bd80 commit d94ac8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ sourcegraph-webapp-*.tgz
*.tsbuildinfo
graphql-operations.ts
*.module.scss.d.ts
*.module.css.d.ts
dll-bundle

# Extensions
Expand Down
4 changes: 2 additions & 2 deletions client/shared/dev/generateCssModulesTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { spawn } from 'child_process'
import path from 'path'

const REPO_ROOT = path.join(__dirname, '../../..')
const CSS_MODULES_GLOB = path.resolve(__dirname, '../../*/src/**/*.module.scss')
const JETBRAINS_CSS_MODULES_GLOB = path.resolve(__dirname, '../../jetbrains/webview/**/*.module.scss')
const CSS_MODULES_GLOB = path.resolve(__dirname, '../../*/src/**/*.module.{scss,css}')
const JETBRAINS_CSS_MODULES_GLOB = path.resolve(__dirname, '../../jetbrains/webview/**/*.module.{scss,css}')
const TSM_COMMAND = `pnpm exec tsm --logLevel error "{${CSS_MODULES_GLOB},${JETBRAINS_CSS_MODULES_GLOB}}" --includePaths node_modules client`
const [BIN, ...ARGS] = TSM_COMMAND.split(' ')

Expand Down

0 comments on commit d94ac8c

Please sign in to comment.