@pandacss/node 0.0.0-dev-20230623141647 → 0.0.0-dev-20230625171447
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.ts +1 -3
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -235,9 +235,7 @@ declare function parseDependency(fileOrGlob: string): Message | null;
|
|
|
235
235
|
|
|
236
236
|
declare function setupGitIgnore(ctx: PandaContext): void;
|
|
237
237
|
|
|
238
|
-
type SetupOptions = {
|
|
239
|
-
outExtension?: string;
|
|
240
|
-
jsxFramework?: string;
|
|
238
|
+
type SetupOptions = Partial<Config> & {
|
|
241
239
|
force?: boolean;
|
|
242
240
|
};
|
|
243
241
|
declare function setupConfig(cwd: string, opts?: SetupOptions): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -2723,15 +2723,15 @@ function setupGitIgnore(ctx) {
|
|
|
2723
2723
|
|
|
2724
2724
|
// src/setup-config.ts
|
|
2725
2725
|
init_cjs_shims();
|
|
2726
|
-
var import_logger8 = require("@pandacss/logger");
|
|
2727
2726
|
var import_generator2 = require("@pandacss/generator");
|
|
2727
|
+
var import_logger8 = require("@pandacss/logger");
|
|
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
2731
|
var import_path3 = require("path");
|
|
2732
2732
|
var import_preferred_pm2 = __toESM(require("preferred-pm"));
|
|
2733
2733
|
async function setupConfig(cwd, opts = {}) {
|
|
2734
|
-
const { force, outExtension, jsxFramework } = opts;
|
|
2734
|
+
const { force, outExtension, jsxFramework, syntax } = opts;
|
|
2735
2735
|
const configFile = findConfig();
|
|
2736
2736
|
const pmResult = await (0, import_preferred_pm2.default)(cwd);
|
|
2737
2737
|
const pm = pmResult?.name ?? "npm";
|
|
@@ -2767,6 +2767,9 @@ outExtension: '${outExtension}',` : ""}
|
|
|
2767
2767
|
${jsxFramework ? `
|
|
2768
2768
|
// The JSX framework to use
|
|
2769
2769
|
jsxFramework: '${jsxFramework}'` : ""}
|
|
2770
|
+
${syntax ? `
|
|
2771
|
+
// The CSS Syntax to use to use
|
|
2772
|
+
syntax: '${syntax}'` : ""}
|
|
2770
2773
|
})
|
|
2771
2774
|
`;
|
|
2772
2775
|
await (0, import_fs_extra3.writeFile)((0, import_path3.join)(cwd, file), content);
|
package/dist/index.mjs
CHANGED
|
@@ -2710,15 +2710,15 @@ function setupGitIgnore(ctx) {
|
|
|
2710
2710
|
|
|
2711
2711
|
// src/setup-config.ts
|
|
2712
2712
|
init_esm_shims();
|
|
2713
|
-
import { logger as logger8, quote } from "@pandacss/logger";
|
|
2714
2713
|
import { messages } from "@pandacss/generator";
|
|
2714
|
+
import { logger as logger8, quote } from "@pandacss/logger";
|
|
2715
2715
|
import { writeFile as writeFile3 } from "fs-extra";
|
|
2716
2716
|
import { lookItUpSync as lookItUpSync3 } from "look-it-up";
|
|
2717
2717
|
import { outdent as outdent2 } from "outdent";
|
|
2718
2718
|
import { join as join2 } from "path";
|
|
2719
2719
|
import getPackageManager2 from "preferred-pm";
|
|
2720
2720
|
async function setupConfig(cwd, opts = {}) {
|
|
2721
|
-
const { force, outExtension, jsxFramework } = opts;
|
|
2721
|
+
const { force, outExtension, jsxFramework, syntax } = opts;
|
|
2722
2722
|
const configFile = findConfig();
|
|
2723
2723
|
const pmResult = await getPackageManager2(cwd);
|
|
2724
2724
|
const pm = pmResult?.name ?? "npm";
|
|
@@ -2754,6 +2754,9 @@ outExtension: '${outExtension}',` : ""}
|
|
|
2754
2754
|
${jsxFramework ? `
|
|
2755
2755
|
// The JSX framework to use
|
|
2756
2756
|
jsxFramework: '${jsxFramework}'` : ""}
|
|
2757
|
+
${syntax ? `
|
|
2758
|
+
// The CSS Syntax to use to use
|
|
2759
|
+
syntax: '${syntax}'` : ""}
|
|
2757
2760
|
})
|
|
2758
2761
|
`;
|
|
2759
2762
|
await writeFile3(join2(cwd, file), content);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/node",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230625171447",
|
|
4
4
|
"description": "The core css panda library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"preferred-pm": "^3.0.3",
|
|
34
34
|
"ts-morph": "18.0.0",
|
|
35
35
|
"ts-pattern": "4.3.0",
|
|
36
|
-
"@pandacss/config": "0.0.0-dev-
|
|
37
|
-
"@pandacss/core": "0.0.0-dev-
|
|
38
|
-
"@pandacss/error": "0.0.0-dev-
|
|
39
|
-
"@pandacss/extractor": "0.0.0-dev-
|
|
40
|
-
"@pandacss/generator": "0.0.0-dev-
|
|
41
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
42
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
43
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
44
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
45
|
-
"@pandacss/token-dictionary": "0.0.0-dev-
|
|
46
|
-
"@pandacss/types": "0.0.0-dev-
|
|
36
|
+
"@pandacss/config": "0.0.0-dev-20230625171447",
|
|
37
|
+
"@pandacss/core": "0.0.0-dev-20230625171447",
|
|
38
|
+
"@pandacss/error": "0.0.0-dev-20230625171447",
|
|
39
|
+
"@pandacss/extractor": "0.0.0-dev-20230625171447",
|
|
40
|
+
"@pandacss/generator": "0.0.0-dev-20230625171447",
|
|
41
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230625171447",
|
|
42
|
+
"@pandacss/logger": "0.0.0-dev-20230625171447",
|
|
43
|
+
"@pandacss/parser": "0.0.0-dev-20230625171447",
|
|
44
|
+
"@pandacss/shared": "0.0.0-dev-20230625171447",
|
|
45
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230625171447",
|
|
46
|
+
"@pandacss/types": "0.0.0-dev-20230625171447"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/fs-extra": "11.0.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@types/lodash.merge": "4.6.7",
|
|
53
53
|
"@types/pluralize": "0.0.29",
|
|
54
54
|
"boxen": "^7.1.0",
|
|
55
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
55
|
+
"@pandacss/fixture": "0.0.0-dev-20230625171447"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|