elegance-js 1.1.0 → 1.1.2

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/dist/build.mjs CHANGED
@@ -444,8 +444,8 @@ async function respondWithErrorPage(root, pathname, code, res) {
444
444
  var __filename = fileURLToPath(import.meta.url);
445
445
  var __dirname = path.dirname(__filename);
446
446
  var packageDir = path.resolve(__dirname, "..");
447
- var clientPath = path.resolve(packageDir, "./src/client/client.ts");
448
- var watcherPath = path.resolve(packageDir, "./src/client/watcher.ts");
447
+ var clientPath = path.resolve(packageDir, "./dist/client/client.mjs");
448
+ var watcherPath = path.resolve(packageDir, "./dist/client/watcher.mjs");
449
449
  var yellow = (text) => {
450
450
  return `\x1B[38;2;238;184;68m${text}`;
451
451
  };
@@ -447,8 +447,8 @@ async function respondWithErrorPage(root, pathname, code, res) {
447
447
  var __filename = fileURLToPath(import.meta.url);
448
448
  var __dirname = path.dirname(__filename);
449
449
  var packageDir = path.resolve(__dirname, "..");
450
- var clientPath = path.resolve(packageDir, "./src/client/client.ts");
451
- var watcherPath = path.resolve(packageDir, "./src/client/watcher.ts");
450
+ var clientPath = path.resolve(packageDir, "./dist/client/client.mjs");
451
+ var watcherPath = path.resolve(packageDir, "./dist/client/watcher.mjs");
452
452
  var yellow = (text) => {
453
453
  return `\x1B[38;2;238;184;68m${text}`;
454
454
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3,6 +3,10 @@
3
3
  import fs from "fs";
4
4
  import path from "path";
5
5
 
6
+ import { execSync } from "node:child_process";
7
+
8
+ execSync("npm install tailwindcss");
9
+
6
10
  const dirs = ["pages", "public"];
7
11
  dirs.forEach((dir) => {
8
12
  if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
@@ -25,6 +29,11 @@ export const page = body({
25
29
  );
26
30
 
27
31
  export const metadata = () => head({},
32
+ link({
33
+ rel: "stylesheet",
34
+ href: "/index.css",
35
+ }),
36
+
28
37
  title({},
29
38
  "Hello World!"
30
39
  ),