project-path-feat #7

Merged
roman merged 16 commits from project-path-feat into master 2023-02-17 08:18:42 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit e9827fdd88 - Show all commits
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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');