@jant/core 0.2.10 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jant/core",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "A modern, open-source microblogging platform built on Cloudflare Workers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -15,10 +15,6 @@
15
15
  "types": "./dist/theme/index.d.ts",
16
16
  "default": "./dist/theme/index.js"
17
17
  },
18
- "./tailwind": {
19
- "types": "./dist/tailwind.d.ts",
20
- "default": "./dist/tailwind.js"
21
- },
22
18
  "./preset.css": "./src/preset.css",
23
19
  "./client": "./dist/client.js",
24
20
  "./*": "./*"
package/src/preset.css CHANGED
@@ -2,9 +2,11 @@
2
2
  * Jant Core Preset
3
3
  *
4
4
  * Includes basecoat UI and component styles.
5
- * Source scanning is handled by tailwind.config.ts in user projects.
5
+ * @source "./" tells Tailwind to scan @jant/core source files for class usage.
6
6
  */
7
7
 
8
+ @source "./";
9
+
8
10
  @import "basecoat-css";
9
11
  @import "./styles/components.css";
10
12
 
package/src/tailwind.ts DELETED
@@ -1,20 +0,0 @@
1
- /**
2
- * Tailwind CSS content path helper for @jant/core
3
- *
4
- * This helper resolves the absolute path to @jant/core source files,
5
- * working correctly with pnpm symlinks and npm installations.
6
- */
7
-
8
- import path from "path";
9
- import { createRequire } from "module";
10
-
11
- const require = createRequire(import.meta.url);
12
-
13
- /**
14
- * Returns the absolute glob path to scan @jant/core source files for Tailwind classes.
15
- * Uses require.resolve to penetrate pnpm symlinks.
16
- */
17
- export function jantContent(): string {
18
- const root = path.dirname(require.resolve("@jant/core/package.json"));
19
- return path.join(root, "src/**/*.{ts,tsx}");
20
- }