@kimesh/tailwindcss 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/augment.d.ts +9 -9
- package/dist/index.js +2 -2
- package/package.json +12 -12
package/augment.d.ts
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
* Configuration options for the Kimesh TailwindCSS module
|
|
8
8
|
*/
|
|
9
9
|
export interface KimeshTailwindConfig {
|
|
10
|
-
additionalSources?: string[]
|
|
11
|
-
cssFileName?: string
|
|
12
|
-
autoReference?: boolean
|
|
13
|
-
alias?: string
|
|
14
|
-
mainCss?: string
|
|
15
|
-
referenceAlias?: string
|
|
10
|
+
additionalSources?: string[]
|
|
11
|
+
cssFileName?: string
|
|
12
|
+
autoReference?: boolean
|
|
13
|
+
alias?: string
|
|
14
|
+
mainCss?: string
|
|
15
|
+
referenceAlias?: string
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
declare module
|
|
18
|
+
declare module '@kimesh/kit' {
|
|
19
19
|
interface KimeshModuleOptions {
|
|
20
|
-
tailwindcss?: KimeshTailwindConfig
|
|
20
|
+
tailwindcss?: KimeshTailwindConfig
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// Re-export to make this a module (required for augmentation)
|
|
25
|
-
|
|
25
|
+
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,7 @@ function createReferenceTransformer(alias) {
|
|
|
52
52
|
let match;
|
|
53
53
|
STYLE_BLOCK_RE.lastIndex = 0;
|
|
54
54
|
while ((match = STYLE_BLOCK_RE.exec(code)) !== null) {
|
|
55
|
-
const [
|
|
55
|
+
const [, attributes, styleContent] = match;
|
|
56
56
|
const matchStart = match.index;
|
|
57
57
|
const contentStart = matchStart + 6 + attributes.length + 1;
|
|
58
58
|
if (!TAILWIND_DIRECTIVE_RE.test(styleContent)) continue;
|
|
@@ -161,7 +161,7 @@ var module_default = defineKimeshModule({
|
|
|
161
161
|
mainCss: "src/app.css",
|
|
162
162
|
referenceAlias: "#tailwind"
|
|
163
163
|
},
|
|
164
|
-
hooks: { "layers:extend": async (
|
|
164
|
+
hooks: { "layers:extend": async () => {} },
|
|
165
165
|
async setup(options, kimesh) {
|
|
166
166
|
const { additionalSources = [], cssFileName = "tailwind.css", autoReference = true, alias = "#kimesh/tailwind", mainCss = "src/app.css", referenceAlias = "#tailwind" } = options;
|
|
167
167
|
const cssFilePath = join(kimesh.buildDir, cssFileName);
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kimesh/tailwindcss",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "TailwindCSS module for Kimesh framework",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"repository": {
|
|
7
6
|
"type": "git",
|
|
8
7
|
"url": "https://github.com/kimeshjs/kimesh.git"
|
|
9
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"augment.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
10
14
|
"main": "./dist/index.js",
|
|
11
15
|
"types": "./dist/index.d.ts",
|
|
12
16
|
"exports": {
|
|
@@ -16,10 +20,6 @@
|
|
|
16
20
|
"default": "./dist/index.js"
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
|
-
"files": [
|
|
20
|
-
"dist",
|
|
21
|
-
"augment.d.ts"
|
|
22
|
-
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "tsdown",
|
|
25
25
|
"dev": "tsdown --watch",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"magic-string": "^0.30.17"
|
|
32
32
|
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"@kimesh/kit": "0.2.11",
|
|
35
|
-
"vite": "^8.0.0-beta.8",
|
|
36
|
-
"tailwindcss": "^4.0.0"
|
|
37
|
-
},
|
|
38
33
|
"devDependencies": {
|
|
39
|
-
"@kimesh/kit": "0.2.
|
|
34
|
+
"@kimesh/kit": "0.2.12",
|
|
40
35
|
"tsdown": "^0.11.6",
|
|
41
36
|
"typescript": "^5.8.3",
|
|
42
37
|
"vite": "^8.0.0-beta.8"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@kimesh/kit": "0.2.12",
|
|
41
|
+
"tailwindcss": "^4.0.0",
|
|
42
|
+
"vite": "^8.0.0-beta.8"
|
|
43
43
|
}
|
|
44
44
|
}
|