Skip to content

Commit

Permalink
fix ci, disable strict path type checks by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Jul 16, 2023
1 parent 3ac6b42 commit a3e4c86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to GitHub Pages
name: Build and Test

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions quartz/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ import { trace } from './trace'
// └────────────┤ MD File ├─────┴─────────────────┘
// └─────────┘

const STRICT_TYPE_CHECKS = true
const HARD_EXIT_ON_FAIL = true
const STRICT_TYPE_CHECKS = false
const HARD_EXIT_ON_FAIL = false

function conditionCheck<T>(name: string, label: 'pre' | 'post', s: T, chk: (x: any) => x is T) {
if (STRICT_TYPE_CHECKS && !chk(s)) {
Expand Down

0 comments on commit a3e4c86

Please sign in to comment.