diff --git a/packages/app-cli/tests/support/plugins/codemirror_content_script/webpack.config.js b/packages/app-cli/tests/support/plugins/codemirror_content_script/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/codemirror_content_script/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/codemirror_content_script/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/content_script/webpack.config.js b/packages/app-cli/tests/support/plugins/content_script/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/content_script/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/content_script/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/dialog/webpack.config.js b/packages/app-cli/tests/support/plugins/dialog/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/dialog/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/dialog/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/editor_context_menu/webpack.config.js b/packages/app-cli/tests/support/plugins/editor_context_menu/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/editor_context_menu/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/editor_context_menu/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/events/webpack.config.js b/packages/app-cli/tests/support/plugins/events/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/events/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/events/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/jpl_test/webpack.config.js b/packages/app-cli/tests/support/plugins/jpl_test/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/jpl_test/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/jpl_test/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/json_export/webpack.config.js b/packages/app-cli/tests/support/plugins/json_export/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/json_export/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/json_export/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/menu/webpack.config.js b/packages/app-cli/tests/support/plugins/menu/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/menu/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/menu/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/multi_selection/webpack.config.js b/packages/app-cli/tests/support/plugins/multi_selection/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/multi_selection/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/multi_selection/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/post_messages/webpack.config.js b/packages/app-cli/tests/support/plugins/post_messages/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/post_messages/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/post_messages/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/register_command/webpack.config.js b/packages/app-cli/tests/support/plugins/register_command/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/register_command/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/register_command/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/selected_text/webpack.config.js b/packages/app-cli/tests/support/plugins/selected_text/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/selected_text/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/selected_text/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/settings/webpack.config.js b/packages/app-cli/tests/support/plugins/settings/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/settings/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/settings/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/toc/webpack.config.js b/packages/app-cli/tests/support/plugins/toc/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/toc/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/toc/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/app-cli/tests/support/plugins/withExternalModules/webpack.config.js b/packages/app-cli/tests/support/plugins/withExternalModules/webpack.config.js index ec6c21ff26..47eafec065 100644 --- a/packages/app-cli/tests/support/plugins/withExternalModules/webpack.config.js +++ b/packages/app-cli/tests/support/plugins/withExternalModules/webpack.config.js @@ -233,7 +233,7 @@ function main(processArgv) { const configs = { // Builds the main src/index.ts and copy the extra content from /src to // /dist including scripts, CSS and any other asset. - buildMain: pluginConfig, + buildMain: [pluginConfig], // Builds the extra scripts as defined in plugin.config.json. When doing // so, some JavaScript files that were copied in the previous might be @@ -247,7 +247,7 @@ function main(processArgv) { // run without this. So we give it an entry that we know is going to // exist and output in the publish dir. Then the plugin will delete this // temporary file before packaging the plugin. - createArchive: createArchiveConfig, + createArchive: [createArchiveConfig], }; // If we are running the first config step, we clean up and create the build @@ -270,4 +270,10 @@ try { process.exit(1); } +if (!exportedConfigs.length) { + // Nothing to do - for example where there are no external scripts to + // compile. + process.exit(0); +} + module.exports = exportedConfigs; diff --git a/packages/generator-joplin/package.json b/packages/generator-joplin/package.json index 871f75b81d..db83db102b 100644 --- a/packages/generator-joplin/package.json +++ b/packages/generator-joplin/package.json @@ -34,4 +34,4 @@ "repository": "https://github.com/laurent22/generator-joplin", "license": "MIT", "private": true -} \ No newline at end of file +}