Skip to content

Commit 5605a6c

Browse files
committed
cleanup
1 parent 8571784 commit 5605a6c

8 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
👉 Before you submit a new bug, please do the following steps:
1313
1414
1. Update your diasyUI (and other dependencies) to the latest version (`npm i -D daisyui@latest`)
15-
2. Read [FAQ](https://github.com/saadeghi/daisyui/discussions/1949). You may find a solution there
15+
2. Read [FAQ](https://daisyui.com/docs/faq/). You may find a solution there
1616
3. Search [existing issues](https://github.com/saadeghi/daisyui/issues?q=is%3Aissue) and [discussion forum](https://github.com/saadeghi/daisyui/discussions?discussions_q=). You may find a solution there
1717
4. Make sure this bug is **NOT** specific to a JS framework or a build tool. If the issue doesn't happen on [Tailwind Play](https://daisyui.com/tailwindplay/) it means it's not an issue from daisyUI.
1818
It can be a config problem in your project ([ask here](https://github.com/saadeghi/daisyui/discussions?discussions_q=)) or it can be an issue from your framework or CSS build tools.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: 📗 FAQ
4-
url: https://github.com/saadeghi/daisyui/discussions/1949
4+
url: https://daisyui.com/docs/faq/
55
about: Read about common problems and how to fix
66
- name: 🔎 Search in Discussions
77
url: https://github.com/saadeghi/daisyui/discussions?discussions_q=

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ jobs:
3434
- name: Install dependencies
3535
run: bun i
3636

37-
- name: Build package
38-
run: bun run build
39-
4037
- name: Add robots.txt if not main repo
4138
if: github.repository != 'saadeghi/daisyui'
4239
run: |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lang:clean": "bun packages/docs/src/lib/scripts/removeUnusedTranslations.js",
1818
"lang:sort": "bun packages/docs/src/lib/scripts/sortTranslations.js",
1919
"lang:fill": "bun packages/docs/src/lib/scripts/fillTranslations.js",
20-
"lint": "bunx -y oxlint@latest",
20+
"lint": "bunx -y oxlint@latest --ignore-pattern packages/playground",
2121
"test": "bun test",
2222
"wallace": "bunx -y wallace-cli packages/daisyui/daisyui.css",
2323
"update:tw": "bun i tailwindcss@latest @tailwindcss/cli@latest && cd packages/docs && bun i @tailwindcss/vite@latest && cd ../playground && bun i @tailwindcss/vite@latest",

packages/daisyui/functions/addPrefix.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const getPrefixedSelector = (selector, prefix) => {
2020
}
2121

2222
const getPrefixedKey = (key, prefix, excludedPrefixes) => {
23-
const prefixDot = prefix ? `.${prefix}` : ""
2423
const prefixAmpDot = prefix ? `&.${prefix}` : ""
2524

2625
if (!prefix) return key

packages/daisyui/functions/extractClasses.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import path from "path"
44
// Function to extract class names from CSS content
55
const extractClassNames = async (cssContent) => {
66
const classRegex =
7-
/\.([a-zA-Z_-][a-zA-Z0-9_-]*)(?=\s*[\{,:\(])|:where\(\.([a-zA-Z_-][a-zA-Z0-9_-]*)\)/g
7+
/\.([a-zA-Z_-][a-zA-Z0-9_-]*)(?=\s*[{,:(])|:where\(\.([a-zA-Z_-][a-zA-Z0-9_-]*)\)/g
88
const matches = cssContent.match(classRegex)
99
const classNames = matches
1010
? matches.map((match) => {
11-
const cleanedMatch = match.replace(/:where\(\.|[\{,:\(\)]/g, "").trim()
11+
const cleanedMatch = match.replace(/:where\(\.|[{,:()]/g, "").trim()
1212
return cleanedMatch.startsWith(".") ? cleanedMatch.slice(1) : cleanedMatch
1313
})
1414
: []

packages/daisyui/functions/filesExist.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const fileExists = (path) => existsSync(path)
1313
const directoryExists = (path) => {
1414
try {
1515
return statSync(path).isDirectory()
16-
} catch (e) {
16+
} catch (error) {
17+
console.log(error)
1718
return false
1819
}
1920
}

packages/daisyui/functions/report.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const shouldSaveNewReport = async (lastReportPath, currentData) => {
7878

7979
return JSON.stringify(currentNormalized) !== JSON.stringify(lastNormalized)
8080
} catch (error) {
81+
console.log(error)
8182
return true
8283
}
8384
}

0 commit comments

Comments
 (0)