@pandacss/node 0.45.0 → 0.45.2

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
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.4.0_postcss@8.4.40_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.41_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.4.0_postcss@8.4.40_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.41_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
@@ -432,7 +432,7 @@ var import_node_path = __toESM(require("path"));
432
432
  var import_zlib = __toESM(require("zlib"));
433
433
 
434
434
  // package.json
435
- var version = "0.45.0";
435
+ var version = "0.45.2";
436
436
 
437
437
  // src/classify.ts
438
438
  init_cjs_shims();
@@ -896,7 +896,7 @@ init_cjs_shims();
896
896
  // ../../node_modules/.pnpm/p-limit@5.0.0/node_modules/p-limit/index.js
897
897
  init_cjs_shims();
898
898
 
899
- // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
899
+ // ../../node_modules/.pnpm/yocto-queue@1.1.1/node_modules/yocto-queue/index.js
900
900
  init_cjs_shims();
901
901
  var Node = class {
902
902
  value;
@@ -932,6 +932,12 @@ var Queue = class {
932
932
  this.#size--;
933
933
  return current.value;
934
934
  }
935
+ peek() {
936
+ if (!this.#head) {
937
+ return;
938
+ }
939
+ return this.#head.value;
940
+ }
935
941
  clear() {
936
942
  this.#head = void 0;
937
943
  this.#tail = void 0;
@@ -3168,7 +3174,7 @@ var import_fs_extra2 = __toESM(require("fs-extra"));
3168
3174
  var import_look_it_up2 = require("look-it-up");
3169
3175
  var import_outdent2 = require("outdent");
3170
3176
  var import_path5 = require("path");
3171
- var import_preferred_pm = __toESM(require("preferred-pm"));
3177
+ var import_package_manager_detector = require("package-manager-detector");
3172
3178
  var import_prettier = __toESM(require("prettier"));
3173
3179
  async function setupConfig(cwd, opts = {}) {
3174
3180
  const { force, outExtension, jsxFramework, syntax, outdir = "styled-system" } = opts;
@@ -3180,8 +3186,8 @@ async function setupConfig(cwd, opts = {}) {
3180
3186
  throw err;
3181
3187
  }
3182
3188
  }
3183
- const pmResult = await (0, import_preferred_pm.default)(cwd);
3184
- const pm = pmResult?.name ?? "npm";
3189
+ const pmResult = await (0, import_package_manager_detector.detect)({ cwd });
3190
+ const pm = (pmResult?.agent ?? "npm").split("@")[0];
3185
3191
  const cmd = pm === "npm" ? "npm run" : pm;
3186
3192
  const isTs = (0, import_look_it_up2.lookItUpSync)("tsconfig.json", cwd);
3187
3193
  const file = isTs ? "panda.config.ts" : "panda.config.mjs";
package/dist/index.mjs CHANGED
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
 
30
- // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.4.0_postcss@8.4.40_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.41_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
31
31
  var init_esm_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.4.0_postcss@8.4.40_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
32
+ "../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.4.41_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
@@ -406,7 +406,7 @@ import path from "node:path";
406
406
  import zlib from "zlib";
407
407
 
408
408
  // package.json
409
- var version = "0.45.0";
409
+ var version = "0.45.2";
410
410
 
411
411
  // src/classify.ts
412
412
  init_esm_shims();
@@ -870,7 +870,7 @@ init_esm_shims();
870
870
  // ../../node_modules/.pnpm/p-limit@5.0.0/node_modules/p-limit/index.js
871
871
  init_esm_shims();
872
872
 
873
- // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
873
+ // ../../node_modules/.pnpm/yocto-queue@1.1.1/node_modules/yocto-queue/index.js
874
874
  init_esm_shims();
875
875
  var Node = class {
876
876
  value;
@@ -906,6 +906,12 @@ var Queue = class {
906
906
  this.#size--;
907
907
  return current.value;
908
908
  }
909
+ peek() {
910
+ if (!this.#head) {
911
+ return;
912
+ }
913
+ return this.#head.value;
914
+ }
909
915
  clear() {
910
916
  this.#head = void 0;
911
917
  this.#tail = void 0;
@@ -3142,7 +3148,7 @@ import fsExtra2 from "fs-extra";
3142
3148
  import { lookItUpSync as lookItUpSync2 } from "look-it-up";
3143
3149
  import { outdent as outdent2 } from "outdent";
3144
3150
  import { join as join2 } from "path";
3145
- import getPackageManager from "preferred-pm";
3151
+ import { detect } from "package-manager-detector";
3146
3152
  import prettier from "prettier";
3147
3153
  async function setupConfig(cwd, opts = {}) {
3148
3154
  const { force, outExtension, jsxFramework, syntax, outdir = "styled-system" } = opts;
@@ -3154,8 +3160,8 @@ async function setupConfig(cwd, opts = {}) {
3154
3160
  throw err;
3155
3161
  }
3156
3162
  }
3157
- const pmResult = await getPackageManager(cwd);
3158
- const pm = pmResult?.name ?? "npm";
3163
+ const pmResult = await detect({ cwd });
3164
+ const pm = (pmResult?.agent ?? "npm").split("@")[0];
3159
3165
  const cmd = pm === "npm" ? "npm run" : pm;
3160
3166
  const isTs = lookItUpSync2("tsconfig.json", cwd);
3161
3167
  const file = isTs ? "panda.config.ts" : "panda.config.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.45.0",
3
+ "version": "0.45.2",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -32,7 +32,7 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "browserslist": "4.23.1",
35
+ "browserslist": "4.23.3",
36
36
  "chokidar": "3.6.0",
37
37
  "fast-glob": "3.3.2",
38
38
  "file-size": "1.0.0",
@@ -43,24 +43,24 @@
43
43
  "lodash.merge": "4.6.2",
44
44
  "look-it-up": "2.1.0",
45
45
  "outdent": " ^0.8.0",
46
+ "package-manager-detector": "0.1.0",
46
47
  "perfect-debounce": "1.0.0",
47
48
  "pkg-types": "1.0.3",
48
49
  "pluralize": "8.0.0",
49
- "postcss": "8.4.40",
50
- "preferred-pm": "3.1.4",
50
+ "postcss": "8.4.41",
51
51
  "prettier": "3.2.5",
52
52
  "ts-morph": "21.0.1",
53
53
  "ts-pattern": "5.0.8",
54
54
  "tsconfck": "3.0.2",
55
- "@pandacss/config": "0.45.0",
56
- "@pandacss/core": "0.45.0",
57
- "@pandacss/extractor": "0.45.0",
58
- "@pandacss/generator": "0.45.0",
59
- "@pandacss/logger": "0.45.0",
60
- "@pandacss/parser": "0.45.0",
61
- "@pandacss/shared": "0.45.0",
62
- "@pandacss/token-dictionary": "0.45.0",
63
- "@pandacss/types": "0.45.0"
55
+ "@pandacss/config": "0.45.2",
56
+ "@pandacss/core": "0.45.2",
57
+ "@pandacss/extractor": "0.45.2",
58
+ "@pandacss/generator": "0.45.2",
59
+ "@pandacss/logger": "0.45.2",
60
+ "@pandacss/parser": "0.45.2",
61
+ "@pandacss/shared": "0.45.2",
62
+ "@pandacss/token-dictionary": "0.45.2",
63
+ "@pandacss/types": "0.45.2"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/fs-extra": "11.0.4",