Skip to content

Commit

Permalink
fix: update makePaths to work when no options are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Jul 31, 2024
1 parent ff7ff97 commit d7b8d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli/src/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const handler = async ({
force,
pack: packAppOutput,
}) => {
// todo: we need to infer TypeScript in build command here similar to start
const paths = makePaths(cwd)

mode = mode || (dev && 'development') || getNodeEnv() || 'production'
Expand Down
2 changes: 1 addition & 1 deletion cli/src/lib/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const findYarnLock = (base, rootDirectory) => {
return findYarnLock(path.dirname(base), rootDirectory)
}

module.exports = (cwd = process.cwd(), { typeScript }) => {
module.exports = (cwd = process.cwd(), { typeScript } = {}) => {
const base = path.resolve(cwd)
const rootDirectory = path.parse(cwd).root
const initFolder = typeScript ? 'init-typescript' : 'init'
Expand Down

0 comments on commit d7b8d14

Please sign in to comment.