git-chopstick-core 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/package.json +7 -1
  3. package/src/index.ts +23 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 git-chopstick
3
+ Copyright (c) 2026 parkiyong
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "git-chopstick-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
 
5
5
  "type": "module",
6
+ "main": "./src/index.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./src/index.ts"
10
+ }
11
+ },
6
12
  "description": "Git backend library extracted from GitHub Desktop",
7
13
  "scripts": {
8
14
  "typecheck": "tsc --noEmit"
package/src/index.ts ADDED
@@ -0,0 +1,23 @@
1
+ // ── Runtime: Core git operations ──
2
+ export { Repository } from './models/repository.js'
3
+ export { getStatus } from './git/status.js'
4
+ export { getCommits, getChangedFiles } from './git/log.js'
5
+ export { getBranches } from './git/for-each-ref.js'
6
+ export { getRemotes } from './git/remote.js'
7
+
8
+ // ── Models (classes used both as values and types) ──
9
+ export { Commit } from './models/commit.js'
10
+ export { CommitIdentity } from './models/commit-identity.js'
11
+ export { Branch, BranchType } from './models/branch.js'
12
+ export {
13
+ CommittedFileChange,
14
+ WorkingDirectoryFileChange,
15
+ WorkingDirectoryStatus,
16
+ AppFileStatusKind,
17
+ } from './models/status.js'
18
+ export { DiffSelection, DiffSelectionType } from './models/diff/diff-selection.js'
19
+
20
+ // ── Exclusively types ──
21
+ export type { IStatusResult } from './git/status.js'
22
+ export type { IChangesetData } from './git/log.js'
23
+ export type { IRemote } from './models/remote.js'