Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Update template #263

Merged
merged 6 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
if: github.repository != 'sebbo2002/js-template' && (contains(toJson(github.event.commits.*.message), '[skip ci]') == false || github.ref == 'refs/heads/main')
strategy:
matrix:
node: [18.x, 20.x, current]
node: [18.x, 20.x, 22.x, current]
steps:
- name: ☁️ Checkout Project
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
loader:
- ts-node/esm
full-trace: true
recursive: true
extension:
- ts
full-trace: true
node-option:
- import=tsx
recursive: true
565 changes: 180 additions & 385 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,24 @@
"@types/eslint__js": "^8.42.3",
"@types/express": "^4.17.21",
"@types/mocha": "^10.0.7",
"@types/node": "^22.1.0",
"@types/node": "^22.5.0",
"c8": "^10.1.2",
"eslint": "^9.8.0",
"eslint": "^9.9.0",
"eslint-plugin-jsonc": "^2.16.0",
"esm": "^3.2.25",
"license-checker": "^25.0.1",
"mocha": "^10.7.3",
"mochawesome": "^7.1.3",
"semantic-release-license": "^1.0.3",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"tsup": "^8.1.0",
"typedoc": "^0.26.3",
"tsx": "^4.16.2",
"typedoc": "^0.26.6",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0-alpha.62"
"typescript-eslint": "^8.2.0"
},
"engines": {
"node": ">=18.0.0"
"node": "18 || 20 || >=22.0.0"
},
"files": [
"/dist"
Expand All @@ -55,7 +55,7 @@
"build": "tsup",
"build-all": "./.github/workflows/build.sh",
"coverage": "c8 mocha",
"develop": "TS_NODE_TRANSPILE_ONLY=true node --no-warnings --enable-source-maps --loader ts-node/esm src/bin/start.ts",
"develop": "tsx src/bin/start.ts",
"license-check": "license-checker --production --summary",
"lint": "eslint .",
"start": "node ./dist/bin/start.js",
Expand Down
2 changes: 1 addition & 1 deletion src/bin/start.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
'use strict';

import express, {Express} from 'express';
import express, {type Express} from 'express';
import States from '../lib/states.js';
import BadgeResponse from '../lib/badge-response.js';
import {Server} from 'http';
Expand Down
4 changes: 2 additions & 2 deletions src/lib/badge-response.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

import { makeBadge } from 'badge-maker';
import { Response } from 'express';
import { Style } from './types.js';
import { type Response } from 'express';
import { type Style } from './types.js';

export default class BadgeResponse {
private readonly style: Style = 'plastic';
Expand Down
2 changes: 1 addition & 1 deletion src/lib/states.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { StateCacheItem, StateCachePipeline } from './types.js';
import { type StateCacheItem, type StateCachePipeline } from './types.js';
import Timeout = NodeJS.Timeout;

export default class GitLabStateHelper {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "es2022"
"target": "es2022",
"verbatimModuleSyntax": true
},
"exclude": [
"node_modules",
Expand Down
Loading