Skip to content

Commit

Permalink
fixup! build: use deno and deno2node
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Nov 14, 2023
1 parent c1c3bbf commit 59daa28
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ jobs:
- run: deno test

npm:
name: Publish on NPM
name: Node.js Package
runs-on: ubuntu-latest
needs: [denofmt-and-lint, test]
permissions:
contents: write
id-token: write
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
/*-*.*.*.tgz
dist
node_modules
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

28 changes: 28 additions & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,36 @@
{
// https://deno.land/manual/getting_started/configuration_file
"lock": false,
// https://deno.land/manual/advanced/typescript/configuration
// https://www.typescriptlang.org/tsconfig/
"compilerOptions": {
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"useUnknownInCatchVariables": true
},
"fmt": {
"useTabs": true
},
"lint": {
"rules": {
// https://lint.deno.land/?all=on
"include": [
"default-param-last",
"eqeqeq",
"explicit-module-boundary-types",
"no-await-in-loop",
"no-eval",
"no-non-null-asserted-optional-chain",
"no-non-null-assertion",
"no-sparse-arrays"
]
}
},
"exclude": [
"./dist/",
"./node_modules/"
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
"markdownv2"
],
"license": "MIT",
"repository": "EdJoPaTo/telegram-format",
"repository": {
"type": "git",
"url": "https://github.com/EdJoPaTo/telegram-format.git"
},
"author": {
"name": "EdJoPaTo",
"email": "telegram-format-npm-package@edjopato.de",
"email": "telegram-format-typescript-package@edjopato.de",
"url": "https://edjopato.de"
},
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions source/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# telegram_format

See the [README on GitHub](https://github.com/EdJoPaTo/telegram-format#readme)
for more information on this package.
2 changes: 2 additions & 0 deletions source/deps.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { assertEquals } from "https://deno.land/std@0.206.0/assert/assert_equals.ts";
export { assertThrows } from "https://deno.land/std@0.206.0/assert/assert_throws.ts";
2 changes: 1 addition & 1 deletion source/html.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.206.0/assert/mod.ts";
import { assertEquals } from "./deps.test.ts";
import { html as format } from "./html.ts";

Deno.test("bold", () => {
Expand Down
5 changes: 1 addition & 4 deletions source/markdown.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
assertEquals,
assertThrows,
} from "https://deno.land/std@0.206.0/assert/mod.ts";
import { assertEquals, assertThrows } from "./deps.test.ts";
import { markdown as format } from "./markdown.ts";

Deno.test("bold", () => {
Expand Down
2 changes: 1 addition & 1 deletion source/markdownv2.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from "https://deno.land/std@0.206.0/assert/mod.ts";
import { assertEquals } from "./deps.test.ts";
import { markdownv2 as format } from "./markdownv2.ts";

Deno.test("bold", () => {
Expand Down

0 comments on commit 59daa28

Please sign in to comment.