File tree Expand file tree Collapse file tree 5 files changed +15
-30
lines changed Expand file tree Collapse file tree 5 files changed +15
-30
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @offlegacy/git-intent-core " : patch
3
+ " git-intent " : patch
4
+ ---
5
+
6
+ chore: remove vitest and simplify package configuration
7
+
Original file line number Diff line number Diff line change 13
13
" todo-driven"
14
14
],
15
15
"license" : " MIT" ,
16
- "files" : [
17
- " dist"
18
- ],
16
+ "files" : [" dist" ],
19
17
"type" : " module" ,
20
18
"bin" : {
21
19
"git-intent" : " ./dist/index.cjs"
30
28
"start" : " node dist/index.cjs" ,
31
29
"format" : " biome format" ,
32
30
"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"
36
32
},
37
33
"pkg" : {
38
- "assets" : [
39
- " dist/**/*"
40
- ],
34
+ "assets" : [" dist/**/*" ],
41
35
"outputPath" : " build"
42
36
},
43
37
"dependencies" : {
Original file line number Diff line number Diff line change 7
7
"main" : " dist/index.cjs" ,
8
8
"module" : " dist/index.js" ,
9
9
"types" : " dist/index.d.ts" ,
10
- "files" : [
11
- " dist"
12
- ],
10
+ "files" : [" dist" ],
13
11
"scripts" : {
14
12
"dev" : " tsup --watch" ,
15
- "build" : " tsup" ,
16
- "test" : " vitest"
13
+ "build" : " tsup"
17
14
},
18
15
"dependencies" : {
19
16
"fs-extra" : " ^11.3.0" ,
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import fs from 'fs-extra';
3
3
import type { IntentionalCommit , StorageData } from '../types/intent.js' ;
4
4
import { generateId } from './generateId.js' ;
5
5
import { getPackageInfo } from './get-package-info.js' ;
6
- import { git } from './git.js' ;
7
6
import { gitRefs } from './git-refs.js' ;
7
+ import { git } from './git.js' ;
8
8
9
9
export class GitIntentionalCommitStorage {
10
10
private static instance : GitIntentionalCommitStorage ;
@@ -13,8 +13,8 @@ export class GitIntentionalCommitStorage {
13
13
private readonly GIT_DIR = '.git' ;
14
14
private gitRootCache : string | undefined ;
15
15
16
- private constructor ( ) {
17
- this . storageFilename = process . env . VITEST ? 'test_intents.json' : 'intents.json' ;
16
+ private constructor ( storageFilename = 'intents.json' ) {
17
+ this . storageFilename = storageFilename ;
18
18
}
19
19
20
20
static getInstance ( ) : GitIntentionalCommitStorage {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments