@maizzle/framework 5.0.0-beta.0 → 5.0.0-beta.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/package.json +2 -3
- package/src/server/client.js +2 -1
- package/src/server/routes/hmr.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maizzle/framework",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"dev": "vitest",
|
|
26
26
|
"lint": "biome lint ./src ./test",
|
|
27
27
|
"pretest": "npm run lint",
|
|
28
|
-
"test": "vitest run --coverage"
|
|
29
|
-
"release": "npx np"
|
|
28
|
+
"test": "vitest run --coverage"
|
|
30
29
|
},
|
|
31
30
|
"repository": {
|
|
32
31
|
"type": "git",
|
package/src/server/client.js
CHANGED
package/src/server/routes/hmr.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import express from 'express'
|
|
2
2
|
const router = express.Router()
|
|
3
3
|
import fs from 'node:fs/promises'
|
|
4
|
-
import {
|
|
4
|
+
import { cwd } from 'node:process'
|
|
5
5
|
import { fileURLToPath } from 'node:url'
|
|
6
|
+
import { dirname, join, resolve } from 'pathe'
|
|
6
7
|
|
|
7
8
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
8
9
|
|
|
9
10
|
router.get('/hmr.js', async (req, res) => {
|
|
10
11
|
const morphdomScript = await fs.readFile(
|
|
11
|
-
|
|
12
|
+
resolve(cwd(), 'node_modules/morphdom/dist/morphdom-umd.js'),
|
|
12
13
|
'utf8'
|
|
13
14
|
)
|
|
14
15
|
|