@pandacss/postcss 0.54.0 → 1.0.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.js CHANGED
@@ -28,14 +28,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  builder: () => builder,
34
- default: () => src_default,
34
+ default: () => index_default,
35
35
  loadConfig: () => loadConfig,
36
36
  pandacss: () => pandacss
37
37
  });
38
- module.exports = __toCommonJS(src_exports);
38
+ module.exports = __toCommonJS(index_exports);
39
39
  var import_node = require("@pandacss/node");
40
40
  var import_module = require("module");
41
41
  var import_path = __toESM(require("path"));
@@ -54,11 +54,9 @@ var pandacss = (options = {}) => {
54
54
  const postcssProcess = async function(root, result) {
55
55
  const fileName = result.opts.from;
56
56
  const skip = shouldSkip(fileName, allow);
57
- if (skip)
58
- return;
57
+ if (skip) return;
59
58
  await builder.setup({ configPath, cwd });
60
- if (!builder.isValidRoot(root))
61
- return;
59
+ if (!builder.isValidRoot(root)) return;
62
60
  await builder.emit();
63
61
  builder.extract();
64
62
  builder.registerDependency((dep) => {
@@ -87,19 +85,16 @@ var pandacss = (options = {}) => {
87
85
  };
88
86
  };
89
87
  pandacss.postcss = true;
90
- var src_default = pandacss;
88
+ var index_default = pandacss;
91
89
  var nodeModulesRegex = /node_modules/;
92
90
  function isValidCss(file) {
93
91
  const [filePath] = file.split("?");
94
92
  return import_path.default.extname(filePath) === ".css";
95
93
  }
96
94
  var shouldSkip = (fileName, allow) => {
97
- if (!fileName)
98
- return true;
99
- if (!isValidCss(fileName))
100
- return true;
101
- if (allow?.some((p) => p.test(fileName)))
102
- return false;
95
+ if (!fileName) return true;
96
+ if (!isValidCss(fileName)) return true;
97
+ if (allow?.some((p) => p.test(fileName))) return false;
103
98
  return nodeModulesRegex.test(fileName);
104
99
  };
105
100
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_@swc+helpers@0.4.36__postcss@8.5.3_typescript@5.6.2/node_modules/tsup/assets/esm_shims.js
2
- import { fileURLToPath } from "url";
1
+ // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.3_jiti@2.4.2_postcss@8.5.6_tsx@4.20.3_typescript@5.8.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
3
2
  import path from "path";
3
+ import { fileURLToPath } from "url";
4
4
  var getFilename = () => fileURLToPath(import.meta.url);
5
5
  var getDirname = () => path.dirname(getFilename());
6
6
  var __dirname = /* @__PURE__ */ getDirname();
@@ -24,11 +24,9 @@ var pandacss = (options = {}) => {
24
24
  const postcssProcess = async function(root, result) {
25
25
  const fileName = result.opts.from;
26
26
  const skip = shouldSkip(fileName, allow);
27
- if (skip)
28
- return;
27
+ if (skip) return;
29
28
  await builder.setup({ configPath, cwd });
30
- if (!builder.isValidRoot(root))
31
- return;
29
+ if (!builder.isValidRoot(root)) return;
32
30
  await builder.emit();
33
31
  builder.extract();
34
32
  builder.registerDependency((dep) => {
@@ -57,24 +55,21 @@ var pandacss = (options = {}) => {
57
55
  };
58
56
  };
59
57
  pandacss.postcss = true;
60
- var src_default = pandacss;
58
+ var index_default = pandacss;
61
59
  var nodeModulesRegex = /node_modules/;
62
60
  function isValidCss(file) {
63
61
  const [filePath] = file.split("?");
64
62
  return path2.extname(filePath) === ".css";
65
63
  }
66
64
  var shouldSkip = (fileName, allow) => {
67
- if (!fileName)
68
- return true;
69
- if (!isValidCss(fileName))
70
- return true;
71
- if (allow?.some((p) => p.test(fileName)))
72
- return false;
65
+ if (!fileName) return true;
66
+ if (!isValidCss(fileName)) return true;
67
+ if (allow?.some((p) => p.test(fileName))) return false;
73
68
  return nodeModulesRegex.test(fileName);
74
69
  };
75
70
  export {
76
71
  builder,
77
- src_default as default,
72
+ index_default as default,
78
73
  loadConfig,
79
74
  pandacss
80
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/postcss",
3
- "version": "0.54.0",
3
+ "version": "1.0.1",
4
4
  "description": "PostCSS integration for Panda CSS",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,10 +33,10 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "postcss": "8.4.49",
36
- "@pandacss/node": "0.54.0"
36
+ "@pandacss/node": "1.0.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@pandacss/logger": "0.54.0"
39
+ "@pandacss/logger": "1.0.1"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",