Skip to content

Commit d21af03

Browse files
authored
chore: remove Vitest and simplify package configuration (#20)
* chore: remove vitest and simplify package configuration * chore: add changeset
1 parent fd75505 commit d21af03

File tree

5 files changed

+15
-30
lines changed

5 files changed

+15
-30
lines changed

.changeset/cute-boxes-burn.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@offlegacy/git-intent-core": patch
3+
"git-intent": patch
4+
---
5+
6+
chore: remove vitest and simplify package configuration
7+

packages/cli/package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"todo-driven"
1414
],
1515
"license": "MIT",
16-
"files": [
17-
"dist"
18-
],
16+
"files": ["dist"],
1917
"type": "module",
2018
"bin": {
2119
"git-intent": "./dist/index.cjs"
@@ -30,14 +28,10 @@
3028
"start": "node dist/index.cjs",
3129
"format": "biome format",
3230
"format:fix": "biome format --write",
33-
"pkg:build:macos": "pnpm build && pkg . --no-bytecode -t node18-macos-arm64 -o build/git-intent-macos",
34-
"test": "vitest",
35-
"test:ui": "vitest --ui"
31+
"pkg:build:macos": "pnpm build && pkg . --no-bytecode -t node18-macos-arm64 -o build/git-intent-macos"
3632
},
3733
"pkg": {
38-
"assets": [
39-
"dist/**/*"
40-
],
34+
"assets": ["dist/**/*"],
4135
"outputPath": "build"
4236
},
4337
"dependencies": {

packages/core/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@
77
"main": "dist/index.cjs",
88
"module": "dist/index.js",
99
"types": "dist/index.d.ts",
10-
"files": [
11-
"dist"
12-
],
10+
"files": ["dist"],
1311
"scripts": {
1412
"dev": "tsup --watch",
15-
"build": "tsup",
16-
"test": "vitest"
13+
"build": "tsup"
1714
},
1815
"dependencies": {
1916
"fs-extra": "^11.3.0",

packages/core/src/utils/storage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import fs from 'fs-extra';
33
import type { IntentionalCommit, StorageData } from '../types/intent.js';
44
import { generateId } from './generateId.js';
55
import { getPackageInfo } from './get-package-info.js';
6-
import { git } from './git.js';
76
import { gitRefs } from './git-refs.js';
7+
import { git } from './git.js';
88

99
export class GitIntentionalCommitStorage {
1010
private static instance: GitIntentionalCommitStorage;
@@ -13,8 +13,8 @@ export class GitIntentionalCommitStorage {
1313
private readonly GIT_DIR = '.git';
1414
private gitRootCache: string | undefined;
1515

16-
private constructor() {
17-
this.storageFilename = process.env.VITEST ? 'test_intents.json' : 'intents.json';
16+
private constructor(storageFilename = 'intents.json') {
17+
this.storageFilename = storageFilename;
1818
}
1919

2020
static getInstance(): GitIntentionalCommitStorage {

vitest.config.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)