lucid-package 0.0.27 → 0.0.28
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 +1 -1
- package/src/editorextension.js +3 -1
package/package.json
CHANGED
package/src/editorextension.js
CHANGED
|
@@ -9,6 +9,7 @@ const express = require("express");
|
|
|
9
9
|
const child_process = require("child_process");
|
|
10
10
|
const shapelibrary_1 = require("./shapelibrary");
|
|
11
11
|
const packagemanifest_1 = require("./packagemanifest");
|
|
12
|
+
const path = require("path");
|
|
12
13
|
const WebPackCLI = require('webpack-cli');
|
|
13
14
|
function linkInternalTestingSDK() {
|
|
14
15
|
if (!oldFs.existsSync('node_modules/lucid-extension-sdk')) {
|
|
@@ -16,8 +17,9 @@ function linkInternalTestingSDK() {
|
|
|
16
17
|
const rootSearch = 'lucid/main/extensibility/';
|
|
17
18
|
const pos = cwd.indexOf(rootSearch);
|
|
18
19
|
const sdkPath = cwd.substr(0, pos + rootSearch.length) + 'lucid-extension-sdk';
|
|
20
|
+
const relativePath = path.relative(cwd, sdkPath);
|
|
19
21
|
console.log('Using symlink for dependency on SDK for internal testing');
|
|
20
|
-
console.log(child_process.execSync(`
|
|
22
|
+
console.log(child_process.execSync(`npm install --silent --save ${relativePath}`).toString());
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
function installDependenciesIfNeeded(isInternalTesting) {
|