fix(npm): fix path of dist

This commit is contained in:
Travis Shivers 2020-09-15 23:52:11 -05:00
parent c845f39fe8
commit 250d444f0b
No known key found for this signature in database
GPG Key ID: EE4CC2891B8FCD33
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
const syncloungeSocket = require('syncloungesocket'); const syncloungeSocket = require('syncloungesocket');
const path = require('path');
const config = require('./config'); const config = require('./config');
// Using a single function to handle multiple signals // Using a single function to handle multiple signals
@ -26,6 +27,6 @@ const preStaticInjection = (router) => {
const socketConfig = syncloungeSocket.getConfig(); const socketConfig = syncloungeSocket.getConfig();
syncloungeSocket.socketServer({ syncloungeSocket.socketServer({
...socketConfig, ...socketConfig,
static_path: 'dist', static_path: path.join(__dirname, 'dist'),
preStaticInjection, preStaticInjection,
}); });