@pandacss/node 0.3.0 → 0.3.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/LICENSE.md +1 -1
- package/dist/index.js +18 -18
- package/dist/index.mjs +3 -3
- package/package.json +14 -13
package/LICENSE.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -782,7 +782,7 @@ var import_error = require("@pandacss/error");
|
|
|
782
782
|
var import_logger4 = require("@pandacss/logger");
|
|
783
783
|
var import_fs = require("fs");
|
|
784
784
|
var import_fs_extra2 = require("fs-extra");
|
|
785
|
-
var
|
|
785
|
+
var import_path2 = require("path");
|
|
786
786
|
|
|
787
787
|
// src/config.ts
|
|
788
788
|
init_cjs_shims();
|
|
@@ -841,7 +841,7 @@ var import_logger2 = require("@pandacss/logger");
|
|
|
841
841
|
var import_chokidar = __toESM(require("chokidar"));
|
|
842
842
|
var import_fast_glob = __toESM(require("fast-glob"));
|
|
843
843
|
var import_fs_extra = require("fs-extra");
|
|
844
|
-
var
|
|
844
|
+
var import_pathe = require("pathe");
|
|
845
845
|
var nodeRuntime = {
|
|
846
846
|
cwd() {
|
|
847
847
|
return process.cwd();
|
|
@@ -850,14 +850,14 @@ var nodeRuntime = {
|
|
|
850
850
|
return process.env[name];
|
|
851
851
|
},
|
|
852
852
|
path: {
|
|
853
|
-
join:
|
|
854
|
-
relative:
|
|
855
|
-
dirname:
|
|
856
|
-
extname:
|
|
857
|
-
isAbsolute:
|
|
858
|
-
sep:
|
|
853
|
+
join: import_pathe.join,
|
|
854
|
+
relative: import_pathe.relative,
|
|
855
|
+
dirname: import_pathe.dirname,
|
|
856
|
+
extname: import_pathe.extname,
|
|
857
|
+
isAbsolute: import_pathe.isAbsolute,
|
|
858
|
+
sep: import_pathe.sep,
|
|
859
859
|
abs(cwd, str) {
|
|
860
|
-
return (0,
|
|
860
|
+
return (0, import_pathe.isAbsolute)(str) ? str : (0, import_pathe.join)(cwd, str);
|
|
861
861
|
}
|
|
862
862
|
},
|
|
863
863
|
fs: {
|
|
@@ -2360,7 +2360,7 @@ async function extractCss(ctx) {
|
|
|
2360
2360
|
// src/parse-dependency.ts
|
|
2361
2361
|
init_cjs_shims();
|
|
2362
2362
|
var import_is_glob = __toESM(require("is-glob"));
|
|
2363
|
-
var
|
|
2363
|
+
var import_path = require("path");
|
|
2364
2364
|
|
|
2365
2365
|
// src/parse-glob.ts
|
|
2366
2366
|
init_cjs_shims();
|
|
@@ -2391,9 +2391,9 @@ function parseDependency(fileOrGlob) {
|
|
|
2391
2391
|
let message = null;
|
|
2392
2392
|
if ((0, import_is_glob.default)(fileOrGlob)) {
|
|
2393
2393
|
const { base, glob: glob2 } = parseGlob(fileOrGlob);
|
|
2394
|
-
message = { type: "dir-dependency", dir: (0,
|
|
2394
|
+
message = { type: "dir-dependency", dir: (0, import_path.resolve)(base), glob: glob2 };
|
|
2395
2395
|
} else {
|
|
2396
|
-
message = { type: "dependency", file: (0,
|
|
2396
|
+
message = { type: "dependency", file: (0, import_path.resolve)(fileOrGlob) };
|
|
2397
2397
|
}
|
|
2398
2398
|
if (message.type === "dir-dependency" && process.env.ROLLUP_WATCH === "true") {
|
|
2399
2399
|
message = { type: "dependency", file: message.dir };
|
|
@@ -2454,8 +2454,8 @@ var Builder = class {
|
|
|
2454
2454
|
configPath,
|
|
2455
2455
|
depsModifiedMap: deps.modifiedMap
|
|
2456
2456
|
});
|
|
2457
|
-
const
|
|
2458
|
-
await
|
|
2457
|
+
const ctx = this.context;
|
|
2458
|
+
await ctx.hooks.callHook("config:change", ctx.config);
|
|
2459
2459
|
}
|
|
2460
2460
|
const cache = configCache.get(configPath);
|
|
2461
2461
|
if (cache) {
|
|
@@ -2554,7 +2554,7 @@ var Builder = class {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
2556
|
for (const file of ctx.dependencies) {
|
|
2557
|
-
fn({ type: "dependency", file: (0,
|
|
2557
|
+
fn({ type: "dependency", file: (0, import_path2.resolve)(file) });
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
2560
|
};
|
|
@@ -2728,7 +2728,7 @@ var import_generator2 = require("@pandacss/generator");
|
|
|
2728
2728
|
var import_fs_extra3 = require("fs-extra");
|
|
2729
2729
|
var import_look_it_up3 = require("look-it-up");
|
|
2730
2730
|
var import_outdent2 = require("outdent");
|
|
2731
|
-
var
|
|
2731
|
+
var import_path3 = require("path");
|
|
2732
2732
|
var import_preferred_pm2 = __toESM(require("preferred-pm"));
|
|
2733
2733
|
async function setupConfig(cwd, opts = {}) {
|
|
2734
2734
|
const { force, outExtension, jsxFramework } = opts;
|
|
@@ -2769,7 +2769,7 @@ outExtension: '${outExtension}',` : ""}
|
|
|
2769
2769
|
jsxFramework: '${jsxFramework}'` : ""}
|
|
2770
2770
|
})
|
|
2771
2771
|
`;
|
|
2772
|
-
await (0, import_fs_extra3.writeFile)((0,
|
|
2772
|
+
await (0, import_fs_extra3.writeFile)((0, import_path3.join)(cwd, file), content);
|
|
2773
2773
|
import_logger8.logger.log(import_generator2.messages.thankYou());
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
@@ -2782,7 +2782,7 @@ module.exports = {
|
|
|
2782
2782
|
},
|
|
2783
2783
|
}
|
|
2784
2784
|
`;
|
|
2785
|
-
await (0, import_fs_extra3.writeFile)((0,
|
|
2785
|
+
await (0, import_fs_extra3.writeFile)((0, import_path3.join)(cwd, "postcss.config.cjs"), content);
|
|
2786
2786
|
}
|
|
2787
2787
|
|
|
2788
2788
|
// src/ship-files.ts
|
package/dist/index.mjs
CHANGED
|
@@ -828,7 +828,7 @@ import {
|
|
|
828
828
|
writeFile as writeFile2,
|
|
829
829
|
writeFileSync
|
|
830
830
|
} from "fs-extra";
|
|
831
|
-
import { dirname, extname, isAbsolute, join, relative, sep } from "
|
|
831
|
+
import { dirname, extname, isAbsolute, join, relative, sep } from "pathe";
|
|
832
832
|
var nodeRuntime = {
|
|
833
833
|
cwd() {
|
|
834
834
|
return process.cwd();
|
|
@@ -2441,8 +2441,8 @@ var Builder = class {
|
|
|
2441
2441
|
configPath,
|
|
2442
2442
|
depsModifiedMap: deps.modifiedMap
|
|
2443
2443
|
});
|
|
2444
|
-
const
|
|
2445
|
-
await
|
|
2444
|
+
const ctx = this.context;
|
|
2445
|
+
await ctx.hooks.callHook("config:change", ctx.config);
|
|
2446
2446
|
}
|
|
2447
2447
|
const cache = configCache.get(configPath);
|
|
2448
2448
|
if (cache) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,23 +26,24 @@
|
|
|
26
26
|
"lodash.merge": "4.6.2",
|
|
27
27
|
"look-it-up": "2.1.0",
|
|
28
28
|
"outdent": " ^0.8.0",
|
|
29
|
+
"pathe": "^1.1.1",
|
|
29
30
|
"pkg-types": "1.0.3",
|
|
30
31
|
"pluralize": "8.0.0",
|
|
31
32
|
"postcss": "8.4.24",
|
|
32
33
|
"preferred-pm": "^3.0.3",
|
|
33
34
|
"ts-morph": "18.0.0",
|
|
34
35
|
"ts-pattern": "4.3.0",
|
|
35
|
-
"@pandacss/config": "0.3.
|
|
36
|
-
"@pandacss/core": "0.3.
|
|
37
|
-
"@pandacss/error": "0.3.
|
|
38
|
-
"@pandacss/extractor": "0.3.
|
|
39
|
-
"@pandacss/generator": "0.3.
|
|
40
|
-
"@pandacss/is-valid-prop": "0.3.
|
|
41
|
-
"@pandacss/logger": "0.3.
|
|
42
|
-
"@pandacss/parser": "0.3.
|
|
43
|
-
"@pandacss/shared": "0.3.
|
|
44
|
-
"@pandacss/token-dictionary": "0.3.
|
|
45
|
-
"@pandacss/types": "0.3.
|
|
36
|
+
"@pandacss/config": "0.3.2",
|
|
37
|
+
"@pandacss/core": "0.3.2",
|
|
38
|
+
"@pandacss/error": "0.3.2",
|
|
39
|
+
"@pandacss/extractor": "0.3.2",
|
|
40
|
+
"@pandacss/generator": "0.3.2",
|
|
41
|
+
"@pandacss/is-valid-prop": "0.3.2",
|
|
42
|
+
"@pandacss/logger": "0.3.2",
|
|
43
|
+
"@pandacss/parser": "0.3.2",
|
|
44
|
+
"@pandacss/shared": "0.3.2",
|
|
45
|
+
"@pandacss/token-dictionary": "0.3.2",
|
|
46
|
+
"@pandacss/types": "0.3.2"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/fs-extra": "11.0.1",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"@types/lodash.merge": "4.6.7",
|
|
52
53
|
"@types/pluralize": "0.0.29",
|
|
53
54
|
"boxen": "^7.1.0",
|
|
54
|
-
"@pandacss/fixture": "0.3.
|
|
55
|
+
"@pandacss/fixture": "0.3.2"
|
|
55
56
|
},
|
|
56
57
|
"scripts": {
|
|
57
58
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|