mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
Merge pull request #81 from teaxyz/enable-typechecks
remove symlinks and turn on type checking
This commit is contained in:
commit
0a73e3e2b9
5 changed files with 27 additions and 10 deletions
11
.github/workflows/ci-scripts.yml
vendored
11
.github/workflows/ci-scripts.yml
vendored
|
@ -10,9 +10,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# disabled until live because private repos are tedious
|
- uses: teaxyz/setup@v0
|
||||||
# - uses: teaxyz/setup@v0
|
with:
|
||||||
# with:
|
target: typecheck
|
||||||
# target: typecheck
|
env:
|
||||||
# env:
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
# GITHUB_TOKEN: ${{ github.token }}
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ scripts/ls.ts | scripts/sort.ts | scripts/build.ts
|
||||||
## Typecheck
|
## Typecheck
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
for x in scripts/*.ts src/app.ts; do
|
for x in $(find scripts -name '*.ts'); do
|
||||||
deno check --unstable --import-map=$SRCROOT/import-map.json $x
|
deno check --unstable --import-map=$SRCROOT/import-map.json $x
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../cli/import-map.json
|
|
20
import-map.json
Normal file
20
import-map.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"imports": {
|
||||||
|
"prefab": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/prefab/index.ts",
|
||||||
|
"semver": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/utils/semver.ts",
|
||||||
|
"hooks": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/hooks/index.ts",
|
||||||
|
"utils": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/utils/index.ts",
|
||||||
|
"path": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/vendor/Path.ts",
|
||||||
|
"prefab/": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/prefab/",
|
||||||
|
"types": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/types.ts",
|
||||||
|
"hooks/": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/hooks/",
|
||||||
|
"utils/": "https://raw.githubusercontent.com/teaxyz/cli/v0.17.1/src/utils/",
|
||||||
|
"deno/": "https://deno.land/std@0.156.0/",
|
||||||
|
"is_what": "https://deno.land/x/is_what@v4.1.7/src/index.ts",
|
||||||
|
"cliffy/": "https://deno.land/x/cliffy@v0.25.2/",
|
||||||
|
"s3": "https://deno.land/x/s3@0.5.0/mod.ts",
|
||||||
|
"outdent": "https://deno.land/x/outdent@v0.8.0/mod.ts",
|
||||||
|
"rimbu/": "https://deno.land/x/rimbu@0.12.3/",
|
||||||
|
"retried": "https://deno.land/x/retried@1.0.1/mod.ts"
|
||||||
|
}
|
||||||
|
}
|
|
@ -12,7 +12,7 @@ args:
|
||||||
import { S3, S3Object } from "s3"
|
import { S3, S3Object } from "s3"
|
||||||
import { Sha256 } from "deno/hash/sha256.ts"
|
import { Sha256 } from "deno/hash/sha256.ts"
|
||||||
import { readerFromStreamReader, readAll } from "deno/streams/conversion.ts"
|
import { readerFromStreamReader, readAll } from "deno/streams/conversion.ts"
|
||||||
import Path from "../src/vendor/Path.ts"
|
import Path from "path"
|
||||||
|
|
||||||
const s3 = new S3({
|
const s3 = new S3({
|
||||||
accessKeyID: Deno.env.get("AWS_ACCESS_KEY_ID")!,
|
accessKeyID: Deno.env.get("AWS_ACCESS_KEY_ID")!,
|
||||||
|
|
1
src
1
src
|
@ -1 +0,0 @@
|
||||||
../cli/src
|
|
Loading…
Reference in a new issue