@kimesh/tailwindcss 0.2.21 → 0.2.22

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -99,10 +99,13 @@ function hasReferenceDirective(content) {
99
99
  * Build source entries from Kimesh layers
100
100
  */
101
101
  function buildLayerSources(kimesh) {
102
- return kimesh.layers.map((layer) => ({
103
- path: `${layer.path}/src`,
104
- comment: `layer: ${layer.name}`
105
- }));
102
+ return kimesh.layers.map((layer) => {
103
+ const srcPath = layer.path.endsWith("/src") || layer.path.endsWith("\\src") ? layer.path : `${layer.path}/src`;
104
+ return {
105
+ path: srcPath,
106
+ comment: `layer: ${layer.name}`
107
+ };
108
+ });
106
109
  }
107
110
  /**
108
111
  * Generate CSS content with @source directives
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimesh/tailwindcss",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "TailwindCSS module for Kimesh framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,13 +31,13 @@
31
31
  "magic-string": "^0.30.17"
32
32
  },
33
33
  "devDependencies": {
34
- "@kimesh/kit": "0.2.21",
34
+ "@kimesh/kit": "0.2.22",
35
35
  "tsdown": "^0.11.6",
36
36
  "typescript": "^5.8.3",
37
37
  "vite": "^8.0.0-beta.8"
38
38
  },
39
39
  "peerDependencies": {
40
- "@kimesh/kit": "0.2.21",
40
+ "@kimesh/kit": "0.2.22",
41
41
  "tailwindcss": "^4.0.0",
42
42
  "vite": "^8.0.0-beta.8"
43
43
  }