Skip to content

Commit

Permalink
chore: rename temporary directory (#1047)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Jun 5, 2022
1 parent 5861ae4 commit 5be8f53
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ codecov:

coverage:
status:
project:
default:
threshold: 20% # allow for X% reduction of coverage without failing
patch: false
2 changes: 1 addition & 1 deletion packages/cli/src/commands/clean.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from "node:fs/promises"

import { findRoot } from "../utils/find-root.mjs"

const TO_CLEAN = [".next", "dist", "dist-types", ".cache", "coverage", "coverage-e2e", "out", "build", ".turbo"]
const TO_CLEAN = [".next", "dist", "dist-types", ".cache", "coverage", "coverage-e2e", "out", "build", ".turbo", ".visite"]
const TO_IGNORE = ["node_modules"]

async function cleanAll() {
Expand Down
4 changes: 2 additions & 2 deletions packages/visite/src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ async function buildServer() {
await vite.build({
build: {
ssr: "node_modules/visite/app/entry-server.jsx",
outDir: ".visite-tmp/dist/",
outDir: ".visite/temp/dist/",
},
plugins: [createDisableLogPlugin()],
})
}

async function clean() {
await fs.rm(".visite-tmp/", { recursive: true, force: true })
await fs.rm(".visite/temp", { recursive: true, force: true })
}
2 changes: 1 addition & 1 deletion packages/visite/src/cli/pre-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let _render: ServerEntry | null = null
function getRender(): ServerEntry {
if (!_render) {
const require = createRequire(import.meta.url)
const render: ServerEntry = require(toAbsolute("./.visite-tmp/dist/entry-server.js")).render
const render: ServerEntry = require(toAbsolute("./.visite/temp/dist/entry-server.js")).render
_render = render
}
return _render
Expand Down

0 comments on commit 5be8f53

Please sign in to comment.