Skip to content

Publishing package with panda #960

Answered by astahmer
kidjp85 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure if we should have this built-in (@segunadebayo) but:

  • adding a require condition on all exports of the node_modules/@asherng/styled/package.json
{
  "name": "@asherng/styled",
  "description": "This package is auto-generated by CSS Panda",
  "version": "0.0.0-744.0574159622192",
  "type": "module",
  "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",
      "imp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ashernguyen
Comment options

Answer selected by kidjp85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants