Skip to content

Commit 074a0c5

Browse files
authored
Add import_map for local check operations (#28)
1 parent 16f66e4 commit 074a0c5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/pr-any.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if [ ${{ matrix.step }} == "cache" ]; then
1919
deno cache --reload mod.ts
2020
elif [ ${{ matrix.step }} == "check" ]; then
21-
deno check mod.ts || echo "Failed, but status marked as ok - failures (still) allowed"
21+
deno check --import-map=import_map.json mod.ts || echo "Failed, but status marked as ok - failures (still) allowed"
2222
else
2323
deno test --no-check test.ts
2424
fi

ci-release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async function setVersion (version: string, dir: string, level = 0): Promise<voi
102102
if (!entry.name.startsWith('.')) {
103103
if (entry.isDirectory) {
104104
await setVersion(version, `${dir}/${entry.name}`, level + 1);
105-
} else if (entry.name.endsWith('.ts') || entry.name.endsWith('.tsx') || entry.name.endsWith('.md')) {
105+
} else if (entry.name.endsWith('.ts') || entry.name.endsWith('.tsx') || entry.name.endsWith('.md') || entry.name.endsWith('import_map.json')) {
106106
const path = `${dir}/${entry.name}`;
107107
const contents = await Deno.readTextFile(path);
108108

import_map.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"imports": {
3+
"https://deno.land/x/polkadot@0.0.4-8/": "./"
4+
}
5+
}

0 commit comments

Comments
 (0)