@pandacss/node 0.0.0-dev-20230530090525 → 0.0.0-dev-20230530122200
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 +4 -2
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -225,9 +225,11 @@ declare function generate(config: Config, configPath?: string): Promise<void>;
|
|
|
225
225
|
|
|
226
226
|
declare function setupGitIgnore({ config: { outdir, gitignore } }: PandaContext): void;
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
type SetupOptions = {
|
|
229
|
+
outExtension?: string;
|
|
229
230
|
force?: boolean;
|
|
230
|
-
}
|
|
231
|
+
};
|
|
232
|
+
declare function setupConfig(cwd: string, opts?: SetupOptions): Promise<void>;
|
|
231
233
|
declare function setupPostcss(cwd: string): Promise<void>;
|
|
232
234
|
|
|
233
235
|
export { Builder, analyzeTokens, createContext, debugFiles, emitAndExtract, emitArtifacts, execCommand, extractCss, generate, loadConfigAndCreateContext, setupConfig, setupGitIgnore, setupPostcss, writeAnalyzeJSON };
|
package/dist/index.js
CHANGED
|
@@ -2859,7 +2859,8 @@ var import_look_it_up3 = require("look-it-up");
|
|
|
2859
2859
|
var import_outdent2 = require("outdent");
|
|
2860
2860
|
var import_path5 = require("path");
|
|
2861
2861
|
var import_preferred_pm2 = __toESM(require("preferred-pm"));
|
|
2862
|
-
async function setupConfig(cwd,
|
|
2862
|
+
async function setupConfig(cwd, opts = {}) {
|
|
2863
|
+
const { force, outExtension } = opts;
|
|
2863
2864
|
const configFile = findConfig();
|
|
2864
2865
|
const pmResult = await (0, import_preferred_pm2.default)(cwd);
|
|
2865
2866
|
const pm = pmResult?.name ?? "npm";
|
|
@@ -2876,7 +2877,9 @@ async function setupConfig(cwd, { force }) {
|
|
|
2876
2877
|
export default defineConfig({
|
|
2877
2878
|
// Whether to use css reset
|
|
2878
2879
|
preflight: true,
|
|
2879
|
-
|
|
2880
|
+
${outExtension ? `
|
|
2881
|
+
// The extension for the emitted JavaScript files
|
|
2882
|
+
outExtension: '${outExtension}',` : ""}
|
|
2880
2883
|
// Where to look for your css declarations
|
|
2881
2884
|
include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
|
|
2882
2885
|
|
package/dist/index.mjs
CHANGED
|
@@ -2848,7 +2848,8 @@ import { lookItUpSync as lookItUpSync3 } from "look-it-up";
|
|
|
2848
2848
|
import { outdent as outdent2 } from "outdent";
|
|
2849
2849
|
import { join as join2 } from "path";
|
|
2850
2850
|
import getPackageManager2 from "preferred-pm";
|
|
2851
|
-
async function setupConfig(cwd,
|
|
2851
|
+
async function setupConfig(cwd, opts = {}) {
|
|
2852
|
+
const { force, outExtension } = opts;
|
|
2852
2853
|
const configFile = findConfig();
|
|
2853
2854
|
const pmResult = await getPackageManager2(cwd);
|
|
2854
2855
|
const pm = pmResult?.name ?? "npm";
|
|
@@ -2865,7 +2866,9 @@ async function setupConfig(cwd, { force }) {
|
|
|
2865
2866
|
export default defineConfig({
|
|
2866
2867
|
// Whether to use css reset
|
|
2867
2868
|
preflight: true,
|
|
2868
|
-
|
|
2869
|
+
${outExtension ? `
|
|
2870
|
+
// The extension for the emitted JavaScript files
|
|
2871
|
+
outExtension: '${outExtension}',` : ""}
|
|
2869
2872
|
// Where to look for your css declarations
|
|
2870
2873
|
include: ["./src/**/*.{js,jsx,ts,tsx}", "./pages/**/*.{js,jsx,ts,tsx}"],
|
|
2871
2874
|
|
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-20230530122200",
|
|
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/generator": "0.0.0-dev-
|
|
40
|
-
"@pandacss/is-valid-prop": "0.0.0-dev-
|
|
41
|
-
"@pandacss/logger": "0.0.0-dev-
|
|
42
|
-
"@pandacss/parser": "0.0.0-dev-
|
|
43
|
-
"@pandacss/extractor": "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-20230530122200",
|
|
37
|
+
"@pandacss/core": "0.0.0-dev-20230530122200",
|
|
38
|
+
"@pandacss/error": "0.0.0-dev-20230530122200",
|
|
39
|
+
"@pandacss/generator": "0.0.0-dev-20230530122200",
|
|
40
|
+
"@pandacss/is-valid-prop": "0.0.0-dev-20230530122200",
|
|
41
|
+
"@pandacss/logger": "0.0.0-dev-20230530122200",
|
|
42
|
+
"@pandacss/parser": "0.0.0-dev-20230530122200",
|
|
43
|
+
"@pandacss/extractor": "0.0.0-dev-20230530122200",
|
|
44
|
+
"@pandacss/shared": "0.0.0-dev-20230530122200",
|
|
45
|
+
"@pandacss/token-dictionary": "0.0.0-dev-20230530122200",
|
|
46
|
+
"@pandacss/types": "0.0.0-dev-20230530122200"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/fs-extra": "11.0.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@types/pluralize": "0.0.29",
|
|
54
54
|
"boxen": "^7.1.0",
|
|
55
55
|
"gzip-size": "^7.0.0",
|
|
56
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
56
|
+
"@pandacss/fixture": "0.0.0-dev-20230530122200"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "tsup src/index.ts --format=cjs,esm --shims --dts",
|