@take-out/scripts 0.0.28 → 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.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -15,11 +15,16 @@
|
|
|
15
15
|
"default": "./src/*.ts"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"lint": "biome check src",
|
|
20
|
+
"lint:fix": "biome check --write src",
|
|
21
|
+
"typecheck": "TSGO=1 tko run typecheck"
|
|
22
|
+
},
|
|
18
23
|
"publishConfig": {
|
|
19
24
|
"access": "public"
|
|
20
25
|
},
|
|
21
26
|
"dependencies": {
|
|
22
|
-
"@take-out/helpers": "0.0.
|
|
27
|
+
"@take-out/helpers": "0.0.30"
|
|
23
28
|
},
|
|
24
29
|
"devDependencies": {
|
|
25
30
|
"vxrn": "*"
|
|
@@ -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 {
|