shopify-accelerate-app 1.1.4 → 1.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify-accelerate-app",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Shopify App development with full Typescript Support",
5
5
  "author": "Felix Tellmann",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@swc/core": "^1.9.3",
36
36
  "@swc/helpers": "^0.5.15",
37
- "@tailwindcss/cli": "^4.0.0",
37
+ "@tailwindcss/cli": "^4.2.1",
38
38
  "chalk": "4.1.2",
39
39
  "commander": "^12.1.0",
40
40
  "dotenv-mono": "^1.3.14",
@@ -24,6 +24,10 @@ const generateInputCSS = (base_css_path: string, user_css_path: string): string
24
24
  tailwind_import_options.push(`prefix(${prefix})`);
25
25
  }
26
26
 
27
+ // Resolve tailwindcss paths to absolute so they work from the generated file's location
28
+ const tw_theme_path = path.join(package_root, "node_modules/tailwindcss/theme.css").replace(/\\/g, "/");
29
+ const tw_utilities_path = path.join(package_root, "node_modules/tailwindcss/utilities.css").replace(/\\/g, "/");
30
+
27
31
  let tailwind_import: string;
28
32
  if (important || tailwind_import_options.length > 0) {
29
33
  // When disabling preflight or using prefix/important, import layers individually
@@ -35,19 +39,19 @@ const generateInputCSS = (base_css_path: string, user_css_path: string): string
35
39
 
36
40
  tailwind_import = [
37
41
  `@layer theme, base, components;`,
38
- `@import "tailwindcss/theme.css" layer(theme)${theme_options} source(none);`,
42
+ `@import "${tw_theme_path}" layer(theme)${theme_options} source(none);`,
39
43
  `/* Preflight intentionally omitted */`,
40
44
  `/* Utilities are NOT in a @layer so they keep normal cascade priority (like v3) and can override other libraries */`,
41
- `@import "tailwindcss/utilities.css"${utilities_options} source(none);`,
45
+ `@import "${tw_utilities_path}"${utilities_options} source(none);`,
42
46
  ].join("\n");
43
47
  } else {
44
48
  // No prefix or important — still skip preflight
45
49
  tailwind_import = [
46
50
  `@layer theme, base, components;`,
47
- `@import "tailwindcss/theme.css" layer(theme) source(none);`,
51
+ `@import "${tw_theme_path}" layer(theme) source(none);`,
48
52
  `/* Preflight intentionally omitted */`,
49
53
  `/* Utilities are NOT in a @layer so they keep normal cascade priority (like v3) and can override other libraries */`,
50
- `@import "tailwindcss/utilities.css" source(none);`,
54
+ `@import "${tw_utilities_path}" source(none);`,
51
55
  ].join("\n");
52
56
  }
53
57