Skip to content

Commit

Permalink
fix(wip): pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Sep 1, 2024
1 parent 136234b commit 3a8c499
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
- name: Build Kit
run: |
pnpm i
export EXEC_PATH=$(pnpm node -e )
KIT=./.kit pnpm node ./build/build-ci.js
env:
KIT: ${{ env.kit_path }}
Expand Down
17 changes: 15 additions & 2 deletions scripts/test-pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,23 @@ process.env.KENV = kenvTestPath

console.log({ kitPath: kitPath() })
await rimraf(escapePathPeriods(kitPath("db", "scripts.json")))
await exec(`kit "${kitPath("setup", "setup.js")}" --no-edit`)
const { stdout: setupStdout, stderr: setupStderr } = await exec(
`kit "${kitPath("setup", "setup.js")}" --no-edit`
)
console.log({ setupStdout })
if (setupStderr) {
console.log({ setupStderr })
exit(1)
}
// console.log(
// await readFile(kenvPath("package.json"), "utf-8")
// )
await exec(`kit "${kitPath("cli", "refresh-scripts-db.js")}"`)
const { stdout: refreshScriptsDbStdout, stderr: refreshScriptsDbStderr } =
await exec(`kit "${kitPath("cli", "refresh-scripts-db.js")}"`)
console.log({ refreshScriptsDbStdout })
if (refreshScriptsDbStderr) {
console.log({ refreshScriptsDbStderr })
exit(1)
}

export {}

0 comments on commit 3a8c499

Please sign in to comment.