@take-out/scripts 0.0.93 → 0.0.95
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 +6 -4
- package/src/build-initial.ts +76 -81
- package/src/clean.ts +21 -21
- package/src/cmd.ts +85 -0
- package/src/dev-tunnel.ts +141 -159
- package/src/ensure-port.ts +62 -70
- package/src/ensure-tunnel.ts +13 -9
- package/src/env-pull.ts +49 -47
- package/src/env-update.ts +140 -175
- package/src/exec-with-env.ts +14 -11
- package/src/helpers/args.ts +4 -4
- package/src/helpers/get-test-env.ts +5 -3
- package/src/node-version-check.ts +9 -5
- package/src/release.ts +429 -404
- package/src/sst-get-environment.ts +5 -1
- package/src/typecheck.ts +15 -16
- package/src/up.ts +361 -374
- package/src/update-changelog.ts +39 -43
- package/src/update-local-env.ts +139 -158
- package/src/wait-for-dev.ts +21 -20
|
@@ -30,5 +30,9 @@ export function getEnvironment(resourceName: string) {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
if (import.meta.main) {
|
|
33
|
-
|
|
33
|
+
const { cmd } = await import('./cmd')
|
|
34
|
+
|
|
35
|
+
await cmd`get environment variables from SST production state`.run(async () => {
|
|
36
|
+
console.info(getEnvironment(process.argv[2] || ''))
|
|
37
|
+
})
|
|
34
38
|
}
|
package/src/typecheck.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
* @description Run TypeScript compiler for type checking
|
|
5
|
-
*/
|
|
3
|
+
import { cmd } from './cmd'
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
await cmd`run typescript type checking`.run(async ({ run }) => {
|
|
6
|
+
const { sleep } = await import('@take-out/helpers')
|
|
9
7
|
|
|
10
|
-
const useTsgo = process.env.TSGO === '1'
|
|
11
|
-
const args = process.argv.slice(2)
|
|
8
|
+
const useTsgo = process.env.TSGO === '1'
|
|
9
|
+
const args = process.argv.slice(2)
|
|
12
10
|
|
|
13
|
-
// hugely cpu intensive, let the dev server start first before using:
|
|
14
|
-
if (process.env.LAZY_TYPECHECK) {
|
|
15
|
-
|
|
16
|
-
}
|
|
11
|
+
// hugely cpu intensive, let the dev server start first before using:
|
|
12
|
+
if (process.env.LAZY_TYPECHECK) {
|
|
13
|
+
await sleep(6000)
|
|
14
|
+
}
|
|
17
15
|
|
|
18
|
-
if (useTsgo) {
|
|
19
|
-
|
|
20
|
-
} else {
|
|
21
|
-
|
|
22
|
-
}
|
|
16
|
+
if (useTsgo) {
|
|
17
|
+
await run(`bun tsgo --project ./tsconfig.json --noEmit --preserveWatchOutput ${args}`)
|
|
18
|
+
} else {
|
|
19
|
+
await run(`bun tsc --project ./tsconfig.json --noEmit --preserveWatchOutput ${args}`)
|
|
20
|
+
}
|
|
21
|
+
})
|