Fix dist path of hubspot blocks.
This commit is contained in:
@@ -18,8 +18,8 @@ export async function buildHubspotEmail(blockName) {
|
||||
});
|
||||
}
|
||||
|
||||
export async function createDistFolder(blockName) {
|
||||
const distPath = path.join('exports', 'hubspot', `${blockName}.module`);
|
||||
export async function createDistFolder(blockName, projectPath = '') {
|
||||
const distPath = path.join(projectPath, 'exports', 'hubspot', `${blockName}.module`);
|
||||
await mkdir(distPath, {recursive: true})
|
||||
|
||||
return distPath;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {buildHubspotJSONFiles, createDistFolder, handlebarsToHubl,} from "./hubs
|
||||
|
||||
export async function buildHubspotPage(blockName) {
|
||||
const {modulesPath, projectPath} = getConfigs();
|
||||
const distPath = await createDistFolder(blockName);
|
||||
const distPath = await createDistFolder(blockName, projectPath);
|
||||
|
||||
const srcPath = path.join(projectPath, 'src');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user