@unocss/postcss 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/dist/index.cjs CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const promises = require('node:fs/promises');
4
+ const node_path = require('node:path');
4
5
  const fg = require('fast-glob');
5
6
  const postcss = require('postcss');
6
7
  const core = require('@unocss/core');
@@ -256,7 +257,7 @@ function unocss(options = {}) {
256
257
  result.messages.push({
257
258
  type: "dependency",
258
259
  plugin: directiveMap.unocss,
259
- file,
260
+ file: node_path.normalize(file),
260
261
  parent: result.opts.from
261
262
  });
262
263
  if (fileMap.has(file) && mtimeMs <= fileMap.get(file))
package/dist/index.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { stat, readFile } from 'node:fs/promises';
2
+ import { normalize } from 'node:path';
2
3
  import fg from 'fast-glob';
3
4
  import postcss from 'postcss';
4
5
  import { expandVariantGroup, notNull, regexScopePlaceholder, warnOnce, createGenerator } from '@unocss/core';
@@ -248,7 +249,7 @@ function unocss(options = {}) {
248
249
  result.messages.push({
249
250
  type: "dependency",
250
251
  plugin: directiveMap.unocss,
251
- file,
252
+ file: normalize(file),
252
253
  parent: result.opts.from
253
254
  });
254
255
  if (fileMap.has(file) && mtimeMs <= fileMap.get(file))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/postcss",
3
- "version": "0.50.4",
3
+ "version": "0.50.5",
4
4
  "description": "PostCSS plugin for UnoCSS",
5
5
  "author": "sibbng <sibbngheid@gmail.com>",
6
6
  "license": "MIT",
@@ -40,8 +40,8 @@
40
40
  "fast-glob": "^3.2.12",
41
41
  "magic-string": "^0.30.0",
42
42
  "postcss": "^8.4.21",
43
- "@unocss/config": "0.50.4",
44
- "@unocss/core": "0.50.4"
43
+ "@unocss/config": "0.50.5",
44
+ "@unocss/core": "0.50.5"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "unbuild",