@positronic/cli 0.0.6 → 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.
@@ -134,7 +134,7 @@ import * as path from 'path';
134
134
  * Load the backend module based on the configuration
135
135
  */ function loadBackendModule(projectRootPath) {
136
136
  return _async_to_generator(function() {
137
- var config, backendPackage, backendModule, packagePath, localModulePath;
137
+ var config, backendPackage, backendModule, packagePath, localModulePath, backendPath;
138
138
  return _ts_generator(this, function(_state) {
139
139
  switch(_state.label){
140
140
  case 0:
@@ -158,12 +158,13 @@ import * as path from 'path';
158
158
  4
159
159
  ];
160
160
  case 2:
161
+ // Load from npm package - resolve from project's node_modules
162
+ backendPath = path.join(projectRootPath, 'node_modules', backendPackage, 'dist', 'src', 'node-index.js');
161
163
  return [
162
164
  4,
163
- import(backendPackage)
165
+ import(backendPath)
164
166
  ];
165
167
  case 3:
166
- // Load from npm package
167
168
  backendModule = _state.sent();
168
169
  _state.label = 4;
169
170
  case 4:
@@ -1 +1 @@
1
- {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../src/commands/backend.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAoD5D;;GAEG;AACH,wBAAsB,eAAe,CACnC,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,mBAAmB,CAAC,CAG9B"}
1
+ {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../src/commands/backend.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AA4D5D;;GAEG;AACH,wBAAsB,eAAe,CACnC,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,mBAAmB,CAAC,CAG9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positronic/cli",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },