sails-hook-shipwright 0.2.2 → 0.3.0
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/index.js
CHANGED
|
@@ -126,10 +126,9 @@ module.exports = function defineShipwrightHook(sails) {
|
|
|
126
126
|
const rsbuildDevServer = await rsbuild.createDevServer()
|
|
127
127
|
sails.after('hook:http:loaded', async () => {
|
|
128
128
|
sails.hooks.http.app.use(rsbuildDevServer.middlewares)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
)
|
|
129
|
+
rsbuildDevServer.connectWebSocket({
|
|
130
|
+
server: sails.hooks.http.server
|
|
131
|
+
})
|
|
133
132
|
})
|
|
134
133
|
sails.on('lifted', async () => {
|
|
135
134
|
await rsbuildDevServer.afterListen()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sails-hook-shipwright",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "The modern asset pipeline for Sails",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"hookName": "shipwright"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@rsbuild/core": "^0.
|
|
33
|
+
"@rsbuild/core": "^1.0.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@commitlint/cli": "^18.4.3",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|