Fix dist path of hubspot blocks.

This commit is contained in:
2022-12-14 12:01:52 +02:00
parent b441ac613d
commit e9827fdd88
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export async function buildHubspotEmail(blockName) {
}); });
} }
export async function createDistFolder(blockName) { export async function createDistFolder(blockName, projectPath = '') {
const distPath = path.join('exports', 'hubspot', `${blockName}.module`); const distPath = path.join(projectPath, 'exports', 'hubspot', `${blockName}.module`);
await mkdir(distPath, {recursive: true}) await mkdir(distPath, {recursive: true})
return distPath; return distPath;
+1 -1
View File
@@ -5,7 +5,7 @@ import {buildHubspotJSONFiles, createDistFolder, handlebarsToHubl,} from "./hubs
export async function buildHubspotPage(blockName) { export async function buildHubspotPage(blockName) {
const {modulesPath, projectPath} = getConfigs(); const {modulesPath, projectPath} = getConfigs();
const distPath = await createDistFolder(blockName); const distPath = await createDistFolder(blockName, projectPath);
const srcPath = path.join(projectPath, 'src'); const srcPath = path.join(projectPath, 'src');