shopify-accelerate-app 1.1.0 → 1.1.1

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.
@@ -5,7 +5,8 @@
5
5
  "WebSearch",
6
6
  "WebFetch(domain:kitemetric.com)",
7
7
  "WebFetch(domain:www.jetbrains.com)",
8
- "WebFetch(domain:github.com)"
8
+ "WebFetch(domain:github.com)",
9
+ "Bash(cd:*)"
9
10
  ]
10
11
  }
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify-accelerate-app",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Shopify App development with full Typescript Support",
5
5
  "author": "Felix Tellmann",
6
6
  "license": "MIT",
@@ -60,7 +60,12 @@ const generateInputCSS = (base_css_path: string, user_css_path: string): string
60
60
  const safelist = `@source inline("${safelist_prefix}inset-0 ${safelist_prefix}pointer-events-none [&>*]:${safelist_prefix}pointer-events-auto");`;
61
61
 
62
62
  // Read the base CSS config (theme, variants, utilities, plugins)
63
- const base_css = fs.readFileSync(base_css_path, { encoding: "utf-8" });
63
+ // Resolve bare package imports to absolute paths so they work from the generated file's location
64
+ const tw_animate_path = path.join(package_root, "node_modules/tw-animate-css/dist/tw-animate.css").replace(/\\/g, "/");
65
+ const base_css = fs.readFileSync(base_css_path, { encoding: "utf-8" }).replace(
66
+ '@import "tw-animate-css"',
67
+ `@import "${tw_animate_path}"`
68
+ );
64
69
 
65
70
  // Read the user's _tailwind.css
66
71
  const user_css = fs.readFileSync(user_css_path, { encoding: "utf-8" });