@plaudit/webpack-extensions 2.40.0 → 2.41.0

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.
@@ -5,7 +5,7 @@ interface AdvancedOutputConfig {
5
5
  destination: string;
6
6
  withLegacyBlocksIn?: string | undefined;
7
7
  additionalDependencies?: string[];
8
- directoryLayout?: 'blocks' | 'extensions';
8
+ directoryLayout?: 'blocks' | 'extensions' | 'plain';
9
9
  assumeGlobalizedPlauditLibraries?: boolean;
10
10
  }
11
11
  type PlauditWordpressWebpackConfig = {
@@ -314,7 +314,7 @@ function processIndividualWebpackConfig(config, webpackConfig, sources) {
314
314
  if (variablesFilePath) {
315
315
  plugins.push(new VariablesJSMonitorPlugin_1.default(variablesFilePath));
316
316
  }
317
- const forBlocksDirectory = copyFiles && (typeof dest === 'string' || dest.directoryLayout !== 'extensions');
317
+ const forBlocksDirectory = copyFiles && (typeof dest === 'string' || (dest.directoryLayout !== 'extensions' && dest.directoryLayout !== 'plain'));
318
318
  if (forBlocksDirectory) {
319
319
  const blockJSONManagingPlugin = new BlockJSONManagingPlugin_1.default(standaloneBlocks, processingModules);
320
320
  plugins.push(blockJSONManagingPlugin);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.40.0",
3
+ "version": "2.41.0",
4
4
  "license": "UNLICENSED",
5
5
  "scripts": {
6
6
  "prepublishOnly": "rm -rf build && mkdir build && tsc",