Merge pull request #81 from teaxyz/enable-typechecks

remove symlinks and turn on type checking
This commit is contained in:
Max Howell 2022-12-21 08:11:12 -05:00 committed by GitHub
commit 0a73e3e2b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 10 deletions

View file

@ -10,9 +10,8 @@ jobs:
steps:
- uses: actions/checkout@v3
# disabled until live because private repos are tedious
# - uses: teaxyz/setup@v0
# with:
# target: typecheck
# env:
# GITHUB_TOKEN: ${{ github.token }}
- uses: teaxyz/setup@v0
with:
target: typecheck
env:
GITHUB_TOKEN: ${{ github.token }}

View file

@ -38,7 +38,7 @@ scripts/ls.ts | scripts/sort.ts | scripts/build.ts
## Typecheck
```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
done
```

View file

@ -1 +0,0 @@
../cli/import-map.json

20
import-map.json Normal file
View 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"
}
}

View file

@ -12,7 +12,7 @@ args:
import { S3, S3Object } from "s3"
import { Sha256 } from "deno/hash/sha256.ts"
import { readerFromStreamReader, readAll } from "deno/streams/conversion.ts"
import Path from "../src/vendor/Path.ts"
import Path from "path"
const s3 = new S3({
accessKeyID: Deno.env.get("AWS_ACCESS_KEY_ID")!,

1
src
View file

@ -1 +0,0 @@
../cli/src