Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tipiirai authored Jan 9, 2024
2 parents c222fab + c0c7f34 commit 36da617
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/nuekit/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export async function init({ dist, is_dev, esbuild }) {

} catch {
await fs.rm(outdir, { recursive: true, force: true })

await fs.mkdir(outdir, { recursive: true })
await fs.writeFile(latest, '')
}
Expand Down
3 changes: 1 addition & 2 deletions packages/nuekit/src/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function createSite(args) {
const raw = await read(path)
return yaml.load(raw)
} catch (e) {
if (e.errno != NOT_FOUND && e.errno!= ENOENT) {
if (e.errno != NOT_FOUND && e.errno != ENOENT) {
throw `YAML parse error in ${path}`
} else if (path == env) throw e
}
Expand Down Expand Up @@ -239,4 +239,3 @@ export async function createSite(args) {
return { ...self, dist, port, read, write, copy, getAssets }

}

0 comments on commit 36da617

Please sign in to comment.