@nitronjs/framework 0.3.5 → 0.3.6
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/lib/Build/CssBuilder.js +1 -6
- package/package.json +2 -1
package/lib/Build/CssBuilder.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import crypto from "crypto";
|
|
4
|
-
import { createRequire } from "module";
|
|
5
4
|
|
|
6
5
|
class CssBuilder {
|
|
7
6
|
#cache;
|
|
@@ -92,11 +91,7 @@ class CssBuilder {
|
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
if (!this.#scanner) {
|
|
95
|
-
const
|
|
96
|
-
const req = createRequire(twNodePath);
|
|
97
|
-
const oxidePath = req.resolve("@tailwindcss/oxide");
|
|
98
|
-
const oxideUrl = "file:///" + oxidePath.replace(/\\/g, "/");
|
|
99
|
-
const { Scanner } = await import(oxideUrl);
|
|
94
|
+
const { Scanner } = await import("@tailwindcss/oxide");
|
|
100
95
|
|
|
101
96
|
this.#scanner = new Scanner({
|
|
102
97
|
sources: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitronjs/framework",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "NitronJS is a modern and extensible Node.js MVC framework built on Fastify. It focuses on clean architecture, modular structure, and developer productivity, offering built-in routing, middleware, configuration management, CLI tooling, and native React integration for scalable full-stack applications.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"njs": "./cli/njs.js"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"@fastify/static": "^8.3.0",
|
|
24
24
|
"@parcel/watcher": "^2.5.6",
|
|
25
25
|
"@tailwindcss/node": "^4.2.2",
|
|
26
|
+
"@tailwindcss/oxide": "^4.2.2",
|
|
26
27
|
"@types/react": "^19.2.7",
|
|
27
28
|
"@types/react-dom": "^19.2.3",
|
|
28
29
|
"bcrypt": "^5.1.1",
|