@unocss/astro 0.50.4 → 0.50.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/README.md CHANGED
@@ -46,6 +46,10 @@ export default {
46
46
 
47
47
  for more details, please refer to the [Vite plugin](../vite).
48
48
 
49
+ ## Notes
50
+
51
+ [`client:only`](https://docs.astro.build/en/reference/directives-reference/#clientonly) components must be placed in [`components`](https://docs.astro.build/en/core-concepts/project-structure/#srccomponents) folder or added to UnoCSS's `extraContent` config in order to be processed.
52
+
49
53
  ## License
50
54
 
51
55
  MIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)
package/dist/index.cjs CHANGED
@@ -21,7 +21,7 @@ function UnoCSSAstroIntegration(options = {}, defaults) {
21
21
  var _a, _b;
22
22
  options.extraContent || (options.extraContent = {});
23
23
  (_a = options.extraContent).filesystem || (_a.filesystem = []);
24
- options.extraContent.filesystem.push(node_path.resolve(node_url.fileURLToPath(config.root), "src/components/**/*").replace(/\\/g, "/"));
24
+ options.extraContent.filesystem.push(node_path.resolve(node_url.fileURLToPath(config.srcDir), "components/**/*").replace(/\\/g, "/"));
25
25
  (_b = config.vite).plugins || (_b.plugins = []);
26
26
  config.vite.plugins.push(...VitePlugin__default(options, defaults));
27
27
  const injects = [];
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ function UnoCSSAstroIntegration(options = {}, defaults) {
15
15
  var _a, _b;
16
16
  options.extraContent || (options.extraContent = {});
17
17
  (_a = options.extraContent).filesystem || (_a.filesystem = []);
18
- options.extraContent.filesystem.push(resolve(fileURLToPath(config.root), "src/components/**/*").replace(/\\/g, "/"));
18
+ options.extraContent.filesystem.push(resolve(fileURLToPath(config.srcDir), "components/**/*").replace(/\\/g, "/"));
19
19
  (_b = config.vite).plugins || (_b.plugins = []);
20
20
  config.vite.plugins.push(...VitePlugin(options, defaults));
21
21
  const injects = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/astro",
3
- "version": "0.50.4",
3
+ "version": "0.50.5",
4
4
  "description": "UnoCSS integration for Astro",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -37,12 +37,12 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@unocss/core": "0.50.4",
41
- "@unocss/reset": "0.50.4",
42
- "@unocss/vite": "0.50.4"
40
+ "@unocss/core": "0.50.5",
41
+ "@unocss/reset": "0.50.5",
42
+ "@unocss/vite": "0.50.5"
43
43
  },
44
44
  "devDependencies": {
45
- "astro": "^2.0.17"
45
+ "astro": "^2.1.3"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "unbuild",