@take-out/scripts 0.0.29 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@take-out/scripts",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "sideEffects": false,
@@ -24,7 +24,7 @@
24
24
  "access": "public"
25
25
  },
26
26
  "dependencies": {
27
- "@take-out/helpers": "0.0.29"
27
+ "@take-out/helpers": "0.0.30"
28
28
  },
29
29
  "devDependencies": {
30
30
  "vxrn": "*"
package/src/typecheck.ts CHANGED
@@ -4,11 +4,17 @@
4
4
  * @description Run TypeScript compiler for type checking
5
5
  */
6
6
 
7
+ import { sleep } from '@take-out/helpers'
7
8
  import { run } from '@take-out/scripts/helpers/run'
8
9
 
9
10
  const useTsgo = process.env.TSGO === '1'
10
11
  const args = process.argv.slice(2)
11
12
 
13
+ // hugely cpu intensive, let the dev server start first before using:
14
+ if (process.env.LAZY_TYPECHECK) {
15
+ await sleep(6000)
16
+ }
17
+
12
18
  if (useTsgo) {
13
19
  await run(`bun tsgo --project ./tsconfig.json --noEmit --preserveWatchOutput ${args}`)
14
20
  } else {
package/src/typescript.ts DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env bun
2
-
3
- /**
4
- * @description Run TypeScript compiler for type checking
5
- */
6
-
7
- import { run } from '@take-out/scripts/helpers/run'
8
-
9
- const useTsgo = process.env.TSGO === '1'
10
- const args = process.argv.slice(2)
11
-
12
- if (useTsgo) {
13
- await run(`bun tsgo --project ./tsconfig.json --noEmit --preserveWatchOutput ${args}`)
14
- } else {
15
- await run(`tsc --project ./tsconfig.json --noEmit --preserveWatchOutput ${args}`)
16
- }