Replies: 1 comment
-
I am using
I've found a weird method of hacking this using Panda CLI. I'm pretty sure this approach is not really great but I'm not sure of alternatives. All the examples I've seen are using
import { defineConfig } from '@pandacss/dev'
import preset from '@pandacss/preset-panda'
import presetPanda from 'panda-preset'
export default defineConfig({
presets: [presetPanda, preset],
// Whether to use css reset
// preflight: true,
// Where to look for your css declarations
include: [
'../../apps/frontend/pages/**/*.{js,jsx,ts,tsx}',
'../../apps/frontend/containers/**/*.{js,jsx,ts,tsx}',
'../../apps/frontend/components/**/*.{js,jsx,ts,tsx}',
'../../apps/frontend/layouts/**/*.{js,jsx,ts,tsx}',
'../../packages/panda-preset/src/**/*.tsx',
'../../packages/plaace-storybook/src/**/*.{js,jsx,ts,tsx}',
'../../packages/panda-preset/src/**/*.ts*',
],
// Files to exclude
exclude: [],
// The output directory for your css system
outdir: '.',
jsxFramework: 'react',
})
"exports": {
"./css": {
"types": "./css/index.d.ts",
"require": "./css/index.mjs",
"import": "./css/index.mjs"
},
"./jsx": {
"types": "./jsx/index.d.ts",
"require": "./jsx/index.mjs",
"import": "./jsx/index.mjs"
},
"./patterns": {
"types": "./patterns/index.d.ts",
"require": "./patterns/index.mjs",
"import": "./patterns/index.mjs"
},
"./recipes": {
"types": "./recipes/index.d.ts",
"require": "./recipes/index.mjs",
"import": "./recipes/index.mjs"
},
"./tokens": {
"types": "./tokens/index.d.ts",
"require": "./tokens/index.mjs",
"import": "./tokens/index.mjs"
},
"./types": {
"types": "./types/index.d.ts"
},
"./styles.css": "./styles.css"
},
"license": "MIT",
"scripts": {
"codegen": "panda codegen",
"build": "panda",
"dev": "panda --watch"
},
"build": {
"outputs": [".next/**", "!.next/cache/**", "styles.css"],
"dependsOn": ["^build"]
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ref: #791
Currently,
emitPackage
creates a file in thenode_modules
folder.I can't use the
node_modules
folder because I have a monorepo and I'm using yarn berry.If you can make it an internal package of the monorepo when i use panda with
emitPackage
.I think that generally codebases using
emitPackage
are located in a monorepo.If this assumption is correct, it seems that using Panda would provide consistency in terms of packaging.
Beta Was this translation helpful? Give feedback.
All reactions