brch 0.0.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.
- package/.env +1 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/commands/addCommand.d.ts +2 -0
- package/dist/commands/configCommand.d.ts +2 -0
- package/dist/commands/index.d.ts +2 -0
- package/dist/commands/initCommand.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3028 -0
- package/dist/services/addService.d.ts +5 -0
- package/dist/services/configService.d.ts +8 -0
- package/dist/services/initService.d.ts +1 -0
- package/dist/utils/constants.d.ts +7 -0
- package/package.json +40 -0
- package/tsconfig.types.json +15 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const initRepo: () => Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const VCS_NAME = "brch";
|
|
2
|
+
export declare const VCS_CONFIG = ".brchconfig";
|
|
3
|
+
export declare const HOME_DIR: string;
|
|
4
|
+
export declare const GLOBAL_CONFIG_PATH: string;
|
|
5
|
+
export declare const VCS_DIR = ".brch";
|
|
6
|
+
export declare const OBJECT_DIR = ".brch/objects";
|
|
7
|
+
export declare const HEAD_FILE = ".brch/HEAD";
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "brch",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A simple VCS",
|
|
5
|
+
"author": "vishalkrsharma",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/vishalkrsharma/brch"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"vcs",
|
|
13
|
+
"version control",
|
|
14
|
+
"git",
|
|
15
|
+
"repository"
|
|
16
|
+
],
|
|
17
|
+
"bin": {
|
|
18
|
+
"brch": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"module": "src/index.ts",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target node && bun run types",
|
|
24
|
+
"types": "tsc -p tsconfig.types.json",
|
|
25
|
+
"dev": "bun run src/index.ts",
|
|
26
|
+
"prepublishOnly": "npm run build"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/bun": "latest"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"typescript": "^5"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@types/ini": "^4.1.1",
|
|
36
|
+
"chalk": "^5.6.2",
|
|
37
|
+
"commander": "^14.0.2",
|
|
38
|
+
"ini": "^6.0.0"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"noEmit": false,
|
|
5
|
+
"emitDeclarationOnly": true,
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationDir": "./dist",
|
|
8
|
+
"outDir": "./dist",
|
|
9
|
+
"rootDir": "./src",
|
|
10
|
+
"stripInternal": true
|
|
11
|
+
},
|
|
12
|
+
"include": [
|
|
13
|
+
"src"
|
|
14
|
+
]
|
|
15
|
+
}
|