|
|
|
@ -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; |
|
|
|
|