Loading .github/workflows/build.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -18,7 +18,10 @@ jobs: - uses: denoland/setup-deno@v1 with: deno-version: v1.x - run: deno task cache - run: deno task test --coverage=.cov --junit-path=.test-report.xml env: RUST_BACKTRACE: ${{ runner.debug }} - uses: EnricoMi/publish-unit-test-result-action@v2 if: runner.os == 'Linux' && always() with: Loading .gitignore +1 −0 Original line number Diff line number Diff line .cov/ .cov.lcov .dnt-import-map.json .DS_Store .test-report.xml apidoc/ Loading .vscode/settings.json +1 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ "keypair", "langstr", "Lemmy", "logtape", "lume", "lumocs", "metas", Loading deno.json +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ "@fedify/fedify/x/hono": "./x/hono.ts", "@hongminhee/aitertools": "jsr:@hongminhee/aitertools@^0.6.0", "@js-temporal/polyfill": "npm:@js-temporal/polyfill@^0.4.4", "@logtape/logtape": "jsr:@logtape/logtape@^0.2.1", "@phensley/language-tag": "npm:@phensley/language-tag@^1.8.0", "@std/assert": "jsr:@std/assert@^0.220.1", "@std/async/delay": "jsr:@std/async@^0.220.1/delay", Loading Loading @@ -62,6 +63,7 @@ "npm/" ], "tasks": { "cache": "deno task codegen && deno cache mod.ts", "check": "deno task codegen && deno fmt --check && deno lint && deno check */*.ts", "codegen": "deno run --allow-read --allow-write --check codegen/main.ts vocab/ ../runtime/ > vocab/vocab.ts && deno fmt vocab/vocab.ts && deno cache vocab/vocab.ts && deno check vocab/vocab.ts", "test-without-codegen": "deno test --check --doc --allow-read --allow-write --unstable-kv --trace-leaks", Loading dnt.ts +15 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,18 @@ for (const { name } of entryPoints) { if (match && match[1] != "x") testExports.push(match[1]); } const importMap = ".dnt-import-map.json"; await Deno.writeTextFile( importMap, JSON.stringify({ imports: { ...metadata.imports, "@logtape/logtape": metadata.imports["@logtape/logtape"] .replace(/^jsr:/, "npm:"), }, }), ); await build({ package: { // package.json properties Loading @@ -44,7 +56,7 @@ await build({ }, outDir: "./npm", entryPoints, importMap: denoJson, importMap, scriptModule: false, shims: { deno: true, Loading Loading @@ -105,4 +117,6 @@ await build({ }, }); await Deno.remove(importMap); // cSpell: ignore Minhee 2KNRVU Loading
.github/workflows/build.yaml +3 −0 Original line number Diff line number Diff line Loading @@ -18,7 +18,10 @@ jobs: - uses: denoland/setup-deno@v1 with: deno-version: v1.x - run: deno task cache - run: deno task test --coverage=.cov --junit-path=.test-report.xml env: RUST_BACKTRACE: ${{ runner.debug }} - uses: EnricoMi/publish-unit-test-result-action@v2 if: runner.os == 'Linux' && always() with: Loading
.gitignore +1 −0 Original line number Diff line number Diff line .cov/ .cov.lcov .dnt-import-map.json .DS_Store .test-report.xml apidoc/ Loading
.vscode/settings.json +1 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ "keypair", "langstr", "Lemmy", "logtape", "lume", "lumocs", "metas", Loading
deno.json +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ "@fedify/fedify/x/hono": "./x/hono.ts", "@hongminhee/aitertools": "jsr:@hongminhee/aitertools@^0.6.0", "@js-temporal/polyfill": "npm:@js-temporal/polyfill@^0.4.4", "@logtape/logtape": "jsr:@logtape/logtape@^0.2.1", "@phensley/language-tag": "npm:@phensley/language-tag@^1.8.0", "@std/assert": "jsr:@std/assert@^0.220.1", "@std/async/delay": "jsr:@std/async@^0.220.1/delay", Loading Loading @@ -62,6 +63,7 @@ "npm/" ], "tasks": { "cache": "deno task codegen && deno cache mod.ts", "check": "deno task codegen && deno fmt --check && deno lint && deno check */*.ts", "codegen": "deno run --allow-read --allow-write --check codegen/main.ts vocab/ ../runtime/ > vocab/vocab.ts && deno fmt vocab/vocab.ts && deno cache vocab/vocab.ts && deno check vocab/vocab.ts", "test-without-codegen": "deno test --check --doc --allow-read --allow-write --unstable-kv --trace-leaks", Loading
dnt.ts +15 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,18 @@ for (const { name } of entryPoints) { if (match && match[1] != "x") testExports.push(match[1]); } const importMap = ".dnt-import-map.json"; await Deno.writeTextFile( importMap, JSON.stringify({ imports: { ...metadata.imports, "@logtape/logtape": metadata.imports["@logtape/logtape"] .replace(/^jsr:/, "npm:"), }, }), ); await build({ package: { // package.json properties Loading @@ -44,7 +56,7 @@ await build({ }, outDir: "./npm", entryPoints, importMap: denoJson, importMap, scriptModule: false, shims: { deno: true, Loading Loading @@ -105,4 +117,6 @@ await build({ }, }); await Deno.remove(importMap); // cSpell: ignore Minhee 2KNRVU