Skip to content

Commit 9381b2f

Browse files
Exclude spec files
1 parent 47f8856 commit 9381b2f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/cheatsheet-local/tailwind.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ const references = JSON.parse(
66

77
/** @type {import('tailwindcss').Config} */
88
export default {
9-
content: [".", ...references].map((pkg) => `${pkg}/src/**/*.{ts,tsx,html}`),
9+
content: [".", ...references].flatMap((pkg) => [
10+
`${pkg}/src/**/*.{ts,tsx,html}`,
11+
`!${pkg}/src/**/*.{stories,spec}.{ts,tsx,html}`,
12+
]),
1013
theme: {
1114
extend: {},
1215
},

packages/cursorless-vscode-tutorial-webview/tailwind.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ const references = JSON.parse(
66

77
/** @type {import('tailwindcss').Config} */
88
export default {
9-
content: [".", ...references].map((pkg) => `${pkg}/src/**/*.{ts,tsx,html}`),
9+
content: [".", ...references].flatMap((pkg) => [
10+
`${pkg}/src/**/*.{ts,tsx,html}`,
11+
`!${pkg}/src/**/*.{stories,spec}.{ts,tsx,html}`,
12+
]),
1013
theme: {
1114
extend: {},
1215
},

0 commit comments

Comments
 (0)