@pandacss/postcss 0.8.0 → 0.10.0

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.d.mts CHANGED
@@ -3,6 +3,7 @@ import { PluginCreator } from 'postcss';
3
3
  declare const loadConfig: () => any;
4
4
  declare const pandacss: PluginCreator<{
5
5
  configPath?: string;
6
+ cwd?: string;
6
7
  }>;
7
8
 
8
9
  export { pandacss as default, loadConfig, pandacss };
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { PluginCreator } from 'postcss';
3
3
  declare const loadConfig: () => any;
4
4
  declare const pandacss: PluginCreator<{
5
5
  configPath?: string;
6
+ cwd?: string;
6
7
  }>;
7
8
 
8
9
  export { pandacss as default, loadConfig, pandacss };
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ __export(src_exports, {
26
26
  });
27
27
  module.exports = __toCommonJS(src_exports);
28
28
 
29
- // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.25_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js
29
+ // ../../node_modules/.pnpm/tsup@7.1.0_postcss@8.4.27_typescript@5.1.6/node_modules/tsup/assets/cjs_shims.js
30
30
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
31
31
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
32
32
 
@@ -38,7 +38,7 @@ var PLUGIN_NAME = "pandacss";
38
38
  var interopDefault = (obj) => obj && obj.__esModule ? obj.default : obj;
39
39
  var loadConfig = () => interopDefault(require2("@pandacss/postcss"));
40
40
  var pandacss = (options = {}) => {
41
- const { configPath } = options;
41
+ const { configPath, cwd } = options;
42
42
  const builder = new import_node.Builder();
43
43
  return {
44
44
  postcssPlugin: PLUGIN_NAME,
@@ -47,7 +47,7 @@ var pandacss = (options = {}) => {
47
47
  if (!builder.isValidRoot(root)) {
48
48
  return;
49
49
  }
50
- await builder.setup({ configPath });
50
+ await builder.setup({ configPath, cwd });
51
51
  await builder.extract();
52
52
  builder.registerDependency((dep) => {
53
53
  result.messages.push({
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ var PLUGIN_NAME = "pandacss";
6
6
  var interopDefault = (obj) => obj && obj.__esModule ? obj.default : obj;
7
7
  var loadConfig = () => interopDefault(require2("@pandacss/postcss"));
8
8
  var pandacss = (options = {}) => {
9
- const { configPath } = options;
9
+ const { configPath, cwd } = options;
10
10
  const builder = new Builder();
11
11
  return {
12
12
  postcssPlugin: PLUGIN_NAME,
@@ -15,7 +15,7 @@ var pandacss = (options = {}) => {
15
15
  if (!builder.isValidRoot(root)) {
16
16
  return;
17
17
  }
18
- await builder.setup({ configPath });
18
+ await builder.setup({ configPath, cwd });
19
19
  await builder.extract();
20
20
  builder.registerDependency((dep) => {
21
21
  result.messages.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/postcss",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "PostCSS integration for Panda CSS",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,8 +14,8 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "postcss": "^8.4.25",
18
- "@pandacss/node": "0.8.0"
17
+ "postcss": "^8.4.27",
18
+ "@pandacss/node": "0.10.0"
19
19
  },
20
20
  "scripts": {
21
21
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",