screw-up 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,39 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
 
11
11
  import { Logger } from './internal.js';
12
+ /**
13
+ * Version information
14
+ */
15
+ export interface Version {
16
+ major: number;
17
+ minor?: number;
18
+ build?: number;
19
+ revision?: number;
20
+ original: string;
21
+ }
22
+ /**
23
+ * Tag information
24
+ */
25
+ export interface TagInfo {
26
+ name: string;
27
+ hash: string;
28
+ version: Version | undefined;
29
+ }
30
+ /**
31
+ * Tag cache for performance optimization
32
+ */
33
+ export interface TagCache {
34
+ commitToTags: Map<string, TagInfo[]>;
35
+ initialized: boolean;
36
+ }
12
37
  /**
13
38
  * Get cached Git metadata fetcher function
14
39
  * @param targetDir - Target directory to resolve Git metadata
@@ -1 +1 @@
1
- {"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../src/analyzer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAwxBvC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,WAAW,MAAM,EACjB,6BAA6B,OAAO,EACpC,QAAQ,MAAM,uBAaf,CAAC"}
1
+ {"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../src/analyzer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAKvC;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAaD;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IACrC,WAAW,EAAE,OAAO,CAAC;CACtB;AAyqBD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,WAAW,MAAM,EACjB,6BAA6B,OAAO,EACpC,QAAQ,MAAM,uBAaf,CAAC"}
@@ -0,0 +1,52 @@
1
+ /*!
2
+ * name: screw-up
3
+ * version: 1.6.0
4
+ * description: Simply package metadata inserter on Vite plugin
5
+ * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
+ * license: MIT
7
+ * repository.url: https://github.com/kekyo/screw-up.git
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
+ */
10
+
11
+ import { Version, TagCache } from './analyzer';
12
+ /**
13
+ * Cache manager for differential updates
14
+ * Coordinates cache operations with Git operations
15
+ */
16
+ /**
17
+ * Logger interface
18
+ */
19
+ export interface Logger {
20
+ debug: (message: string) => void;
21
+ info: (message: string) => void;
22
+ warn: (message: string) => void;
23
+ }
24
+ /**
25
+ * Cache update statistics
26
+ */
27
+ export interface CacheUpdateStats {
28
+ added: number;
29
+ deleted: number;
30
+ modified: number;
31
+ unchanged: number;
32
+ totalTags: number;
33
+ updateTime: number;
34
+ fullRebuild: boolean;
35
+ }
36
+ /**
37
+ * Load or build tag cache with differential updates
38
+ * @param repoPath - Repository path
39
+ * @param parseVersion - Function to parse version from tag name
40
+ * @param logger - Optional logger
41
+ * @returns Tag cache and statistics
42
+ */
43
+ export declare const loadOrBuildTagCache: (repoPath: string, parseVersion: (tagName: string) => Version | undefined, logger: Logger) => Promise<{
44
+ cache: TagCache;
45
+ stats: CacheUpdateStats;
46
+ }>;
47
+ /**
48
+ * Invalidate cache (force rebuild on next load)
49
+ * @param repoPath - Repository path
50
+ */
51
+ export declare const invalidateCache: (repoPath: string) => Promise<void>;
52
+ //# sourceMappingURL=cache-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-manager.d.ts","sourceRoot":"","sources":["../src/cache-manager.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAW,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAsB7D;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,cAAc,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,EACtD,QAAQ,MAAM,KACb,OAAO,CAAC;IAAE,KAAK,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,gBAAgB,CAAA;CAAE,CA0EtD,CAAC;AAuEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,IAAI,CAQpE,CAAC"}
@@ -0,0 +1,79 @@
1
+ /*!
2
+ * name: screw-up
3
+ * version: 1.6.0
4
+ * description: Simply package metadata inserter on Vite plugin
5
+ * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
+ * license: MIT
7
+ * repository.url: https://github.com/kekyo/screw-up.git
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
+ */
10
+
11
+ import { TagInfo } from './analyzer';
12
+ /**
13
+ * Pure functions for cache operations
14
+ * No side effects, fully testable
15
+ */
16
+ /**
17
+ * Tag difference result
18
+ */
19
+ export interface TagDiff {
20
+ added: string[];
21
+ deleted: string[];
22
+ unchanged: string[];
23
+ }
24
+ /**
25
+ * Calculate differences between cached tags and current tag list
26
+ * @param cachedTags - Map of commit hash to tag info array
27
+ * @param currentTagList - Current list of tag names from git
28
+ * @returns Tag difference information
29
+ */
30
+ export declare const calculateTagDiff: (cachedTags: Map<string, TagInfo[]>, currentTagList: string[]) => TagDiff;
31
+ /**
32
+ * Remove tags from cache
33
+ * @param cache - Original cache (not modified)
34
+ * @param tagNames - Tag names to remove
35
+ * @returns New cache without specified tags
36
+ */
37
+ export declare const removeTagsFromCache: (cache: Map<string, TagInfo[]>, tagNames: string[]) => Map<string, TagInfo[]>;
38
+ /**
39
+ * Add tags to cache
40
+ * @param cache - Original cache (not modified)
41
+ * @param newTags - Tags to add
42
+ * @returns New cache with added tags
43
+ */
44
+ export declare const addTagsToCache: (cache: Map<string, TagInfo[]>, newTags: TagInfo[]) => Map<string, TagInfo[]>;
45
+ /**
46
+ * Update tags in cache (remove old versions, add new ones)
47
+ * @param cache - Original cache (not modified)
48
+ * @param tagNames - Tag names to update
49
+ * @param updatedTags - New tag information
50
+ * @returns New cache with updated tags
51
+ */
52
+ export declare const updateTagsInCache: (cache: Map<string, TagInfo[]>, tagNames: string[], updatedTags: TagInfo[]) => Map<string, TagInfo[]>;
53
+ /**
54
+ * Find a tag by name in the cache
55
+ * @param cache - Cache to search
56
+ * @param tagName - Tag name to find
57
+ * @returns Tag info if found, undefined otherwise
58
+ */
59
+ export declare const findTagInCache: (cache: Map<string, TagInfo[]>, tagName: string) => TagInfo | undefined;
60
+ /**
61
+ * Get all tag names from cache
62
+ * @param cache - Cache to extract from
63
+ * @returns Array of all tag names
64
+ */
65
+ export declare const getAllTagNames: (cache: Map<string, TagInfo[]>) => string[];
66
+ /**
67
+ * Count total tags in cache
68
+ * @param cache - Cache to count
69
+ * @returns Total number of tags
70
+ */
71
+ export declare const countTags: (cache: Map<string, TagInfo[]>) => number;
72
+ /**
73
+ * Merge two caches
74
+ * @param cache1 - First cache
75
+ * @param cache2 - Second cache (takes precedence for conflicts)
76
+ * @returns Merged cache
77
+ */
78
+ export declare const mergeCaches: (cache1: Map<string, TagInfo[]>, cache2: Map<string, TagInfo[]>) => Map<string, TagInfo[]>;
79
+ //# sourceMappingURL=cache-operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-operations.d.ts","sourceRoot":"","sources":["../src/cache-operations.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;CAErB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,YAAY,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAClC,gBAAgB,MAAM,EAAE,KACvB,OA+BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAC7B,UAAU,MAAM,EAAE,KACjB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAYvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAC7B,SAAS,OAAO,EAAE,KACjB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAYvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAC5B,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAC7B,UAAU,MAAM,EAAE,EAClB,aAAa,OAAO,EAAE,KACrB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAQvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAC7B,SAAS,MAAM,KACd,OAAO,GAAG,SAQZ,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,KAAG,MAAM,EAQpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,KAAG,MAMzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GACtB,QAAQ,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAC9B,QAAQ,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,KAC7B,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAwBvB,CAAC"}
@@ -0,0 +1,67 @@
1
+ /*!
2
+ * name: screw-up
3
+ * version: 1.6.0
4
+ * description: Simply package metadata inserter on Vite plugin
5
+ * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
+ * license: MIT
7
+ * repository.url: https://github.com/kekyo/screw-up.git
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
+ */
10
+
11
+ import { TagCache, TagInfo } from './analyzer';
12
+ /**
13
+ * Cache validation information
14
+ */
15
+ interface CacheValidation {
16
+ tagListHash: string;
17
+ tagCount: number;
18
+ packedRefsMtime?: number;
19
+ refsTagsMtime?: number;
20
+ }
21
+ /**
22
+ * Cached data structure
23
+ */
24
+ interface CachedData {
25
+ version: '1.0.0';
26
+ timestamp: number;
27
+ repository: {
28
+ path: string;
29
+ };
30
+ validation: CacheValidation;
31
+ tagCache: {
32
+ commitToTags: Record<string, TagInfo[]>;
33
+ };
34
+ }
35
+ /**
36
+ * Get cache file path for a repository
37
+ */
38
+ export declare const getCachePath: (repoPath: string) => string;
39
+ /**
40
+ * Build cache validation information
41
+ */
42
+ export declare const buildCacheValidation: (repoPath: string) => Promise<CacheValidation>;
43
+ /**
44
+ * Check if cached data is still valid
45
+ */
46
+ export declare const isCacheValid: (cachedData: CachedData, repoPath: string) => Promise<boolean>;
47
+ /**
48
+ * Load cached tags from disk
49
+ */
50
+ export declare const loadCachedTags: (repoPath: string) => Promise<CachedData | null>;
51
+ /**
52
+ * Save tag cache to disk atomically
53
+ */
54
+ export declare const saveCachedTags: (repoPath: string, tagCache: TagCache, validation: CacheValidation) => Promise<void>;
55
+ /**
56
+ * Convert cached data back to Map structure
57
+ */
58
+ export declare const reconstructTagCache: (cachedData: CachedData) => TagCache;
59
+ /**
60
+ * Clean up old cache files in the cache directory
61
+ * @param currentCachePath - Path of the current cache file (to exclude from deletion)
62
+ * @param currentTimestamp - Current timestamp in milliseconds
63
+ * @returns Number of deleted files
64
+ */
65
+ export declare const cleanupOldCacheFiles: (currentCachePath: string, currentTimestamp: number) => Promise<number>;
66
+ export {};
67
+ //# sourceMappingURL=cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../src/cache.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAUpD;;GAEG;AACH,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,UAAU,UAAU;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE;QACR,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;KACzC,CAAC;CACH;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,KAAG,MAgB/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,KACf,OAAO,CAAC,eAAe,CAiCzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GACvB,YAAY,UAAU,EACtB,UAAU,MAAM,KACf,OAAO,CAAC,OAAO,CA+CjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,KACf,OAAO,CAAC,UAAU,GAAG,IAAI,CAgB3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,UAAU,MAAM,EAChB,UAAU,QAAQ,EAClB,YAAY,eAAe,KAC1B,OAAO,CAAC,IAAI,CAuCd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,YAAY,UAAU,KAAG,QAK5D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,kBAAkB,MAAM,EACxB,kBAAkB,MAAM,KACvB,OAAO,CAAC,MAAM,CAuChB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
 
11
11
  import { Logger } from './internal';
package/dist/cli.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
 
11
11
  import { Logger } from './internal';
@@ -1,18 +1,18 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
 
11
11
  export declare const name = "screw-up";
12
- export declare const version = "1.5.0";
12
+ export declare const version = "1.6.0";
13
13
  export declare const description = "Simply package metadata inserter on Vite plugin";
14
14
  export declare const author = "Kouji Matsui (@kekyo@mi.kekyo.net)";
15
15
  export declare const license = "MIT";
16
16
  export declare const repository_url = "https://github.com/kekyo/screw-up.git";
17
- export declare const git_commit_hash = "72fd5b88656bc400ba3fed500895826208e23217";
17
+ export declare const git_commit_hash = "10c04af9c9b127002592d48cbb6ec18cfe5048bb";
18
18
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -0,0 +1,68 @@
1
+ /*!
2
+ * name: screw-up
3
+ * version: 1.6.0
4
+ * description: Simply package metadata inserter on Vite plugin
5
+ * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
+ * license: MIT
7
+ * repository.url: https://github.com/kekyo/screw-up.git
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
+ */
10
+
11
+ import { TagInfo, Version } from './analyzer';
12
+ /**
13
+ * Git operations for tag management
14
+ * Handles all Git interactions
15
+ */
16
+ /**
17
+ * Tag with OID information
18
+ */
19
+ export interface TagWithOid {
20
+ name: string;
21
+ oid: string;
22
+ targetCommit?: string;
23
+ }
24
+ /**
25
+ * Get all tags with their OIDs
26
+ * @param repoPath - Repository path
27
+ * @returns Array of tags with OID information
28
+ */
29
+ export declare const getAllTagsWithOids: (repoPath: string) => Promise<TagWithOid[]>;
30
+ /**
31
+ * Resolve tag OID to commit hash
32
+ * @param repoPath - Repository path
33
+ * @param tagOid - Tag OID
34
+ * @returns Commit hash this tag points to
35
+ */
36
+ export declare const resolveTagToCommit: (repoPath: string, tagOid: string) => Promise<string>;
37
+ /**
38
+ * Get tag information for specific tags
39
+ * @param repoPath - Repository path
40
+ * @param tagNames - Tag names to get information for
41
+ * @param parseVersion - Function to parse version from tag name
42
+ * @returns Array of TagInfo
43
+ */
44
+ export declare const getTagsInfo: (repoPath: string, tagNames: string[], parseVersion: (tagName: string) => Version | undefined) => Promise<TagInfo[]>;
45
+ /**
46
+ * Build complete tag cache from repository
47
+ * @param repoPath - Repository path
48
+ * @param parseVersion - Function to parse version from tag name
49
+ * @returns Map of commit hash to TagInfo array
50
+ */
51
+ export declare const buildCompleteTagCache: (repoPath: string, parseVersion: (tagName: string) => Version | undefined) => Promise<Map<string, TagInfo[]>>;
52
+ /**
53
+ * Check if a tag has moved to a different commit
54
+ * @param repoPath - Repository path
55
+ * @param tagName - Tag name
56
+ * @param cachedCommit - Commit hash from cache
57
+ * @returns True if tag has moved
58
+ */
59
+ export declare const hasTagMoved: (repoPath: string, tagName: string, cachedCommit: string) => Promise<boolean>;
60
+ /**
61
+ * Find modified tags (tags that point to different commits)
62
+ * @param repoPath - Repository path
63
+ * @param tagNames - Tag names to check
64
+ * @param cache - Current cache
65
+ * @returns Array of modified tag names
66
+ */
67
+ export declare const findModifiedTags: (repoPath: string, tagNames: string[], cache: Map<string, TagInfo[]>) => Promise<string[]>;
68
+ //# sourceMappingURL=git-operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-operations.d.ts","sourceRoot":"","sources":["../src/git-operations.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEnD;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,MAAM,KACf,OAAO,CAAC,UAAU,EAAE,CAgBtB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,MAAM,EAChB,QAAQ,MAAM,KACb,OAAO,CAAC,MAAM,CAmBhB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,UAAU,MAAM,EAAE,EAClB,cAAc,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,KACrD,OAAO,CAAC,OAAO,EAAE,CA4BnB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,EAChB,cAAc,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,KACrD,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAkChC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GACtB,UAAU,MAAM,EAChB,SAAS,MAAM,EACf,cAAc,MAAM,KACnB,OAAO,CAAC,OAAO,CAcjB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,UAAU,MAAM,EAChB,UAAU,MAAM,EAAE,EAClB,OAAO,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,KAC5B,OAAO,CAAC,MAAM,EAAE,CAyBlB,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,17 +1,17 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
  "use strict";
11
11
  const fs = require("fs/promises");
12
12
  const fs$1 = require("fs");
13
13
  const path = require("path");
14
- const packageMetadata = require("./packageMetadata-CbqTWPYD.cjs");
14
+ const packageMetadata = require("./packageMetadata-CCW9p12u.cjs");
15
15
  const __NOOP_HANDLER = () => {
16
16
  };
17
17
  const __NOOP_RELEASABLE = {
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
 
11
11
  import { screwUp } from './vite-plugin';
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
  import { readdir, readFile, writeFile, mkdir } from "fs/promises";
11
11
  import { existsSync } from "fs";
12
12
  import { join, dirname } from "path";
13
- import { c as createConsoleLogger, n as name, g as getFetchGitMetadata, v as version, a as git_commit_hash, r as resolvePackageMetadata } from "./packageMetadata-C2Yob7-F.js";
13
+ import { c as createConsoleLogger, n as name, g as getFetchGitMetadata, v as version, a as git_commit_hash, r as resolvePackageMetadata } from "./packageMetadata-LkGK6Bjw.js";
14
14
  const __NOOP_HANDLER = () => {
15
15
  };
16
16
  const __NOOP_RELEASABLE = {
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: screw-up
3
- * version: 1.5.0
3
+ * version: 1.6.0
4
4
  * description: Simply package metadata inserter on Vite plugin
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/screw-up.git
8
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
8
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
9
9
  */
10
10
 
11
11
  import { PackageMetadata } from './types';
package/dist/main.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  /*!
3
3
  * name: screw-up
4
- * version: 1.5.0
4
+ * version: 1.6.0
5
5
  * description: Simply package metadata inserter on Vite plugin
6
6
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
7
7
  * license: MIT
8
8
  * repository.url: https://github.com/kekyo/screw-up.git
9
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
9
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
10
10
  */
11
11
  "use strict";
12
12
  const path = require("path");
@@ -17,7 +17,7 @@ const os = require("os");
17
17
  const stream = require("stream");
18
18
  const zlib = require("zlib");
19
19
  const promises = require("stream/promises");
20
- const packageMetadata = require("./packageMetadata-CbqTWPYD.cjs");
20
+ const packageMetadata = require("./packageMetadata-CCW9p12u.cjs");
21
21
  /*!
22
22
  * name: tar-vern
23
23
  * version: 1.3.0
@@ -1159,7 +1159,7 @@ const publishCommand = async (args, logger2) => {
1159
1159
  }
1160
1160
  };
1161
1161
  const showHelp = async () => {
1162
- const { author, license, repository_url, version, git_commit_hash } = await Promise.resolve().then(() => require("./packageMetadata-CbqTWPYD.cjs")).then((n) => n.packageMetadata);
1162
+ const { author, license, repository_url, version, git_commit_hash } = await Promise.resolve().then(() => require("./packageMetadata-CCW9p12u.cjs")).then((n) => n.packageMetadata);
1163
1163
  console.info(`screw-up [${version}-${git_commit_hash}]
1164
1164
  Easy package metadata inserter CLI
1165
1165
  Copyright (c) ${author}
package/dist/main.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  /*!
3
3
  * name: screw-up
4
- * version: 1.5.0
4
+ * version: 1.6.0
5
5
  * description: Simply package metadata inserter on Vite plugin
6
6
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
7
7
  * license: MIT
8
8
  * repository.url: https://github.com/kekyo/screw-up.git
9
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
9
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
10
10
  */
11
11
 
12
12
  export {};
package/dist/main.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  /*!
3
3
  * name: screw-up
4
- * version: 1.5.0
4
+ * version: 1.6.0
5
5
  * description: Simply package metadata inserter on Vite plugin
6
6
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
7
7
  * license: MIT
8
8
  * repository.url: https://github.com/kekyo/screw-up.git
9
- * git.commit.hash: 72fd5b88656bc400ba3fed500895826208e23217
9
+ * git.commit.hash: 10c04af9c9b127002592d48cbb6ec18cfe5048bb
10
10
  */
11
11
  import { join, dirname, resolve } from "path";
12
12
  import { createWriteStream, createReadStream, existsSync } from "fs";
@@ -16,7 +16,7 @@ import { tmpdir } from "os";
16
16
  import { Readable } from "stream";
17
17
  import { createGunzip, createGzip } from "zlib";
18
18
  import { pipeline } from "stream/promises";
19
- import { b as resolveRawPackageJsonObject, f as findWorkspaceRoot, d as collectWorkspaceSiblings, e as replacePeerDependenciesWildcards, g as getFetchGitMetadata, c as createConsoleLogger, n as name } from "./packageMetadata-C2Yob7-F.js";
19
+ import { b as resolveRawPackageJsonObject, f as findWorkspaceRoot, d as collectWorkspaceSiblings, e as replacePeerDependenciesWildcards, g as getFetchGitMetadata, c as createConsoleLogger, n as name } from "./packageMetadata-LkGK6Bjw.js";
20
20
  /*!
21
21
  * name: tar-vern
22
22
  * version: 1.3.0
@@ -1158,7 +1158,7 @@ const publishCommand = async (args, logger2) => {
1158
1158
  }
1159
1159
  };
1160
1160
  const showHelp = async () => {
1161
- const { author, license, repository_url, version, git_commit_hash } = await import("./packageMetadata-C2Yob7-F.js").then((n) => n.p);
1161
+ const { author, license, repository_url, version, git_commit_hash } = await import("./packageMetadata-LkGK6Bjw.js").then((n) => n.p);
1162
1162
  console.info(`screw-up [${version}-${git_commit_hash}]
1163
1163
  Easy package metadata inserter CLI
1164
1164
  Copyright (c) ${author}