@pandacss/config 0.0.0-dev-20230515195510 → 0.0.0-dev-20230516180439
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -142,11 +142,11 @@ async function getResolvedConfig(config, cwd) {
|
|
|
142
142
|
const presets = config.presets ?? [];
|
|
143
143
|
const configs2 = [config];
|
|
144
144
|
while (presets.length > 0) {
|
|
145
|
-
const preset = presets.shift();
|
|
145
|
+
const preset = await presets.shift();
|
|
146
146
|
if (typeof preset === "string") {
|
|
147
147
|
const presetModule = await bundle(preset, cwd);
|
|
148
|
-
configs2.push(presetModule.config);
|
|
149
|
-
presets.unshift(...presetModule.config.presets ?? []);
|
|
148
|
+
configs2.push(await presetModule.config);
|
|
149
|
+
presets.unshift(...await presetModule.config.presets ?? []);
|
|
150
150
|
} else {
|
|
151
151
|
configs2.push(preset);
|
|
152
152
|
presets.unshift(...preset.presets ?? []);
|
package/dist/index.mjs
CHANGED
|
@@ -101,11 +101,11 @@ async function getResolvedConfig(config, cwd) {
|
|
|
101
101
|
const presets = config.presets ?? [];
|
|
102
102
|
const configs2 = [config];
|
|
103
103
|
while (presets.length > 0) {
|
|
104
|
-
const preset = presets.shift();
|
|
104
|
+
const preset = await presets.shift();
|
|
105
105
|
if (typeof preset === "string") {
|
|
106
106
|
const presetModule = await bundle(preset, cwd);
|
|
107
|
-
configs2.push(presetModule.config);
|
|
108
|
-
presets.unshift(...presetModule.config.presets ?? []);
|
|
107
|
+
configs2.push(await presetModule.config);
|
|
108
|
+
presets.unshift(...await presetModule.config.presets ?? []);
|
|
109
109
|
} else {
|
|
110
110
|
configs2.push(preset);
|
|
111
111
|
presets.unshift(...preset.presets ?? []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/config",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230516180439",
|
|
4
4
|
"description": "Find and load panda config",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"bundle-n-require": "^1.0.1",
|
|
18
18
|
"merge-anything": "^5.1.6",
|
|
19
19
|
"escalade": "3.1.1",
|
|
20
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
21
|
-
"@pandacss/error": "0.0.0-dev-
|
|
22
|
-
"@pandacss/types": "0.0.0-dev-
|
|
20
|
+
"@pandacss/logger": "0.0.0-dev-20230516180439",
|
|
21
|
+
"@pandacss/error": "0.0.0-dev-20230516180439",
|
|
22
|
+
"@pandacss/types": "0.0.0-dev-20230516180439"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "pnpm tsup src/index.ts --format=esm,cjs --shims --dts",
|