From 2607432abe39513deaa84f3ddcc1c75f276ae10b Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 20 Dec 2022 17:07:48 -0500 Subject: [PATCH 1/2] remove symlinks and turn on type checking --- .github/workflows/ci-scripts.yml | 11 +++++------ import-map.json | 21 ++++++++++++++++++++- scripts/fixup-checksums.ts | 2 +- src | 1 - 4 files changed, 26 insertions(+), 9 deletions(-) mode change 120000 => 100644 import-map.json delete mode 120000 src diff --git a/.github/workflows/ci-scripts.yml b/.github/workflows/ci-scripts.yml index 410e6203..fbb1eaad 100644 --- a/.github/workflows/ci-scripts.yml +++ b/.github/workflows/ci-scripts.yml @@ -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 }} diff --git a/import-map.json b/import-map.json deleted file mode 120000 index 8fd169c8..00000000 --- a/import-map.json +++ /dev/null @@ -1 +0,0 @@ -../cli/import-map.json \ No newline at end of file diff --git a/import-map.json b/import-map.json new file mode 100644 index 00000000..5371c9cb --- /dev/null +++ b/import-map.json @@ -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" + } +} \ No newline at end of file diff --git a/scripts/fixup-checksums.ts b/scripts/fixup-checksums.ts index 3eb663d3..0e3ef0f9 100755 --- a/scripts/fixup-checksums.ts +++ b/scripts/fixup-checksums.ts @@ -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")!, diff --git a/src b/src deleted file mode 120000 index bda1d203..00000000 --- a/src +++ /dev/null @@ -1 +0,0 @@ -../cli/src \ No newline at end of file From 39d83c6fc88fe4bbcbbf96fce9a0e6ce98ef3f33 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 20 Dec 2022 17:19:03 -0500 Subject: [PATCH 2/2] update script specification in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b09c383f..d5479057 100644 --- a/README.md +++ b/README.md @@ -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 ```