lucid-package 0.0.2 → 0.0.3
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 +2 -0
- package/src/package.js +3 -3
package/package.json
CHANGED
package/src/editorextension.js
CHANGED
|
@@ -35,6 +35,8 @@ async function createEditorExtension(name, isInternalTesting) {
|
|
|
35
35
|
exports.createEditorExtension = createEditorExtension;
|
|
36
36
|
async function buildEditorExtension(name) {
|
|
37
37
|
process.chdir('editorextensions/' + name);
|
|
38
|
+
const cli = new WebPackCLI();
|
|
39
|
+
await cli.run(['node', 'webpack', '--mode', 'production']);
|
|
38
40
|
}
|
|
39
41
|
exports.buildEditorExtension = buildEditorExtension;
|
|
40
42
|
async function updateExtensionSDK(name) {
|
package/src/package.js
CHANGED
|
@@ -56,9 +56,9 @@ async function writePackage() {
|
|
|
56
56
|
if (parts[0] === 'editorextensions') {
|
|
57
57
|
//Can't just call the method, as the WebpackCLI class does process.exit(2) :facepalm:
|
|
58
58
|
console.log(`Compiling editor extension ${parts[1]}`);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
const cmd = process.argv[0] + ' ' + process.argv[1] + ' build-editor-extension ' + parts[1];
|
|
60
|
+
console.log(cmd);
|
|
61
|
+
console.log(child_process.execSync(cmd).toString());
|
|
62
62
|
}
|
|
63
63
|
zip.file(extension.codePath, await fs.readFile(extension.codePath));
|
|
64
64
|
}
|