Skip to content

Commit

Permalink
Refactor process.cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
tkcranny committed Nov 1, 2024
1 parent 1791dac commit a3a003f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cli/src/utils/scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,18 @@ const createScaffoldingContext = ({
preventOverwrite,
}) => {
const key = nounToKey(noun);

const indexFileResolved = path.join(process.cwd(), indexFileLocal);
const cwd = process.cwd();
const indexFileResolved = path.join(cwd, indexFileLocal);
const actionFileResolved = `${path.join(
process.cwd(),
cwd,
actionDirLocal,
key
)}.${language}`;
const actionFileResolvedStem = path.join(process.cwd(), actionDirLocal, key);
const actionFileResolvedStem = path.join(cwd, actionDirLocal, key);
const actionFileLocal = `${path.join(actionDirLocal, key)}.${language}`;
const actionFileLocalStem = path.join(actionDirLocal, key);
const testFileResolved = `${path.join(
process.cwd(),
cwd,
testDirLocal,
key
)}.test.${language}`;
Expand Down

0 comments on commit a3a003f

Please sign in to comment.