Skip to content

Commit

Permalink
fix: relative paths for build not properly computed
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorstenSuckow committed May 31, 2022
1 parent ea18432 commit 4cf0cfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ export default async function init (rootDir, reqName) {

logger.info(`Created ${dest} for new installation "${siteName}"...`);

const cwd = fileURLToPath(new URL('../', import.meta.url));
const cwd = fileURLToPath(new URL('../../', import.meta.url));

const version = await getPkgInfo(`${cwd}/node_modules/@conjoon/conjoon/package.json`, "version");
const version = await getPkgInfo(`${cwd}/conjoon/package.json`, "version");
logger.info(`Copying release v${version} to ${dest}...`);
fs.copySync(`${cwd}/node_modules/@conjoon/conjoon`, dest);
fs.copySync(`${cwd}/conjoon`, dest);
shell.cd(dest);

fs.moveSync(`${dest}/package.json`, `${dest}/package.json.tmp`);
Expand Down

0 comments on commit 4cf0cfa

Please sign in to comment.