@unocss/postcss 0.54.0 → 0.54.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.
package/dist/index.cjs CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  const promises = require('node:fs/promises');
4
4
  const node_path = require('node:path');
5
+ const process = require('node:process');
5
6
  const fg = require('fast-glob');
6
7
  const postcss = require('postcss');
7
8
  const core = require('@unocss/core');
@@ -11,6 +12,7 @@ const MagicString = require('magic-string');
11
12
 
12
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
13
14
 
15
+ const process__default = /*#__PURE__*/_interopDefaultLegacy(process);
14
16
  const fg__default = /*#__PURE__*/_interopDefaultLegacy(fg);
15
17
  const postcss__default = /*#__PURE__*/_interopDefaultLegacy(postcss);
16
18
  const MagicString__default = /*#__PURE__*/_interopDefaultLegacy(MagicString);
@@ -168,7 +170,7 @@ function unocss(options = {}) {
168
170
  "`@unocss/postcss` package is in an experimental state right now. It doesn't follow semver, and may introduce breaking changes in patch versions."
169
171
  );
170
172
  const {
171
- cwd = process.cwd(),
173
+ cwd = process__default.cwd(),
172
174
  configOrPath
173
175
  } = options;
174
176
  const directiveMap = Object.assign({
package/dist/index.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { stat, readFile } from 'node:fs/promises';
2
2
  import { normalize } from 'node:path';
3
+ import process from 'node:process';
3
4
  import fg from 'fast-glob';
4
5
  import postcss from 'postcss';
5
6
  import { expandVariantGroup, notNull, regexScopePlaceholder, warnOnce, createGenerator } from '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/postcss",
3
- "version": "0.54.0",
3
+ "version": "0.54.1",
4
4
  "description": "PostCSS plugin for UnoCSS",
5
5
  "author": "sibbng <sibbngheid@gmail.com>",
6
6
  "license": "MIT",
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "css-tree": "^2.3.1",
40
- "fast-glob": "^3.3.0",
41
- "magic-string": "^0.30.1",
42
- "postcss": "^8.4.25",
43
- "@unocss/config": "0.54.0",
44
- "@unocss/core": "0.54.0"
40
+ "fast-glob": "^3.3.1",
41
+ "magic-string": "^0.30.2",
42
+ "postcss": "^8.4.27",
43
+ "@unocss/config": "0.54.1",
44
+ "@unocss/core": "0.54.1"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "unbuild",