@pandacss/node 0.53.0 → 0.53.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 +70 -38
- package/dist/index.mjs +56 -24
- package/package.json +13 -11
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.7.6_postcss@8.
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.5.3_typescript@5.6.2/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.7.6_postcss@8.
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.5.3_typescript@5.6.2/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
39
|
"use strict";
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -483,7 +483,7 @@ var import_core = require("@pandacss/core");
|
|
|
483
483
|
var import_logger5 = require("@pandacss/logger");
|
|
484
484
|
var import_shared2 = require("@pandacss/shared");
|
|
485
485
|
var import_fs = require("fs");
|
|
486
|
-
var
|
|
486
|
+
var import_path4 = require("path");
|
|
487
487
|
|
|
488
488
|
// src/codegen.ts
|
|
489
489
|
init_cjs_shims();
|
|
@@ -1987,9 +1987,35 @@ var DiffEngine = class {
|
|
|
1987
1987
|
init_cjs_shims();
|
|
1988
1988
|
var import_logger2 = require("@pandacss/logger");
|
|
1989
1989
|
var import_chokidar = __toESM(require("chokidar"));
|
|
1990
|
-
var import_fast_glob = __toESM(require("fast-glob"));
|
|
1991
1990
|
var import_fs_extra = __toESM(require("fs-extra"));
|
|
1991
|
+
var import_path2 = require("path");
|
|
1992
|
+
var import_picomatch2 = __toESM(require("picomatch"));
|
|
1993
|
+
var import_tinyglobby = require("tinyglobby");
|
|
1994
|
+
|
|
1995
|
+
// src/glob-dirname.ts
|
|
1996
|
+
init_cjs_shims();
|
|
1992
1997
|
var import_path = require("path");
|
|
1998
|
+
var import_picomatch = __toESM(require("picomatch"));
|
|
1999
|
+
function globDirname(globs) {
|
|
2000
|
+
const rootDirs = /* @__PURE__ */ new Set();
|
|
2001
|
+
for (const glob of globs) {
|
|
2002
|
+
const scan = import_picomatch.default.scan(glob, { tokens: true });
|
|
2003
|
+
if (!scan.isGlob) {
|
|
2004
|
+
rootDirs.add(glob);
|
|
2005
|
+
continue;
|
|
2006
|
+
}
|
|
2007
|
+
const nonGlobTokens = scan.tokens?.filter((token) => !token.isPrefix && !token.isGlob);
|
|
2008
|
+
if (nonGlobTokens?.length) {
|
|
2009
|
+
rootDirs.add((0, import_path.join)(...nonGlobTokens.map((token) => token.value)));
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
if (rootDirs.size === 0) {
|
|
2013
|
+
return ["."];
|
|
2014
|
+
}
|
|
2015
|
+
return Array.from(rootDirs);
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
// src/node-runtime.ts
|
|
1993
2019
|
var nodeRuntime = {
|
|
1994
2020
|
cwd() {
|
|
1995
2021
|
return process.cwd();
|
|
@@ -1998,15 +2024,15 @@ var nodeRuntime = {
|
|
|
1998
2024
|
return process.env[name];
|
|
1999
2025
|
},
|
|
2000
2026
|
path: {
|
|
2001
|
-
join:
|
|
2002
|
-
relative:
|
|
2003
|
-
dirname:
|
|
2004
|
-
extname:
|
|
2005
|
-
isAbsolute:
|
|
2006
|
-
sep:
|
|
2007
|
-
resolve:
|
|
2027
|
+
join: import_path2.join,
|
|
2028
|
+
relative: import_path2.relative,
|
|
2029
|
+
dirname: import_path2.dirname,
|
|
2030
|
+
extname: import_path2.extname,
|
|
2031
|
+
isAbsolute: import_path2.isAbsolute,
|
|
2032
|
+
sep: import_path2.sep,
|
|
2033
|
+
resolve: import_path2.resolve,
|
|
2008
2034
|
abs(cwd, str) {
|
|
2009
|
-
return (0,
|
|
2035
|
+
return (0, import_path2.isAbsolute)(str) ? str : (0, import_path2.join)(cwd, str);
|
|
2010
2036
|
}
|
|
2011
2037
|
},
|
|
2012
2038
|
fs: {
|
|
@@ -2021,7 +2047,7 @@ var nodeRuntime = {
|
|
|
2021
2047
|
if (!ignore.length) {
|
|
2022
2048
|
ignore.push("**/*.d.ts");
|
|
2023
2049
|
}
|
|
2024
|
-
return
|
|
2050
|
+
return (0, import_tinyglobby.globSync)(opts.include, { cwd: opts.cwd, ignore, absolute: true });
|
|
2025
2051
|
},
|
|
2026
2052
|
writeFile: import_fs_extra.default.writeFile,
|
|
2027
2053
|
writeFileSync: import_fs_extra.default.writeFileSync,
|
|
@@ -2034,15 +2060,21 @@ var nodeRuntime = {
|
|
|
2034
2060
|
watch(options) {
|
|
2035
2061
|
const { include, exclude, cwd, poll } = options;
|
|
2036
2062
|
const coalesce = poll || process.platform === "win32";
|
|
2037
|
-
const
|
|
2063
|
+
const dirnames = globDirname(include);
|
|
2064
|
+
const isValidPath = (0, import_picomatch2.default)(include, { cwd, ignore: exclude });
|
|
2065
|
+
const workingDir = cwd || process.cwd();
|
|
2066
|
+
const watcher = import_chokidar.default.watch(dirnames, {
|
|
2038
2067
|
usePolling: poll,
|
|
2039
2068
|
cwd,
|
|
2069
|
+
ignored(path3, stats) {
|
|
2070
|
+
const relativePath = (0, import_path2.relative)(workingDir, path3);
|
|
2071
|
+
return !!stats?.isFile() && !isValidPath(relativePath);
|
|
2072
|
+
},
|
|
2040
2073
|
ignoreInitial: true,
|
|
2041
2074
|
ignorePermissionErrors: true,
|
|
2042
|
-
ignored: exclude,
|
|
2043
2075
|
awaitWriteFinish: coalesce ? { stabilityThreshold: 50, pollInterval: 10 } : false
|
|
2044
2076
|
});
|
|
2045
|
-
import_logger2.logger.debug("watch:file", `
|
|
2077
|
+
import_logger2.logger.debug("watch:file", `Watching [ ${dirnames.join(", ")} ]`);
|
|
2046
2078
|
process.once("SIGINT", async () => {
|
|
2047
2079
|
await watcher.close();
|
|
2048
2080
|
});
|
|
@@ -2274,27 +2306,27 @@ async function loadConfigAndCreateContext(options = {}) {
|
|
|
2274
2306
|
// src/parse-dependency.ts
|
|
2275
2307
|
init_cjs_shims();
|
|
2276
2308
|
var import_is_glob = __toESM(require("is-glob"));
|
|
2277
|
-
var
|
|
2309
|
+
var import_path3 = require("path");
|
|
2278
2310
|
|
|
2279
2311
|
// src/parse-glob.ts
|
|
2280
2312
|
init_cjs_shims();
|
|
2281
2313
|
var import_glob_parent = __toESM(require("glob-parent"));
|
|
2282
2314
|
function parseGlob(pattern) {
|
|
2283
|
-
let
|
|
2315
|
+
let glob = pattern;
|
|
2284
2316
|
const base = (0, import_glob_parent.default)(pattern);
|
|
2285
2317
|
if (base !== ".") {
|
|
2286
|
-
|
|
2287
|
-
if (
|
|
2288
|
-
|
|
2318
|
+
glob = pattern.substring(base.length);
|
|
2319
|
+
if (glob.charAt(0) === "/") {
|
|
2320
|
+
glob = glob.substring(1);
|
|
2289
2321
|
}
|
|
2290
2322
|
}
|
|
2291
|
-
if (
|
|
2292
|
-
|
|
2323
|
+
if (glob.substring(0, 2) === "./") {
|
|
2324
|
+
glob = glob.substring(2);
|
|
2293
2325
|
}
|
|
2294
|
-
if (
|
|
2295
|
-
|
|
2326
|
+
if (glob.charAt(0) === "/") {
|
|
2327
|
+
glob = glob.substring(1);
|
|
2296
2328
|
}
|
|
2297
|
-
return { base, glob
|
|
2329
|
+
return { base, glob };
|
|
2298
2330
|
}
|
|
2299
2331
|
|
|
2300
2332
|
// src/parse-dependency.ts
|
|
@@ -2304,13 +2336,13 @@ function parseDependency(fileOrGlob) {
|
|
|
2304
2336
|
}
|
|
2305
2337
|
let message = null;
|
|
2306
2338
|
if ((0, import_is_glob.default)(fileOrGlob)) {
|
|
2307
|
-
const { base, glob
|
|
2308
|
-
message = { type: "dir-dependency", dir: (0,
|
|
2339
|
+
const { base, glob } = parseGlob(fileOrGlob);
|
|
2340
|
+
message = { type: "dir-dependency", dir: (0, import_path3.normalize)((0, import_path3.resolve)(base)), glob };
|
|
2309
2341
|
} else {
|
|
2310
|
-
message = { type: "dependency", file: (0,
|
|
2342
|
+
message = { type: "dependency", file: (0, import_path3.normalize)((0, import_path3.resolve)(fileOrGlob)) };
|
|
2311
2343
|
}
|
|
2312
2344
|
if (message.type === "dir-dependency" && process.env.ROLLUP_WATCH === "true") {
|
|
2313
|
-
message = { type: "dependency", file: (0,
|
|
2345
|
+
message = { type: "dependency", file: (0, import_path3.normalize)((0, import_path3.resolve)(message.dir)) };
|
|
2314
2346
|
}
|
|
2315
2347
|
return message;
|
|
2316
2348
|
}
|
|
@@ -2334,7 +2366,7 @@ var Builder = class {
|
|
|
2334
2366
|
const cwd = options?.cwd ?? this.context?.config.cwd ?? process.cwd();
|
|
2335
2367
|
const configDeps = /* @__PURE__ */ new Set([
|
|
2336
2368
|
...foundDeps,
|
|
2337
|
-
...(this.context?.conf.dependencies ?? []).map((file) => (0,
|
|
2369
|
+
...(this.context?.conf.dependencies ?? []).map((file) => (0, import_path4.resolve)(cwd, file))
|
|
2338
2370
|
]);
|
|
2339
2371
|
configDeps.forEach((file) => {
|
|
2340
2372
|
this.configDependencies.add(file);
|
|
@@ -2385,7 +2417,7 @@ var Builder = class {
|
|
|
2385
2417
|
const ctx = await loadConfigAndCreateContext({ configPath, cwd });
|
|
2386
2418
|
const configDeps = (0, import_shared2.uniq)([...ctx.conf.dependencies, ...ctx.explicitDeps]);
|
|
2387
2419
|
configDeps.forEach((file) => {
|
|
2388
|
-
this.configDependencies.add((0,
|
|
2420
|
+
this.configDependencies.add((0, import_path4.resolve)(cwd || ctx.conf.config.cwd, file));
|
|
2389
2421
|
});
|
|
2390
2422
|
this.context = ctx;
|
|
2391
2423
|
return ctx;
|
|
@@ -2465,7 +2497,7 @@ var Builder = class {
|
|
|
2465
2497
|
fn(dependency);
|
|
2466
2498
|
}
|
|
2467
2499
|
for (const file of this.configDependencies) {
|
|
2468
|
-
fn({ type: "dependency", file: (0,
|
|
2500
|
+
fn({ type: "dependency", file: (0, import_path4.normalize)((0, import_path4.resolve)(file)) });
|
|
2469
2501
|
}
|
|
2470
2502
|
};
|
|
2471
2503
|
};
|
|
@@ -2587,7 +2619,7 @@ var cssgen = async (ctx, options) => {
|
|
|
2587
2619
|
// src/debug.ts
|
|
2588
2620
|
init_cjs_shims();
|
|
2589
2621
|
var import_logger8 = require("@pandacss/logger");
|
|
2590
|
-
var
|
|
2622
|
+
var import_path5 = require("path");
|
|
2591
2623
|
async function debug(ctx, options) {
|
|
2592
2624
|
const files = ctx.getFiles();
|
|
2593
2625
|
const measureTotal = import_logger8.logger.time.debug(`Done parsing ${files.length} files`);
|
|
@@ -2621,7 +2653,7 @@ async function debug(ctx, options) {
|
|
|
2621
2653
|
}
|
|
2622
2654
|
if (outdir) {
|
|
2623
2655
|
filesWithCss.push(file);
|
|
2624
|
-
const parsedPath = (0,
|
|
2656
|
+
const parsedPath = (0, import_path5.parse)(file);
|
|
2625
2657
|
const relative2 = path3.relative(ctx.config.cwd, parsedPath.dir);
|
|
2626
2658
|
const astJsonPath = `${relative2}${path3.sep}${parsedPath.name}.ast.json`.replaceAll(path3.sep, "__");
|
|
2627
2659
|
const cssPath = `${relative2}${path3.sep}${parsedPath.name}.css`.replaceAll(path3.sep, "__");
|
|
@@ -2768,7 +2800,7 @@ var import_shared3 = require("@pandacss/shared");
|
|
|
2768
2800
|
var import_fs_extra2 = __toESM(require("fs-extra"));
|
|
2769
2801
|
var import_look_it_up2 = require("look-it-up");
|
|
2770
2802
|
var import_outdent2 = require("outdent");
|
|
2771
|
-
var
|
|
2803
|
+
var import_path6 = require("path");
|
|
2772
2804
|
var import_package_manager_detector = require("package-manager-detector");
|
|
2773
2805
|
var import_prettier = __toESM(require("prettier"));
|
|
2774
2806
|
async function setupConfig(cwd, opts = {}) {
|
|
@@ -2820,7 +2852,7 @@ jsxFramework: '${jsxFramework}',` : ""}
|
|
|
2820
2852
|
syntax: '${syntax}'` : ""}
|
|
2821
2853
|
})
|
|
2822
2854
|
`;
|
|
2823
|
-
await import_fs_extra2.default.writeFile((0,
|
|
2855
|
+
await import_fs_extra2.default.writeFile((0, import_path6.join)(cwd, file), await import_prettier.default.format(content, { parser: "babel" }));
|
|
2824
2856
|
import_logger11.logger.log(import_core2.messages.thankYou());
|
|
2825
2857
|
}
|
|
2826
2858
|
}
|
|
@@ -2833,7 +2865,7 @@ module.exports = {
|
|
|
2833
2865
|
},
|
|
2834
2866
|
}
|
|
2835
2867
|
`;
|
|
2836
|
-
await import_fs_extra2.default.writeFile((0,
|
|
2868
|
+
await import_fs_extra2.default.writeFile((0, import_path6.join)(cwd, "postcss.config.cjs"), content);
|
|
2837
2869
|
}
|
|
2838
2870
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2839
2871
|
0 && (module.exports = {
|
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.7.6_postcss@8.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.5.3_typescript@5.6.2/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.7.6_postcss@8.
|
|
32
|
+
"../../node_modules/.pnpm/tsup@8.0.2_@swc+core@1.7.6_postcss@8.5.3_typescript@5.6.2/node_modules/tsup/assets/esm_shims.js"() {
|
|
33
33
|
"use strict";
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -1962,9 +1962,35 @@ var DiffEngine = class {
|
|
|
1962
1962
|
init_esm_shims();
|
|
1963
1963
|
import { logger as logger2 } from "@pandacss/logger";
|
|
1964
1964
|
import chokidar from "chokidar";
|
|
1965
|
-
import glob from "fast-glob";
|
|
1966
1965
|
import fsExtra from "fs-extra";
|
|
1967
|
-
import { dirname, extname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
1966
|
+
import { dirname, extname, isAbsolute, join as join2, relative, resolve, sep } from "path";
|
|
1967
|
+
import picomatch2 from "picomatch";
|
|
1968
|
+
import { globSync } from "tinyglobby";
|
|
1969
|
+
|
|
1970
|
+
// src/glob-dirname.ts
|
|
1971
|
+
init_esm_shims();
|
|
1972
|
+
import { join } from "path";
|
|
1973
|
+
import picomatch from "picomatch";
|
|
1974
|
+
function globDirname(globs) {
|
|
1975
|
+
const rootDirs = /* @__PURE__ */ new Set();
|
|
1976
|
+
for (const glob of globs) {
|
|
1977
|
+
const scan = picomatch.scan(glob, { tokens: true });
|
|
1978
|
+
if (!scan.isGlob) {
|
|
1979
|
+
rootDirs.add(glob);
|
|
1980
|
+
continue;
|
|
1981
|
+
}
|
|
1982
|
+
const nonGlobTokens = scan.tokens?.filter((token) => !token.isPrefix && !token.isGlob);
|
|
1983
|
+
if (nonGlobTokens?.length) {
|
|
1984
|
+
rootDirs.add(join(...nonGlobTokens.map((token) => token.value)));
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
if (rootDirs.size === 0) {
|
|
1988
|
+
return ["."];
|
|
1989
|
+
}
|
|
1990
|
+
return Array.from(rootDirs);
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
// src/node-runtime.ts
|
|
1968
1994
|
var nodeRuntime = {
|
|
1969
1995
|
cwd() {
|
|
1970
1996
|
return process.cwd();
|
|
@@ -1973,7 +1999,7 @@ var nodeRuntime = {
|
|
|
1973
1999
|
return process.env[name];
|
|
1974
2000
|
},
|
|
1975
2001
|
path: {
|
|
1976
|
-
join,
|
|
2002
|
+
join: join2,
|
|
1977
2003
|
relative,
|
|
1978
2004
|
dirname,
|
|
1979
2005
|
extname,
|
|
@@ -1981,7 +2007,7 @@ var nodeRuntime = {
|
|
|
1981
2007
|
sep,
|
|
1982
2008
|
resolve,
|
|
1983
2009
|
abs(cwd, str) {
|
|
1984
|
-
return isAbsolute(str) ? str :
|
|
2010
|
+
return isAbsolute(str) ? str : join2(cwd, str);
|
|
1985
2011
|
}
|
|
1986
2012
|
},
|
|
1987
2013
|
fs: {
|
|
@@ -1996,7 +2022,7 @@ var nodeRuntime = {
|
|
|
1996
2022
|
if (!ignore.length) {
|
|
1997
2023
|
ignore.push("**/*.d.ts");
|
|
1998
2024
|
}
|
|
1999
|
-
return
|
|
2025
|
+
return globSync(opts.include, { cwd: opts.cwd, ignore, absolute: true });
|
|
2000
2026
|
},
|
|
2001
2027
|
writeFile: fsExtra.writeFile,
|
|
2002
2028
|
writeFileSync: fsExtra.writeFileSync,
|
|
@@ -2009,15 +2035,21 @@ var nodeRuntime = {
|
|
|
2009
2035
|
watch(options) {
|
|
2010
2036
|
const { include, exclude, cwd, poll } = options;
|
|
2011
2037
|
const coalesce = poll || process.platform === "win32";
|
|
2012
|
-
const
|
|
2038
|
+
const dirnames = globDirname(include);
|
|
2039
|
+
const isValidPath = picomatch2(include, { cwd, ignore: exclude });
|
|
2040
|
+
const workingDir = cwd || process.cwd();
|
|
2041
|
+
const watcher = chokidar.watch(dirnames, {
|
|
2013
2042
|
usePolling: poll,
|
|
2014
2043
|
cwd,
|
|
2044
|
+
ignored(path3, stats) {
|
|
2045
|
+
const relativePath = relative(workingDir, path3);
|
|
2046
|
+
return !!stats?.isFile() && !isValidPath(relativePath);
|
|
2047
|
+
},
|
|
2015
2048
|
ignoreInitial: true,
|
|
2016
2049
|
ignorePermissionErrors: true,
|
|
2017
|
-
ignored: exclude,
|
|
2018
2050
|
awaitWriteFinish: coalesce ? { stabilityThreshold: 50, pollInterval: 10 } : false
|
|
2019
2051
|
});
|
|
2020
|
-
logger2.debug("watch:file", `
|
|
2052
|
+
logger2.debug("watch:file", `Watching [ ${dirnames.join(", ")} ]`);
|
|
2021
2053
|
process.once("SIGINT", async () => {
|
|
2022
2054
|
await watcher.close();
|
|
2023
2055
|
});
|
|
@@ -2255,21 +2287,21 @@ import { normalize, resolve as resolve2 } from "path";
|
|
|
2255
2287
|
init_esm_shims();
|
|
2256
2288
|
import globParent from "glob-parent";
|
|
2257
2289
|
function parseGlob(pattern) {
|
|
2258
|
-
let
|
|
2290
|
+
let glob = pattern;
|
|
2259
2291
|
const base = globParent(pattern);
|
|
2260
2292
|
if (base !== ".") {
|
|
2261
|
-
|
|
2262
|
-
if (
|
|
2263
|
-
|
|
2293
|
+
glob = pattern.substring(base.length);
|
|
2294
|
+
if (glob.charAt(0) === "/") {
|
|
2295
|
+
glob = glob.substring(1);
|
|
2264
2296
|
}
|
|
2265
2297
|
}
|
|
2266
|
-
if (
|
|
2267
|
-
|
|
2298
|
+
if (glob.substring(0, 2) === "./") {
|
|
2299
|
+
glob = glob.substring(2);
|
|
2268
2300
|
}
|
|
2269
|
-
if (
|
|
2270
|
-
|
|
2301
|
+
if (glob.charAt(0) === "/") {
|
|
2302
|
+
glob = glob.substring(1);
|
|
2271
2303
|
}
|
|
2272
|
-
return { base, glob
|
|
2304
|
+
return { base, glob };
|
|
2273
2305
|
}
|
|
2274
2306
|
|
|
2275
2307
|
// src/parse-dependency.ts
|
|
@@ -2279,8 +2311,8 @@ function parseDependency(fileOrGlob) {
|
|
|
2279
2311
|
}
|
|
2280
2312
|
let message = null;
|
|
2281
2313
|
if (isGlob(fileOrGlob)) {
|
|
2282
|
-
const { base, glob
|
|
2283
|
-
message = { type: "dir-dependency", dir: normalize(resolve2(base)), glob
|
|
2314
|
+
const { base, glob } = parseGlob(fileOrGlob);
|
|
2315
|
+
message = { type: "dir-dependency", dir: normalize(resolve2(base)), glob };
|
|
2284
2316
|
} else {
|
|
2285
2317
|
message = { type: "dependency", file: normalize(resolve2(fileOrGlob)) };
|
|
2286
2318
|
}
|
|
@@ -2743,7 +2775,7 @@ import { PandaError as PandaError2 } from "@pandacss/shared";
|
|
|
2743
2775
|
import fsExtra2 from "fs-extra";
|
|
2744
2776
|
import { lookItUpSync as lookItUpSync2 } from "look-it-up";
|
|
2745
2777
|
import { outdent as outdent2 } from "outdent";
|
|
2746
|
-
import { join as
|
|
2778
|
+
import { join as join3 } from "path";
|
|
2747
2779
|
import { detect } from "package-manager-detector";
|
|
2748
2780
|
import prettier from "prettier";
|
|
2749
2781
|
async function setupConfig(cwd, opts = {}) {
|
|
@@ -2795,7 +2827,7 @@ jsxFramework: '${jsxFramework}',` : ""}
|
|
|
2795
2827
|
syntax: '${syntax}'` : ""}
|
|
2796
2828
|
})
|
|
2797
2829
|
`;
|
|
2798
|
-
await fsExtra2.writeFile(
|
|
2830
|
+
await fsExtra2.writeFile(join3(cwd, file), await prettier.format(content, { parser: "babel" }));
|
|
2799
2831
|
logger11.log(messages.thankYou());
|
|
2800
2832
|
}
|
|
2801
2833
|
}
|
|
@@ -2808,7 +2840,7 @@ module.exports = {
|
|
|
2808
2840
|
},
|
|
2809
2841
|
}
|
|
2810
2842
|
`;
|
|
2811
|
-
await fsExtra2.writeFile(
|
|
2843
|
+
await fsExtra2.writeFile(join3(cwd, "postcss.config.cjs"), content);
|
|
2812
2844
|
}
|
|
2813
2845
|
export {
|
|
2814
2846
|
Builder,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.1",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"browserslist": "4.23.3",
|
|
36
36
|
"chokidar": "4.0.3",
|
|
37
|
-
"
|
|
37
|
+
"tinyglobby": "0.2.12",
|
|
38
38
|
"fs-extra": "11.2.0",
|
|
39
39
|
"glob-parent": "6.0.2",
|
|
40
40
|
"is-glob": "4.0.3",
|
|
@@ -44,23 +44,25 @@
|
|
|
44
44
|
"package-manager-detector": "0.1.0",
|
|
45
45
|
"perfect-debounce": "1.0.0",
|
|
46
46
|
"pkg-types": "1.0.3",
|
|
47
|
+
"picomatch": "4.0.2",
|
|
47
48
|
"pluralize": "8.0.0",
|
|
48
49
|
"postcss": "8.4.49",
|
|
49
50
|
"prettier": "3.2.5",
|
|
50
51
|
"ts-morph": "24.0.0",
|
|
51
52
|
"ts-pattern": "5.0.8",
|
|
52
53
|
"tsconfck": "3.0.2",
|
|
53
|
-
"@pandacss/config": "0.53.
|
|
54
|
-
"@pandacss/core": "0.53.
|
|
55
|
-
"@pandacss/generator": "0.53.
|
|
56
|
-
"@pandacss/reporter": "0.53.
|
|
57
|
-
"@pandacss/logger": "0.53.
|
|
58
|
-
"@pandacss/parser": "0.53.
|
|
59
|
-
"@pandacss/shared": "0.53.
|
|
60
|
-
"@pandacss/token-dictionary": "0.53.
|
|
61
|
-
"@pandacss/types": "0.53.
|
|
54
|
+
"@pandacss/config": "0.53.1",
|
|
55
|
+
"@pandacss/core": "0.53.1",
|
|
56
|
+
"@pandacss/generator": "0.53.1",
|
|
57
|
+
"@pandacss/reporter": "0.53.1",
|
|
58
|
+
"@pandacss/logger": "0.53.1",
|
|
59
|
+
"@pandacss/parser": "0.53.1",
|
|
60
|
+
"@pandacss/shared": "0.53.1",
|
|
61
|
+
"@pandacss/token-dictionary": "0.53.1",
|
|
62
|
+
"@pandacss/types": "0.53.1"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
65
|
+
"@types/picomatch": "3.0.2",
|
|
64
66
|
"@types/fs-extra": "11.0.4",
|
|
65
67
|
"@types/glob-parent": "5.1.3",
|
|
66
68
|
"@types/is-glob": "4.0.4",
|