@pandacss/postcss 2.0.0-beta.17 → 2.0.0-beta.18

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,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/index.ts
2
2
  var _compiler = require('@pandacss/compiler');
3
3
  var _compilershared = require('@pandacss/compiler-shared');
4
- var _path = require('path');
4
+ var _nodepath = require('node:path');
5
5
 
6
6
  // src/fs-stamp.ts
7
- var _fs = require('fs');
7
+ var _nodefs = require('node:fs');
8
8
  function readFileStamp(path) {
9
9
  try {
10
- const stat = _fs.statSync.call(void 0, path);
10
+ const stat = _nodefs.statSync.call(void 0, path);
11
11
  return `${stat.mtimeMs}:${stat.size}`;
12
12
  } catch (e) {
13
13
  return "missing";
@@ -25,7 +25,7 @@ var pandacss = (options = {}) => {
25
25
  if (shouldSkip(fileName, options.allow)) return;
26
26
  const inputCss = getInputCss(root, result);
27
27
  if (!inputCss.includes("@layer")) return;
28
- const cwd = _path.resolve.call(void 0, _nullishCoalesce(options.cwd, () => ( process.cwd())));
28
+ const cwd = _nodepath.resolve.call(void 0, _nullishCoalesce(options.cwd, () => ( process.cwd())));
29
29
  const key = getDriverKey(cwd, options.configPath);
30
30
  let state = driverStates.get(key);
31
31
  if (!state) {
@@ -77,7 +77,7 @@ var index_default = pandacss;
77
77
  var nodeModulesRegex = /node_modules/;
78
78
  function isValidCss(file) {
79
79
  const [filePath] = file.split("?");
80
- return _path.extname.call(void 0, filePath) === ".css";
80
+ return _nodepath.extname.call(void 0, filePath) === ".css";
81
81
  }
82
82
  var shouldSkip = (fileName, allow) => {
83
83
  if (!fileName) return true;
@@ -176,16 +176,16 @@ function registerDependencies(driver, result, cwd, parent) {
176
176
  result.messages.push(
177
177
  withPluginMetadata(
178
178
  createSourceDependency({
179
- dir: _path.normalize.call(void 0, _path.resolve.call(void 0, cwd, source.base)),
179
+ dir: _nodepath.normalize.call(void 0, _nodepath.resolve.call(void 0, cwd, source.base)),
180
180
  glob: source.pattern
181
181
  }),
182
182
  parent
183
183
  )
184
184
  );
185
185
  }
186
- const configDeps = new Set(driver.configDependencies.map((file) => _path.normalize.call(void 0, _path.resolve.call(void 0, cwd, file))));
186
+ const configDeps = new Set(driver.configDependencies.map((file) => _nodepath.normalize.call(void 0, _nodepath.resolve.call(void 0, cwd, file))));
187
187
  if (driver.configPath) {
188
- configDeps.add(_path.normalize.call(void 0, _path.resolve.call(void 0, cwd, driver.configPath)));
188
+ configDeps.add(_nodepath.normalize.call(void 0, _nodepath.resolve.call(void 0, cwd, driver.configPath)));
189
189
  }
190
190
  for (const file of configDeps) {
191
191
  result.messages.push(
@@ -204,7 +204,7 @@ function registerDependencies(driver, result, cwd, parent) {
204
204
  withPluginMetadata(
205
205
  {
206
206
  type: "dependency",
207
- file: _path.normalize.call(void 0, file)
207
+ file: _nodepath.normalize.call(void 0, file)
208
208
  },
209
209
  parent
210
210
  )
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  // src/index.ts
2
2
  import { createNodeDriver } from "@pandacss/compiler";
3
3
  import { formatDiagnostic } from "@pandacss/compiler-shared";
4
- import { extname, normalize, resolve } from "path";
4
+ import { extname, normalize, resolve } from "node:path";
5
5
 
6
6
  // src/fs-stamp.ts
7
- import { statSync } from "fs";
7
+ import { statSync } from "node:fs";
8
8
  function readFileStamp(path) {
9
9
  try {
10
10
  const stat = statSync(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/postcss",
3
- "version": "2.0.0-beta.17",
3
+ "version": "2.0.0-beta.18",
4
4
  "description": "PostCSS plugin for Panda CSS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,8 +30,8 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@pandacss/compiler": "2.0.0-beta.17",
34
- "@pandacss/compiler-shared": "2.0.0-beta.17"
33
+ "@pandacss/compiler": "2.0.0-beta.18",
34
+ "@pandacss/compiler-shared": "2.0.0-beta.18"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "postcss": ">=8"