@bhooai/nexus-postcss 2.0.8 → 2.0.11

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/package.json +2 -2
  2. package/src/plugins.js +9 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bhooai/nexus-postcss",
3
- "version": "2.0.8",
4
- "description": "Opinionated PostCSS preset for BhooAI Nexus apps — Tailwind, nesting, future CSS, autoprefixing, and minification in one curated pipeline.",
3
+ "version": "2.0.11",
4
+ "description": "Opinionated PostCSS preset for BhooAI Nexus apps Tailwind, nesting, future CSS, autoprefixing, and minification in one curated pipeline.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "types": "./src/index.js",
package/src/plugins.js CHANGED
@@ -9,7 +9,15 @@ import cssnano from 'cssnano';
9
9
  import postcssLightningcss from 'postcss-lightningcss';
10
10
 
11
11
  export function createPreset(options = {}) {
12
- const DEFAULT_CONTENT = ['./index.html', './src/**/*.{ts,tsx}', '../../node_modules/@bhooai/nexus-admin/src/**/*.{ts,tsx,js}'];
12
+ const DEFAULT_CONTENT = [
13
+ './index.html',
14
+ './src/**/*.{ts,tsx}',
15
+ // Package-only admin: include the published @bhooai/nexus-admin source so Tailwind does not purge admin-* classes.
16
+ // Covers hoisted (workspaces) and isolated (apps/admin/node_modules) installs.
17
+ '../../node_modules/@bhooai/nexus-admin/src/**/*.{ts,tsx,js}',
18
+ './node_modules/@bhooai/nexus-admin/src/**/*.{ts,tsx,js}',
19
+ '../../../node_modules/@bhooai/nexus-admin/src/**/*.{ts,tsx,js}',
20
+ ];
13
21
  const PRESET_ENV_STAGES = ['stage2', 'stage3', 'stage4'];
14
22
  const env = process.env.NODE_ENV ?? 'development';
15
23
  const shouldMinify = options.minify ?? env === 'production';