@pandacss/node 0.20.1 → 0.21.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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -213,11 +213,11 @@ declare class Builder {
|
|
|
213
213
|
setup: (options?: {
|
|
214
214
|
configPath?: string;
|
|
215
215
|
cwd?: string;
|
|
216
|
-
from?: string;
|
|
217
216
|
}) => Promise<PandaContext | undefined>;
|
|
218
217
|
emit(): Promise<void>;
|
|
219
218
|
setupContext: (options: {
|
|
220
219
|
configPath: string;
|
|
220
|
+
cwd?: string;
|
|
221
221
|
}) => Promise<PandaContext>;
|
|
222
222
|
getContextOrThrow: () => PandaContext;
|
|
223
223
|
extractFile: (ctx: PandaContext, file: string) => Promise<string | undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -213,11 +213,11 @@ declare class Builder {
|
|
|
213
213
|
setup: (options?: {
|
|
214
214
|
configPath?: string;
|
|
215
215
|
cwd?: string;
|
|
216
|
-
from?: string;
|
|
217
216
|
}) => Promise<PandaContext | undefined>;
|
|
218
217
|
emit(): Promise<void>;
|
|
219
218
|
setupContext: (options: {
|
|
220
219
|
configPath: string;
|
|
220
|
+
cwd?: string;
|
|
221
221
|
}) => Promise<PandaContext>;
|
|
222
222
|
getContextOrThrow: () => PandaContext;
|
|
223
223
|
extractFile: (ctx: PandaContext, file: string) => Promise<string | undefined>;
|
package/dist/index.js
CHANGED
|
@@ -2763,7 +2763,7 @@ var Builder = class {
|
|
|
2763
2763
|
import_logger6.logger.debug("builder", "\u{1F6A7} Setup");
|
|
2764
2764
|
const configPath = options.configPath ?? this.getConfigPath();
|
|
2765
2765
|
if (!this.context) {
|
|
2766
|
-
return this.setupContext({ configPath });
|
|
2766
|
+
return this.setupContext({ configPath, cwd: options.cwd });
|
|
2767
2767
|
}
|
|
2768
2768
|
const ctx = this.getContextOrThrow();
|
|
2769
2769
|
this.affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
|
|
@@ -2784,8 +2784,8 @@ var Builder = class {
|
|
|
2784
2784
|
this.hasEmitted = true;
|
|
2785
2785
|
}
|
|
2786
2786
|
setupContext = async (options) => {
|
|
2787
|
-
const { configPath } = options;
|
|
2788
|
-
const ctx = await loadConfigAndCreateContext({ configPath });
|
|
2787
|
+
const { configPath, cwd } = options;
|
|
2788
|
+
const ctx = await loadConfigAndCreateContext({ configPath, cwd });
|
|
2789
2789
|
this.context = ctx;
|
|
2790
2790
|
return ctx;
|
|
2791
2791
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -2733,7 +2733,7 @@ var Builder = class {
|
|
|
2733
2733
|
logger6.debug("builder", "\u{1F6A7} Setup");
|
|
2734
2734
|
const configPath = options.configPath ?? this.getConfigPath();
|
|
2735
2735
|
if (!this.context) {
|
|
2736
|
-
return this.setupContext({ configPath });
|
|
2736
|
+
return this.setupContext({ configPath, cwd: options.cwd });
|
|
2737
2737
|
}
|
|
2738
2738
|
const ctx = this.getContextOrThrow();
|
|
2739
2739
|
this.affecteds = await ctx.diff.reloadConfigAndRefreshContext((conf) => {
|
|
@@ -2754,8 +2754,8 @@ var Builder = class {
|
|
|
2754
2754
|
this.hasEmitted = true;
|
|
2755
2755
|
}
|
|
2756
2756
|
setupContext = async (options) => {
|
|
2757
|
-
const { configPath } = options;
|
|
2758
|
-
const ctx = await loadConfigAndCreateContext({ configPath });
|
|
2757
|
+
const { configPath, cwd } = options;
|
|
2758
|
+
const ctx = await loadConfigAndCreateContext({ configPath, cwd });
|
|
2759
2759
|
this.context = ctx;
|
|
2760
2760
|
return ctx;
|
|
2761
2761
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"ts-morph": "19.0.0",
|
|
49
49
|
"ts-pattern": "5.0.5",
|
|
50
50
|
"tsconfck": "^2.1.2",
|
|
51
|
-
"@pandacss/config": "0.
|
|
52
|
-
"@pandacss/core": "0.
|
|
53
|
-
"@pandacss/error": "0.
|
|
54
|
-
"@pandacss/extractor": "0.
|
|
55
|
-
"@pandacss/generator": "0.
|
|
56
|
-
"@pandacss/is-valid-prop": "0.
|
|
57
|
-
"@pandacss/logger": "0.
|
|
58
|
-
"@pandacss/parser": "0.
|
|
59
|
-
"@pandacss/shared": "0.
|
|
60
|
-
"@pandacss/token-dictionary": "0.
|
|
61
|
-
"@pandacss/types": "0.
|
|
51
|
+
"@pandacss/config": "0.21.0",
|
|
52
|
+
"@pandacss/core": "0.21.0",
|
|
53
|
+
"@pandacss/error": "0.21.0",
|
|
54
|
+
"@pandacss/extractor": "0.21.0",
|
|
55
|
+
"@pandacss/generator": "0.21.0",
|
|
56
|
+
"@pandacss/is-valid-prop": "0.21.0",
|
|
57
|
+
"@pandacss/logger": "0.21.0",
|
|
58
|
+
"@pandacss/parser": "0.21.0",
|
|
59
|
+
"@pandacss/shared": "0.21.0",
|
|
60
|
+
"@pandacss/token-dictionary": "0.21.0",
|
|
61
|
+
"@pandacss/types": "0.21.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@types/fs-extra": "11.0.4",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@types/pluralize": "0.0.33",
|
|
69
69
|
"boxen": "^7.1.1",
|
|
70
70
|
"p-limit": "^4.0.0",
|
|
71
|
-
"@pandacss/fixture": "0.
|
|
71
|
+
"@pandacss/fixture": "0.21.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|