Skip to content

Commit

Permalink
refactor: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkeyl committed Dec 22, 2024
1 parent d710fbe commit 2e6c69e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
1 change: 0 additions & 1 deletion .ecrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"exclude": [
"config.yml",
"bun.lockb",
"CHANGELOG.md",
"README.md"
]
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@archoleat/eslint-flat-compatibility": "^1.2.1",
"@archoleat/prettier-define-config": "^1.1.0",
"@archoleat/semantic-release-define-config": "^1.2.0",
"@commitlint/cli": "^19.6.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/types": "^19.5.0",
"@semantic-release/changelog": "^6.0.3",
Expand All @@ -57,15 +57,15 @@
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^56.0.1",
"git-pull-run": "^1.4.0",
"globals": "^15.13.0",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.4.1",
"lint-staged": "^15.2.11",
"prettier": "^3.4.2",
"remark": "15.0.1",
"remark-cli": "^12.0.1",
"remark-preset-lint-consistent": "^6.0.0",
Expand Down
4 changes: 2 additions & 2 deletions specs/send-message.spec.ts → specs/message.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, test as spec } from 'bun:test';

import { sendMessage } from '#index';
import { message } from '#index';

describe('Send Message', async () => {
spec('should return "Hello!"', async () => {
await sendMessage('Hello!').then((string) => {
await message('Hello!').then((string) => {
expect(string).toEqual('Hello!');
});
});
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const sendMessage = async (string: string) => string;
const message = async (string: string) => string;

export { sendMessage };
export { message };
4 changes: 0 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"allowImportingTsExtensions": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"paths": {
"#types": ["./src/types/index.ts"]
},
"rootDir": "src",
"types": ["vitest"],
// Projects
Expand All @@ -33,6 +30,5 @@
"strict": true
},
"exclude": ["specs"],
"extends": ["./tsconfig.node.json"],
"include": ["src"]
}

0 comments on commit 2e6c69e

Please sign in to comment.