@pandacss/types 0.0.0-dev-20240303212920 → 0.0.0-dev-20240304152844

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.
Files changed (2) hide show
  1. package/dist/config.d.ts +11 -0
  2. package/package.json +2 -2
package/dist/config.d.ts CHANGED
@@ -290,6 +290,17 @@ interface CodegenOptions {
290
290
  /**
291
291
  * Whether to emit the artifacts to `node_modules` as a package.
292
292
  * @default false
293
+ * @deprecated `emitPackage` is deprecated, it's known for causing several issues:
294
+ * - bundlers sometimes eagerly cache the `node_modules`, leading to `panda codegen` updates to the `styled-system` not visible in the browser
295
+ * - auto-imports are not suggested in your IDE.
296
+ * - in some IDE the typings are not always reflected properly
297
+ *
298
+ * As alternatives, you can use:
299
+ * - relative paths instead of absolute paths (e.g. `../styled-system/css` instead of `styled-system/css`)
300
+ * - use package.json #imports and/or tsconfig path aliases (prefer package.json#imports when possible, TS 5.4 supports them by default) like `#styled-system/css` instead of `styled-system/css`
301
+ * @see https://nodejs.org/api/packages.html#subpath-imports
302
+ * - for a component library, use a dedicated workspace package (e.g. `@acme/styled-system`) and use `importMap: "@acme/styled-system"` so that Panda knows which entrypoint to extract, e.g. `import { css } from '@acme/styled-system/css'`
303
+ * @see https://panda-css.com/docs/guides/component-library
293
304
  */
294
305
  emitPackage?: boolean
295
306
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/types",
3
- "version": "0.0.0-dev-20240303212920",
3
+ "version": "0.0.0-dev-20240304152844",
4
4
  "description": "The types for css panda",
5
5
  "main": "dist/index.d.ts",
6
6
  "author": "Segun Adebayo <joseshegs@gmail.com>",
@@ -30,7 +30,7 @@
30
30
  "microdiff": "1.3.2",
31
31
  "ncp": "2.0.0",
32
32
  "pkg-types": "1.0.3",
33
- "@pandacss/extractor": "0.0.0-dev-20240303212920"
33
+ "@pandacss/extractor": "0.0.0-dev-20240304152844"
34
34
  },
35
35
  "scripts": {
36
36
  "dev": "tsx scripts/watch.ts",