@fleetbase/ember-core 0.0.5 → 0.0.7
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 +7 -1
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const resolve = require('resolve');
|
|
2
4
|
|
|
3
5
|
module.exports = {
|
|
4
6
|
name: require('./package').name,
|
|
@@ -21,6 +23,10 @@ module.exports = {
|
|
|
21
23
|
|
|
22
24
|
// import socketcluster for use in all fleetbase engines
|
|
23
25
|
// this will become globally available as socketClusterClient
|
|
24
|
-
|
|
26
|
+
let socketClusterMainPath = resolve.sync('socketcluster-client', { basedir: app.project.root });
|
|
27
|
+
let socketClusterDir = path.dirname(socketClusterMainPath);
|
|
28
|
+
let socketClusterMinPath = path.join(socketClusterDir, 'socketcluster-client.min.js');
|
|
29
|
+
|
|
30
|
+
app.import(socketClusterMinPath);
|
|
25
31
|
},
|
|
26
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fleetbase/ember-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Provides all the core services, decorators and utilities for building a Fleetbase extension for the Console.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fleetbase-extension",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"prettier": "^2.7.1",
|
|
86
86
|
"qunit": "^2.19.1",
|
|
87
87
|
"qunit-dom": "^2.0.0",
|
|
88
|
+
"resolve": "^1.22.2",
|
|
88
89
|
"webpack": "^5.74.0"
|
|
89
90
|
},
|
|
90
91
|
"overrides": {
|