@teambit/git 1.0.515 → 1.0.517
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/git.main.runtime.js +1 -1
- package/dist/git.main.runtime.js.map +1 -1
- package/package.json +6 -6
- package/artifacts/__bit_junit.xml +0 -4
- package/artifacts/preview/teambit_git_git-preview.js +0 -1
- package/artifacts/schema.json +0 -1177
- /package/dist/{preview-1736934050040.js → preview-1737084088495.js} +0 -0
package/dist/git.main.runtime.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_bitError","_os","_path","_gitconfig","_cli","_workspace","_git","_mergeBitmaps","_setGitMergeDriver","_git2","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GIT_BASE_KEY","GIT_NAME_KEY","GIT_DRIVER_KEY","GIT_NAME_VALUE","GIT_DRIVER_VALUE","GIT_ATTRIBUTES","GitMain","constructor","workspace","config","mergeBitmaps","ancestor","current","other","encoding","currentContent","stripBom","fs","readFileSync","otherContent","opts","mergeStrategy","merged","bitMap","outputFile","setGitMergeDriver","setGitConfig","setGitAttributes","isGit","pathExists","global","BitError","location","gitVal","gitconfig","get","set","attributesPath","getGitAttributesPath","fileExist","writeFile","gitAttributes","readFile","includes","appendFile","fromConfig","xdgConfigHome","process","env","XDG_CONFIG_HOME","join","homedir","str","slice","provider","cli","gitMain","gitCmd","GitCmd","commands","SetGitMergeDriverCmd","MergeBitmapsCmd","register","registerGroup","exports","CLIAspect","WorkspaceAspect","MainRuntime","GitAspect","addRuntime","_default"],"sources":["git.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport { BitError } from '@teambit/bit-error';\nimport { homedir } from 'os';\nimport { join } from 'path';\nimport gitconfig from 'gitconfig';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { WorkspaceAspect, Workspace, BitmapMergeOptions } from '@teambit/workspace';\nimport { GitAspect } from './git.aspect';\nimport { MergeBitmapsCmd } from './merge-bitmaps.cmd';\nimport { SetGitMergeDriverCmd } from './set-git-merge-driver.cmd';\nimport { GitCmd } from './git.cmd';\n\ntype SetGitMergeDriverOpts = {\n global?: boolean;\n};\n\nconst GIT_BASE_KEY = 'merge.bitmap-driver';\nconst GIT_NAME_KEY = `${GIT_BASE_KEY}.name`;\nconst GIT_DRIVER_KEY = `${GIT_BASE_KEY}.driver`;\n\nconst GIT_NAME_VALUE = 'A custom merge driver used to resolve conflicts in .bitmap files';\n// const binName = process.argv[1];\nconst GIT_DRIVER_VALUE = 'bd git merge-bitmaps %O %A %B';\n\nconst GIT_ATTRIBUTES = '.bitmap merge=bitmap-driver';\n\nexport interface GitExtWorkspaceConfig {\n mergeStrategy: 'ours' | 'theirs' | 'manual';\n}\nexport class GitMain {\n constructor(\n private workspace: Workspace,\n /**\n * Git extension configuration.\n */\n readonly config: GitExtWorkspaceConfig\n ) {}\n\n async mergeBitmaps(ancestor: string, current: string, other: string) {\n const encoding = 'utf-8';\n // const ancestorContent = this.stripBom(fs.readFileSync(ancestor, encoding));\n const currentContent = this.stripBom(fs.readFileSync(current, encoding));\n const otherContent = this.stripBom(fs.readFileSync(other, encoding));\n const opts: BitmapMergeOptions = {\n mergeStrategy: this.config.mergeStrategy || 'manual',\n };\n const merged = this.workspace.bitMap.mergeBitmaps(currentContent, otherContent, opts);\n await fs.outputFile(current, merged);\n return merged;\n }\n\n async setGitMergeDriver(opts: SetGitMergeDriverOpts) {\n await this.setGitConfig(opts);\n await this.setGitAttributes(opts);\n return true;\n }\n\n private async setGitConfig(opts: SetGitMergeDriverOpts) {\n const isGit = await fs.pathExists('.git');\n if (!isGit && !opts.global) {\n throw new BitError('This is not a git repository');\n }\n const location = opts.global ? 'global' : 'local';\n let gitVal;\n try {\n gitVal = await gitconfig.get(GIT_NAME_KEY, { location });\n } catch {\n // do nothing, it just means that there is no config yet which is fine\n }\n if (gitVal) {\n return; // already set\n }\n await gitconfig.set(GIT_NAME_KEY, GIT_NAME_VALUE, { location });\n await gitconfig.set(GIT_DRIVER_KEY, GIT_DRIVER_VALUE, { location });\n }\n\n private async setGitAttributes(opts: SetGitMergeDriverOpts) {\n const attributesPath = await this.getGitAttributesPath(opts.global);\n const isGit = await fs.pathExists('.git');\n if (!isGit && !opts.global) {\n throw new BitError('This is not a git repository');\n }\n const fileExist = await fs.pathExists(attributesPath);\n if (!fileExist) {\n await fs.writeFile(attributesPath, GIT_ATTRIBUTES);\n } else {\n const gitAttributes = await fs.readFile(attributesPath, 'utf8');\n if (gitAttributes.includes(GIT_ATTRIBUTES)) {\n return; // already set\n }\n await fs.appendFile(attributesPath, `\\n${GIT_ATTRIBUTES}`);\n }\n }\n\n private async getGitAttributesPath(global = false) {\n const fromConfig = await gitconfig.get('core.attributesFile', { location: global ? 'global' : 'local' });\n if (fromConfig) {\n return fromConfig;\n }\n if (!global) {\n return '.gitattributes';\n }\n const xdgConfigHome = process.env.XDG_CONFIG_HOME;\n if (xdgConfigHome) {\n return join(xdgConfigHome, 'git', 'attributes');\n }\n return join(homedir(), '.config', 'git', 'attributes');\n }\n\n private stripBom(str) {\n return str[0] === '\\uFEFF' ? str.slice(1) : str;\n }\n\n static slots = [];\n // define your aspect dependencies here.\n // in case you need to use another aspect API.\n static dependencies = [CLIAspect, WorkspaceAspect];\n\n static runtime = MainRuntime;\n\n static async provider([cli, workspace]: [CLIMain, Workspace], config: GitExtWorkspaceConfig) {\n const gitMain = new GitMain(workspace, config);\n const gitCmd = new GitCmd();\n gitCmd.commands = [new SetGitMergeDriverCmd(gitMain), new MergeBitmapsCmd(gitMain)];\n cli.register(gitCmd);\n cli.registerGroup('git', 'Git');\n return gitMain;\n }\n}\n\nGitAspect.addRuntime(GitMain);\n\nexport default GitMain;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAA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BC,gBAAS,CAACC,UAAU,CAAC/D,OAAO,CAAC;AAAC,IAAAgE,QAAA,GAAAN,OAAA,CAAAnF,OAAA,GAEfyB,OAAO","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_fsExtra","data","_interopRequireDefault","require","_bitError","_os","_path","_gitconfig","_cli","_workspace","_git","_mergeBitmaps","_setGitMergeDriver","_git2","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","GIT_BASE_KEY","GIT_NAME_KEY","GIT_DRIVER_KEY","GIT_NAME_VALUE","GIT_DRIVER_VALUE","GIT_ATTRIBUTES","GitMain","constructor","workspace","config","mergeBitmaps","ancestor","current","other","encoding","currentContent","stripBom","fs","readFileSync","otherContent","opts","mergeStrategy","merged","bitMap","outputFile","setGitMergeDriver","setGitConfig","setGitAttributes","isGit","pathExists","global","BitError","location","gitVal","gitconfig","get","set","attributesPath","getGitAttributesPath","fileExist","writeFile","gitAttributes","readFile","includes","appendFile","fromConfig","xdgConfigHome","process","env","XDG_CONFIG_HOME","join","homedir","str","slice","provider","cli","gitMain","gitCmd","GitCmd","commands","SetGitMergeDriverCmd","MergeBitmapsCmd","register","registerGroup","exports","CLIAspect","WorkspaceAspect","MainRuntime","GitAspect","addRuntime","_default"],"sources":["git.main.runtime.ts"],"sourcesContent":["import fs from 'fs-extra';\nimport { BitError } from '@teambit/bit-error';\nimport { homedir } from 'os';\nimport { join } from 'path';\nimport gitconfig from '@teambit/gitconfig';\nimport { CLIAspect, CLIMain, MainRuntime } from '@teambit/cli';\nimport { WorkspaceAspect, Workspace, BitmapMergeOptions } from '@teambit/workspace';\nimport { GitAspect } from './git.aspect';\nimport { MergeBitmapsCmd } from './merge-bitmaps.cmd';\nimport { SetGitMergeDriverCmd } from './set-git-merge-driver.cmd';\nimport { GitCmd } from './git.cmd';\n\ntype SetGitMergeDriverOpts = {\n global?: boolean;\n};\n\nconst GIT_BASE_KEY = 'merge.bitmap-driver';\nconst GIT_NAME_KEY = `${GIT_BASE_KEY}.name`;\nconst GIT_DRIVER_KEY = `${GIT_BASE_KEY}.driver`;\n\nconst GIT_NAME_VALUE = 'A custom merge driver used to resolve conflicts in .bitmap files';\n// const binName = process.argv[1];\nconst GIT_DRIVER_VALUE = 'bd git merge-bitmaps %O %A %B';\n\nconst GIT_ATTRIBUTES = '.bitmap merge=bitmap-driver';\n\nexport interface GitExtWorkspaceConfig {\n mergeStrategy: 'ours' | 'theirs' | 'manual';\n}\nexport class GitMain {\n constructor(\n private workspace: Workspace,\n /**\n * Git extension configuration.\n */\n readonly config: GitExtWorkspaceConfig\n ) {}\n\n async mergeBitmaps(ancestor: string, current: string, other: string) {\n const encoding = 'utf-8';\n // const ancestorContent = this.stripBom(fs.readFileSync(ancestor, encoding));\n const currentContent = this.stripBom(fs.readFileSync(current, encoding));\n const otherContent = this.stripBom(fs.readFileSync(other, encoding));\n const opts: BitmapMergeOptions = {\n mergeStrategy: this.config.mergeStrategy || 'manual',\n };\n const merged = this.workspace.bitMap.mergeBitmaps(currentContent, otherContent, opts);\n await fs.outputFile(current, merged);\n return merged;\n }\n\n async setGitMergeDriver(opts: SetGitMergeDriverOpts) {\n await this.setGitConfig(opts);\n await this.setGitAttributes(opts);\n return true;\n }\n\n private async setGitConfig(opts: SetGitMergeDriverOpts) {\n const isGit = await fs.pathExists('.git');\n if (!isGit && !opts.global) {\n throw new BitError('This is not a git repository');\n }\n const location = opts.global ? 'global' : 'local';\n let gitVal;\n try {\n gitVal = await gitconfig.get(GIT_NAME_KEY, { location });\n } catch {\n // do nothing, it just means that there is no config yet which is fine\n }\n if (gitVal) {\n return; // already set\n }\n await gitconfig.set(GIT_NAME_KEY, GIT_NAME_VALUE, { location });\n await gitconfig.set(GIT_DRIVER_KEY, GIT_DRIVER_VALUE, { location });\n }\n\n private async setGitAttributes(opts: SetGitMergeDriverOpts) {\n const attributesPath = await this.getGitAttributesPath(opts.global);\n const isGit = await fs.pathExists('.git');\n if (!isGit && !opts.global) {\n throw new BitError('This is not a git repository');\n }\n const fileExist = await fs.pathExists(attributesPath);\n if (!fileExist) {\n await fs.writeFile(attributesPath, GIT_ATTRIBUTES);\n } else {\n const gitAttributes = await fs.readFile(attributesPath, 'utf8');\n if (gitAttributes.includes(GIT_ATTRIBUTES)) {\n return; // already set\n }\n await fs.appendFile(attributesPath, `\\n${GIT_ATTRIBUTES}`);\n }\n }\n\n private async getGitAttributesPath(global = false) {\n const fromConfig = await gitconfig.get('core.attributesFile', { location: global ? 'global' : 'local' });\n if (fromConfig) {\n return fromConfig;\n }\n if (!global) {\n return '.gitattributes';\n }\n const xdgConfigHome = process.env.XDG_CONFIG_HOME;\n if (xdgConfigHome) {\n return join(xdgConfigHome, 'git', 'attributes');\n }\n return join(homedir(), '.config', 'git', 'attributes');\n }\n\n private stripBom(str) {\n return str[0] === '\\uFEFF' ? str.slice(1) : str;\n }\n\n static slots = [];\n // define your aspect dependencies here.\n // in case you need to use another aspect API.\n static dependencies = [CLIAspect, WorkspaceAspect];\n\n static runtime = MainRuntime;\n\n static async provider([cli, workspace]: [CLIMain, Workspace], config: GitExtWorkspaceConfig) {\n const gitMain = new GitMain(workspace, config);\n const gitCmd = new GitCmd();\n gitCmd.commands = [new SetGitMergeDriverCmd(gitMain), new MergeBitmapsCmd(gitMain)];\n cli.register(gitCmd);\n cli.registerGroup('git', 'Git');\n return gitMain;\n }\n}\n\nGitAspect.addRuntime(GitMain);\n\nexport default GitMain;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SA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|
2
2
|
"name": "@teambit/git",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.517",
|
4
4
|
"homepage": "https://bit.cloud/teambit/git/git",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.git",
|
8
8
|
"name": "git",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.517"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
|
+
"@teambit/gitconfig": "2.0.10",
|
13
14
|
"fs-extra": "10.0.0",
|
14
|
-
"gitconfig": "2.0.8",
|
15
15
|
"@teambit/harmony": "0.4.6",
|
16
16
|
"@teambit/bit-error": "0.0.404",
|
17
|
-
"@teambit/cli": "0.0.
|
18
|
-
"@teambit/workspace": "1.0.
|
17
|
+
"@teambit/cli": "0.0.1094",
|
18
|
+
"@teambit/workspace": "1.0.517"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@types/fs-extra": "9.0.7",
|
22
22
|
"@types/mocha": "9.1.0",
|
23
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
23
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.69"
|
24
24
|
},
|
25
25
|
"peerDependencies": {},
|
26
26
|
"license": "Apache-2.0",
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.git/git-preview"]=t():e["teambit.git/git-preview"]=t()}(self,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var i in o)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{compositions:()=>o,compositions_metadata:()=>r,overview:()=>i});const o=[],i=[],r={compositions:[]};return t})()));
|
package/artifacts/schema.json
DELETED
@@ -1,1177 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"__schema": "APISchema",
|
3
|
-
"location": {
|
4
|
-
"filePath": "index.ts",
|
5
|
-
"line": 1,
|
6
|
-
"character": 1
|
7
|
-
},
|
8
|
-
"module": {
|
9
|
-
"__schema": "ModuleSchema",
|
10
|
-
"location": {
|
11
|
-
"filePath": "index.ts",
|
12
|
-
"line": 1,
|
13
|
-
"character": 1
|
14
|
-
},
|
15
|
-
"exports": [
|
16
|
-
{
|
17
|
-
"__schema": "ExportSchema",
|
18
|
-
"location": {
|
19
|
-
"filePath": "index.ts",
|
20
|
-
"line": 3,
|
21
|
-
"character": 15
|
22
|
-
},
|
23
|
-
"signature": "class GitMain",
|
24
|
-
"name": "GitMain",
|
25
|
-
"exportNode": {
|
26
|
-
"__schema": "ClassSchema",
|
27
|
-
"location": {
|
28
|
-
"filePath": "git.main.runtime.ts",
|
29
|
-
"line": 30,
|
30
|
-
"character": 1
|
31
|
-
},
|
32
|
-
"signature": "class GitMain",
|
33
|
-
"name": "GitMain",
|
34
|
-
"members": [
|
35
|
-
{
|
36
|
-
"__schema": "ConstructorSchema",
|
37
|
-
"location": {
|
38
|
-
"filePath": "git.main.runtime.ts",
|
39
|
-
"line": 31,
|
40
|
-
"character": 3
|
41
|
-
},
|
42
|
-
"signature": "constructor GitMain(workspace: Workspace, config: GitExtWorkspaceConfig): GitMain",
|
43
|
-
"name": "constructor",
|
44
|
-
"params": [
|
45
|
-
{
|
46
|
-
"__schema": "ParameterSchema",
|
47
|
-
"location": {
|
48
|
-
"filePath": "git.main.runtime.ts",
|
49
|
-
"line": 32,
|
50
|
-
"character": 5
|
51
|
-
},
|
52
|
-
"name": "workspace",
|
53
|
-
"type": {
|
54
|
-
"__schema": "TypeRefSchema",
|
55
|
-
"location": {
|
56
|
-
"filePath": "git.main.runtime.ts",
|
57
|
-
"line": 32,
|
58
|
-
"character": 24
|
59
|
-
},
|
60
|
-
"name": "Workspace",
|
61
|
-
"componentId": {
|
62
|
-
"scope": "teambit.workspace",
|
63
|
-
"name": "workspace"
|
64
|
-
}
|
65
|
-
},
|
66
|
-
"isOptional": false,
|
67
|
-
"isSpread": false
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"__schema": "ParameterSchema",
|
71
|
-
"location": {
|
72
|
-
"filePath": "git.main.runtime.ts",
|
73
|
-
"line": 36,
|
74
|
-
"character": 5
|
75
|
-
},
|
76
|
-
"name": "config",
|
77
|
-
"type": {
|
78
|
-
"__schema": "TypeRefSchema",
|
79
|
-
"location": {
|
80
|
-
"filePath": "git.main.runtime.ts",
|
81
|
-
"line": 36,
|
82
|
-
"character": 22
|
83
|
-
},
|
84
|
-
"name": "GitExtWorkspaceConfig",
|
85
|
-
"internalFilePath": "git.main.runtime.ts"
|
86
|
-
},
|
87
|
-
"isOptional": false,
|
88
|
-
"isSpread": false
|
89
|
-
}
|
90
|
-
],
|
91
|
-
"returnType": {
|
92
|
-
"__schema": "ThisTypeSchema",
|
93
|
-
"location": {
|
94
|
-
"filePath": "git.main.runtime.ts",
|
95
|
-
"line": 30,
|
96
|
-
"character": 1
|
97
|
-
},
|
98
|
-
"name": "GitMain"
|
99
|
-
},
|
100
|
-
"modifiers": []
|
101
|
-
},
|
102
|
-
{
|
103
|
-
"__schema": "FunctionLikeSchema",
|
104
|
-
"location": {
|
105
|
-
"filePath": "git.main.runtime.ts",
|
106
|
-
"line": 39,
|
107
|
-
"character": 3
|
108
|
-
},
|
109
|
-
"signature": "(method) GitMain.mergeBitmaps(ancestor: string, current: string, other: string): Promise<string>",
|
110
|
-
"name": "mergeBitmaps",
|
111
|
-
"params": [
|
112
|
-
{
|
113
|
-
"__schema": "ParameterSchema",
|
114
|
-
"location": {
|
115
|
-
"filePath": "git.main.runtime.ts",
|
116
|
-
"line": 39,
|
117
|
-
"character": 22
|
118
|
-
},
|
119
|
-
"name": "ancestor",
|
120
|
-
"type": {
|
121
|
-
"__schema": "KeywordTypeSchema",
|
122
|
-
"location": {
|
123
|
-
"filePath": "git.main.runtime.ts",
|
124
|
-
"line": 39,
|
125
|
-
"character": 32
|
126
|
-
},
|
127
|
-
"name": "string"
|
128
|
-
},
|
129
|
-
"isOptional": false,
|
130
|
-
"isSpread": false
|
131
|
-
},
|
132
|
-
{
|
133
|
-
"__schema": "ParameterSchema",
|
134
|
-
"location": {
|
135
|
-
"filePath": "git.main.runtime.ts",
|
136
|
-
"line": 39,
|
137
|
-
"character": 40
|
138
|
-
},
|
139
|
-
"name": "current",
|
140
|
-
"type": {
|
141
|
-
"__schema": "KeywordTypeSchema",
|
142
|
-
"location": {
|
143
|
-
"filePath": "git.main.runtime.ts",
|
144
|
-
"line": 39,
|
145
|
-
"character": 49
|
146
|
-
},
|
147
|
-
"name": "string"
|
148
|
-
},
|
149
|
-
"isOptional": false,
|
150
|
-
"isSpread": false
|
151
|
-
},
|
152
|
-
{
|
153
|
-
"__schema": "ParameterSchema",
|
154
|
-
"location": {
|
155
|
-
"filePath": "git.main.runtime.ts",
|
156
|
-
"line": 39,
|
157
|
-
"character": 57
|
158
|
-
},
|
159
|
-
"name": "other",
|
160
|
-
"type": {
|
161
|
-
"__schema": "KeywordTypeSchema",
|
162
|
-
"location": {
|
163
|
-
"filePath": "git.main.runtime.ts",
|
164
|
-
"line": 39,
|
165
|
-
"character": 64
|
166
|
-
},
|
167
|
-
"name": "string"
|
168
|
-
},
|
169
|
-
"isOptional": false,
|
170
|
-
"isSpread": false
|
171
|
-
}
|
172
|
-
],
|
173
|
-
"returnType": {
|
174
|
-
"__schema": "InferenceTypeSchema",
|
175
|
-
"location": {
|
176
|
-
"filePath": "git.main.runtime.ts",
|
177
|
-
"line": 39,
|
178
|
-
"character": 3
|
179
|
-
},
|
180
|
-
"type": "Promise<string>"
|
181
|
-
},
|
182
|
-
"modifiers": [
|
183
|
-
"async"
|
184
|
-
]
|
185
|
-
},
|
186
|
-
{
|
187
|
-
"__schema": "FunctionLikeSchema",
|
188
|
-
"location": {
|
189
|
-
"filePath": "git.main.runtime.ts",
|
190
|
-
"line": 52,
|
191
|
-
"character": 3
|
192
|
-
},
|
193
|
-
"signature": "(method) GitMain.setGitMergeDriver(opts: SetGitMergeDriverOpts): Promise<boolean>",
|
194
|
-
"name": "setGitMergeDriver",
|
195
|
-
"params": [
|
196
|
-
{
|
197
|
-
"__schema": "ParameterSchema",
|
198
|
-
"location": {
|
199
|
-
"filePath": "git.main.runtime.ts",
|
200
|
-
"line": 52,
|
201
|
-
"character": 27
|
202
|
-
},
|
203
|
-
"name": "opts",
|
204
|
-
"type": {
|
205
|
-
"__schema": "TypeRefSchema",
|
206
|
-
"location": {
|
207
|
-
"filePath": "git.main.runtime.ts",
|
208
|
-
"line": 52,
|
209
|
-
"character": 33
|
210
|
-
},
|
211
|
-
"name": "SetGitMergeDriverOpts",
|
212
|
-
"internalFilePath": "git.main.runtime.ts"
|
213
|
-
},
|
214
|
-
"isOptional": false,
|
215
|
-
"isSpread": false
|
216
|
-
}
|
217
|
-
],
|
218
|
-
"returnType": {
|
219
|
-
"__schema": "InferenceTypeSchema",
|
220
|
-
"location": {
|
221
|
-
"filePath": "git.main.runtime.ts",
|
222
|
-
"line": 52,
|
223
|
-
"character": 3
|
224
|
-
},
|
225
|
-
"type": "Promise<boolean>"
|
226
|
-
},
|
227
|
-
"modifiers": [
|
228
|
-
"async"
|
229
|
-
]
|
230
|
-
},
|
231
|
-
{
|
232
|
-
"__schema": "VariableLikeSchema",
|
233
|
-
"location": {
|
234
|
-
"filePath": "git.main.runtime.ts",
|
235
|
-
"line": 114,
|
236
|
-
"character": 3
|
237
|
-
},
|
238
|
-
"signature": "(property) GitMain.slots: never[]",
|
239
|
-
"name": "slots",
|
240
|
-
"type": {
|
241
|
-
"__schema": "InferenceTypeSchema",
|
242
|
-
"location": {
|
243
|
-
"filePath": "git.main.runtime.ts",
|
244
|
-
"line": 114,
|
245
|
-
"character": 3
|
246
|
-
},
|
247
|
-
"type": "never[]"
|
248
|
-
},
|
249
|
-
"isOptional": true,
|
250
|
-
"defaultValue": "[]"
|
251
|
-
},
|
252
|
-
{
|
253
|
-
"__schema": "VariableLikeSchema",
|
254
|
-
"location": {
|
255
|
-
"filePath": "git.main.runtime.ts",
|
256
|
-
"line": 117,
|
257
|
-
"character": 3
|
258
|
-
},
|
259
|
-
"signature": "(property) GitMain.dependencies: Aspect[]",
|
260
|
-
"name": "dependencies",
|
261
|
-
"type": {
|
262
|
-
"__schema": "InferenceTypeSchema",
|
263
|
-
"location": {
|
264
|
-
"filePath": "git.main.runtime.ts",
|
265
|
-
"line": 117,
|
266
|
-
"character": 3
|
267
|
-
},
|
268
|
-
"type": "Aspect[]"
|
269
|
-
},
|
270
|
-
"isOptional": true,
|
271
|
-
"defaultValue": "[CLIAspect, WorkspaceAspect]"
|
272
|
-
},
|
273
|
-
{
|
274
|
-
"__schema": "VariableLikeSchema",
|
275
|
-
"location": {
|
276
|
-
"filePath": "git.main.runtime.ts",
|
277
|
-
"line": 119,
|
278
|
-
"character": 3
|
279
|
-
},
|
280
|
-
"signature": "(property) GitMain.runtime: RuntimeDefinition",
|
281
|
-
"name": "runtime",
|
282
|
-
"type": {
|
283
|
-
"__schema": "InferenceTypeSchema",
|
284
|
-
"location": {
|
285
|
-
"filePath": "git.main.runtime.ts",
|
286
|
-
"line": 119,
|
287
|
-
"character": 3
|
288
|
-
},
|
289
|
-
"type": "RuntimeDefinition"
|
290
|
-
},
|
291
|
-
"isOptional": true,
|
292
|
-
"defaultValue": "MainRuntime"
|
293
|
-
},
|
294
|
-
{
|
295
|
-
"__schema": "FunctionLikeSchema",
|
296
|
-
"location": {
|
297
|
-
"filePath": "git.main.runtime.ts",
|
298
|
-
"line": 121,
|
299
|
-
"character": 3
|
300
|
-
},
|
301
|
-
"signature": "(method) GitMain.provider([cli, workspace]: [CLIMain, Workspace], config: GitExtWorkspaceConfig): Promise<GitMain>",
|
302
|
-
"name": "provider",
|
303
|
-
"params": [
|
304
|
-
{
|
305
|
-
"__schema": "ParameterSchema",
|
306
|
-
"location": {
|
307
|
-
"filePath": "git.main.runtime.ts",
|
308
|
-
"line": 121,
|
309
|
-
"character": 25
|
310
|
-
},
|
311
|
-
"name": "[ cli, workspace ]",
|
312
|
-
"type": {
|
313
|
-
"__schema": "TupleTypeSchema",
|
314
|
-
"location": {
|
315
|
-
"filePath": "git.main.runtime.ts",
|
316
|
-
"line": 121,
|
317
|
-
"character": 43
|
318
|
-
},
|
319
|
-
"elements": [
|
320
|
-
{
|
321
|
-
"__schema": "TypeRefSchema",
|
322
|
-
"location": {
|
323
|
-
"filePath": "git.main.runtime.ts",
|
324
|
-
"line": 121,
|
325
|
-
"character": 44
|
326
|
-
},
|
327
|
-
"name": "CLIMain",
|
328
|
-
"componentId": {
|
329
|
-
"scope": "teambit.harmony",
|
330
|
-
"name": "cli"
|
331
|
-
}
|
332
|
-
},
|
333
|
-
{
|
334
|
-
"__schema": "TypeRefSchema",
|
335
|
-
"location": {
|
336
|
-
"filePath": "git.main.runtime.ts",
|
337
|
-
"line": 121,
|
338
|
-
"character": 53
|
339
|
-
},
|
340
|
-
"name": "Workspace",
|
341
|
-
"componentId": {
|
342
|
-
"scope": "teambit.workspace",
|
343
|
-
"name": "workspace"
|
344
|
-
}
|
345
|
-
}
|
346
|
-
]
|
347
|
-
},
|
348
|
-
"isOptional": false,
|
349
|
-
"isSpread": false
|
350
|
-
},
|
351
|
-
{
|
352
|
-
"__schema": "ParameterSchema",
|
353
|
-
"location": {
|
354
|
-
"filePath": "git.main.runtime.ts",
|
355
|
-
"line": 121,
|
356
|
-
"character": 65
|
357
|
-
},
|
358
|
-
"name": "config",
|
359
|
-
"type": {
|
360
|
-
"__schema": "TypeRefSchema",
|
361
|
-
"location": {
|
362
|
-
"filePath": "git.main.runtime.ts",
|
363
|
-
"line": 121,
|
364
|
-
"character": 73
|
365
|
-
},
|
366
|
-
"name": "GitExtWorkspaceConfig",
|
367
|
-
"internalFilePath": "git.main.runtime.ts"
|
368
|
-
},
|
369
|
-
"isOptional": false,
|
370
|
-
"isSpread": false
|
371
|
-
}
|
372
|
-
],
|
373
|
-
"returnType": {
|
374
|
-
"__schema": "InferenceTypeSchema",
|
375
|
-
"location": {
|
376
|
-
"filePath": "git.main.runtime.ts",
|
377
|
-
"line": 121,
|
378
|
-
"character": 3
|
379
|
-
},
|
380
|
-
"type": "Promise<GitMain>"
|
381
|
-
},
|
382
|
-
"modifiers": [
|
383
|
-
"static",
|
384
|
-
"async"
|
385
|
-
]
|
386
|
-
}
|
387
|
-
],
|
388
|
-
"extendsNodes": [],
|
389
|
-
"implementNodes": []
|
390
|
-
}
|
391
|
-
},
|
392
|
-
{
|
393
|
-
"__schema": "UnImplementedSchema",
|
394
|
-
"location": {
|
395
|
-
"filePath": "index.ts",
|
396
|
-
"line": 4,
|
397
|
-
"character": 16
|
398
|
-
},
|
399
|
-
"name": "GitAspect",
|
400
|
-
"type": "Identifier"
|
401
|
-
},
|
402
|
-
{
|
403
|
-
"__schema": "ExportSchema",
|
404
|
-
"location": {
|
405
|
-
"filePath": "index.ts",
|
406
|
-
"line": 5,
|
407
|
-
"character": 10
|
408
|
-
},
|
409
|
-
"signature": "const GitAspect: Aspect",
|
410
|
-
"name": "GitAspect",
|
411
|
-
"exportNode": {
|
412
|
-
"__schema": "VariableLikeSchema",
|
413
|
-
"location": {
|
414
|
-
"filePath": "git.aspect.ts",
|
415
|
-
"line": 3,
|
416
|
-
"character": 14
|
417
|
-
},
|
418
|
-
"signature": "const GitAspect: Aspect",
|
419
|
-
"name": "GitAspect",
|
420
|
-
"type": {
|
421
|
-
"__schema": "TypeRefSchema",
|
422
|
-
"location": {
|
423
|
-
"filePath": "git.aspect.ts",
|
424
|
-
"line": 3,
|
425
|
-
"character": 14
|
426
|
-
},
|
427
|
-
"name": "Aspect",
|
428
|
-
"componentId": {
|
429
|
-
"scope": "teambit.harmony",
|
430
|
-
"name": "harmony",
|
431
|
-
"version": "0.4.6"
|
432
|
-
}
|
433
|
-
},
|
434
|
-
"isOptional": false,
|
435
|
-
"defaultValue": "Aspect.create({\n id: 'teambit.git/git',\n})"
|
436
|
-
}
|
437
|
-
}
|
438
|
-
],
|
439
|
-
"internals": []
|
440
|
-
},
|
441
|
-
"internals": [
|
442
|
-
{
|
443
|
-
"__schema": "ModuleSchema",
|
444
|
-
"location": {
|
445
|
-
"filePath": "git.main.runtime.ts",
|
446
|
-
"line": 1,
|
447
|
-
"character": 1
|
448
|
-
},
|
449
|
-
"exports": [
|
450
|
-
{
|
451
|
-
"__schema": "InterfaceSchema",
|
452
|
-
"location": {
|
453
|
-
"filePath": "git.main.runtime.ts",
|
454
|
-
"line": 27,
|
455
|
-
"character": 1
|
456
|
-
},
|
457
|
-
"signature": "interface GitExtWorkspaceConfig",
|
458
|
-
"name": "GitExtWorkspaceConfig",
|
459
|
-
"members": [
|
460
|
-
{
|
461
|
-
"__schema": "VariableLikeSchema",
|
462
|
-
"location": {
|
463
|
-
"filePath": "git.main.runtime.ts",
|
464
|
-
"line": 28,
|
465
|
-
"character": 3
|
466
|
-
},
|
467
|
-
"signature": "(property) GitExtWorkspaceConfig.mergeStrategy: \"theirs\" | \"ours\" | \"manual\"",
|
468
|
-
"name": "mergeStrategy",
|
469
|
-
"type": {
|
470
|
-
"__schema": "TypeUnionSchema",
|
471
|
-
"location": {
|
472
|
-
"filePath": "git.main.runtime.ts",
|
473
|
-
"line": 28,
|
474
|
-
"character": 18
|
475
|
-
},
|
476
|
-
"types": [
|
477
|
-
{
|
478
|
-
"__schema": "LiteralTypeSchema",
|
479
|
-
"location": {
|
480
|
-
"filePath": "git.main.runtime.ts",
|
481
|
-
"line": 28,
|
482
|
-
"character": 18
|
483
|
-
},
|
484
|
-
"name": "'ours'"
|
485
|
-
},
|
486
|
-
{
|
487
|
-
"__schema": "LiteralTypeSchema",
|
488
|
-
"location": {
|
489
|
-
"filePath": "git.main.runtime.ts",
|
490
|
-
"line": 28,
|
491
|
-
"character": 27
|
492
|
-
},
|
493
|
-
"name": "'theirs'"
|
494
|
-
},
|
495
|
-
{
|
496
|
-
"__schema": "LiteralTypeSchema",
|
497
|
-
"location": {
|
498
|
-
"filePath": "git.main.runtime.ts",
|
499
|
-
"line": 28,
|
500
|
-
"character": 38
|
501
|
-
},
|
502
|
-
"name": "'manual'"
|
503
|
-
}
|
504
|
-
]
|
505
|
-
},
|
506
|
-
"isOptional": false
|
507
|
-
}
|
508
|
-
],
|
509
|
-
"extendsNodes": []
|
510
|
-
},
|
511
|
-
{
|
512
|
-
"__schema": "ClassSchema",
|
513
|
-
"location": {
|
514
|
-
"filePath": "git.main.runtime.ts",
|
515
|
-
"line": 30,
|
516
|
-
"character": 1
|
517
|
-
},
|
518
|
-
"signature": "class GitMain",
|
519
|
-
"name": "GitMain",
|
520
|
-
"members": [
|
521
|
-
{
|
522
|
-
"__schema": "ConstructorSchema",
|
523
|
-
"location": {
|
524
|
-
"filePath": "git.main.runtime.ts",
|
525
|
-
"line": 31,
|
526
|
-
"character": 3
|
527
|
-
},
|
528
|
-
"signature": "constructor GitMain(workspace: Workspace, config: GitExtWorkspaceConfig): GitMain",
|
529
|
-
"name": "constructor",
|
530
|
-
"params": [
|
531
|
-
{
|
532
|
-
"__schema": "ParameterSchema",
|
533
|
-
"location": {
|
534
|
-
"filePath": "git.main.runtime.ts",
|
535
|
-
"line": 32,
|
536
|
-
"character": 5
|
537
|
-
},
|
538
|
-
"name": "workspace",
|
539
|
-
"type": {
|
540
|
-
"__schema": "TypeRefSchema",
|
541
|
-
"location": {
|
542
|
-
"filePath": "git.main.runtime.ts",
|
543
|
-
"line": 32,
|
544
|
-
"character": 24
|
545
|
-
},
|
546
|
-
"name": "Workspace",
|
547
|
-
"componentId": {
|
548
|
-
"scope": "teambit.workspace",
|
549
|
-
"name": "workspace"
|
550
|
-
}
|
551
|
-
},
|
552
|
-
"isOptional": false,
|
553
|
-
"isSpread": false
|
554
|
-
},
|
555
|
-
{
|
556
|
-
"__schema": "ParameterSchema",
|
557
|
-
"location": {
|
558
|
-
"filePath": "git.main.runtime.ts",
|
559
|
-
"line": 36,
|
560
|
-
"character": 5
|
561
|
-
},
|
562
|
-
"name": "config",
|
563
|
-
"type": {
|
564
|
-
"__schema": "TypeRefSchema",
|
565
|
-
"location": {
|
566
|
-
"filePath": "git.main.runtime.ts",
|
567
|
-
"line": 36,
|
568
|
-
"character": 22
|
569
|
-
},
|
570
|
-
"name": "GitExtWorkspaceConfig",
|
571
|
-
"internalFilePath": "git.main.runtime.ts"
|
572
|
-
},
|
573
|
-
"isOptional": false,
|
574
|
-
"isSpread": false
|
575
|
-
}
|
576
|
-
],
|
577
|
-
"returnType": {
|
578
|
-
"__schema": "ThisTypeSchema",
|
579
|
-
"location": {
|
580
|
-
"filePath": "git.main.runtime.ts",
|
581
|
-
"line": 30,
|
582
|
-
"character": 1
|
583
|
-
},
|
584
|
-
"name": "GitMain"
|
585
|
-
},
|
586
|
-
"modifiers": []
|
587
|
-
},
|
588
|
-
{
|
589
|
-
"__schema": "FunctionLikeSchema",
|
590
|
-
"location": {
|
591
|
-
"filePath": "git.main.runtime.ts",
|
592
|
-
"line": 39,
|
593
|
-
"character": 3
|
594
|
-
},
|
595
|
-
"signature": "(method) GitMain.mergeBitmaps(ancestor: string, current: string, other: string): Promise<string>",
|
596
|
-
"name": "mergeBitmaps",
|
597
|
-
"params": [
|
598
|
-
{
|
599
|
-
"__schema": "ParameterSchema",
|
600
|
-
"location": {
|
601
|
-
"filePath": "git.main.runtime.ts",
|
602
|
-
"line": 39,
|
603
|
-
"character": 22
|
604
|
-
},
|
605
|
-
"name": "ancestor",
|
606
|
-
"type": {
|
607
|
-
"__schema": "KeywordTypeSchema",
|
608
|
-
"location": {
|
609
|
-
"filePath": "git.main.runtime.ts",
|
610
|
-
"line": 39,
|
611
|
-
"character": 32
|
612
|
-
},
|
613
|
-
"name": "string"
|
614
|
-
},
|
615
|
-
"isOptional": false,
|
616
|
-
"isSpread": false
|
617
|
-
},
|
618
|
-
{
|
619
|
-
"__schema": "ParameterSchema",
|
620
|
-
"location": {
|
621
|
-
"filePath": "git.main.runtime.ts",
|
622
|
-
"line": 39,
|
623
|
-
"character": 40
|
624
|
-
},
|
625
|
-
"name": "current",
|
626
|
-
"type": {
|
627
|
-
"__schema": "KeywordTypeSchema",
|
628
|
-
"location": {
|
629
|
-
"filePath": "git.main.runtime.ts",
|
630
|
-
"line": 39,
|
631
|
-
"character": 49
|
632
|
-
},
|
633
|
-
"name": "string"
|
634
|
-
},
|
635
|
-
"isOptional": false,
|
636
|
-
"isSpread": false
|
637
|
-
},
|
638
|
-
{
|
639
|
-
"__schema": "ParameterSchema",
|
640
|
-
"location": {
|
641
|
-
"filePath": "git.main.runtime.ts",
|
642
|
-
"line": 39,
|
643
|
-
"character": 57
|
644
|
-
},
|
645
|
-
"name": "other",
|
646
|
-
"type": {
|
647
|
-
"__schema": "KeywordTypeSchema",
|
648
|
-
"location": {
|
649
|
-
"filePath": "git.main.runtime.ts",
|
650
|
-
"line": 39,
|
651
|
-
"character": 64
|
652
|
-
},
|
653
|
-
"name": "string"
|
654
|
-
},
|
655
|
-
"isOptional": false,
|
656
|
-
"isSpread": false
|
657
|
-
}
|
658
|
-
],
|
659
|
-
"returnType": {
|
660
|
-
"__schema": "InferenceTypeSchema",
|
661
|
-
"location": {
|
662
|
-
"filePath": "git.main.runtime.ts",
|
663
|
-
"line": 39,
|
664
|
-
"character": 3
|
665
|
-
},
|
666
|
-
"type": "Promise<string>"
|
667
|
-
},
|
668
|
-
"modifiers": [
|
669
|
-
"async"
|
670
|
-
]
|
671
|
-
},
|
672
|
-
{
|
673
|
-
"__schema": "FunctionLikeSchema",
|
674
|
-
"location": {
|
675
|
-
"filePath": "git.main.runtime.ts",
|
676
|
-
"line": 52,
|
677
|
-
"character": 3
|
678
|
-
},
|
679
|
-
"signature": "(method) GitMain.setGitMergeDriver(opts: SetGitMergeDriverOpts): Promise<boolean>",
|
680
|
-
"name": "setGitMergeDriver",
|
681
|
-
"params": [
|
682
|
-
{
|
683
|
-
"__schema": "ParameterSchema",
|
684
|
-
"location": {
|
685
|
-
"filePath": "git.main.runtime.ts",
|
686
|
-
"line": 52,
|
687
|
-
"character": 27
|
688
|
-
},
|
689
|
-
"name": "opts",
|
690
|
-
"type": {
|
691
|
-
"__schema": "TypeRefSchema",
|
692
|
-
"location": {
|
693
|
-
"filePath": "git.main.runtime.ts",
|
694
|
-
"line": 52,
|
695
|
-
"character": 33
|
696
|
-
},
|
697
|
-
"name": "SetGitMergeDriverOpts",
|
698
|
-
"internalFilePath": "git.main.runtime.ts"
|
699
|
-
},
|
700
|
-
"isOptional": false,
|
701
|
-
"isSpread": false
|
702
|
-
}
|
703
|
-
],
|
704
|
-
"returnType": {
|
705
|
-
"__schema": "InferenceTypeSchema",
|
706
|
-
"location": {
|
707
|
-
"filePath": "git.main.runtime.ts",
|
708
|
-
"line": 52,
|
709
|
-
"character": 3
|
710
|
-
},
|
711
|
-
"type": "Promise<boolean>"
|
712
|
-
},
|
713
|
-
"modifiers": [
|
714
|
-
"async"
|
715
|
-
]
|
716
|
-
},
|
717
|
-
{
|
718
|
-
"__schema": "VariableLikeSchema",
|
719
|
-
"location": {
|
720
|
-
"filePath": "git.main.runtime.ts",
|
721
|
-
"line": 114,
|
722
|
-
"character": 3
|
723
|
-
},
|
724
|
-
"signature": "(property) GitMain.slots: never[]",
|
725
|
-
"name": "slots",
|
726
|
-
"type": {
|
727
|
-
"__schema": "InferenceTypeSchema",
|
728
|
-
"location": {
|
729
|
-
"filePath": "git.main.runtime.ts",
|
730
|
-
"line": 114,
|
731
|
-
"character": 3
|
732
|
-
},
|
733
|
-
"type": "never[]"
|
734
|
-
},
|
735
|
-
"isOptional": true,
|
736
|
-
"defaultValue": "[]"
|
737
|
-
},
|
738
|
-
{
|
739
|
-
"__schema": "VariableLikeSchema",
|
740
|
-
"location": {
|
741
|
-
"filePath": "git.main.runtime.ts",
|
742
|
-
"line": 117,
|
743
|
-
"character": 3
|
744
|
-
},
|
745
|
-
"signature": "(property) GitMain.dependencies: Aspect[]",
|
746
|
-
"name": "dependencies",
|
747
|
-
"type": {
|
748
|
-
"__schema": "InferenceTypeSchema",
|
749
|
-
"location": {
|
750
|
-
"filePath": "git.main.runtime.ts",
|
751
|
-
"line": 117,
|
752
|
-
"character": 3
|
753
|
-
},
|
754
|
-
"type": "Aspect[]"
|
755
|
-
},
|
756
|
-
"isOptional": true,
|
757
|
-
"defaultValue": "[CLIAspect, WorkspaceAspect]"
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"__schema": "VariableLikeSchema",
|
761
|
-
"location": {
|
762
|
-
"filePath": "git.main.runtime.ts",
|
763
|
-
"line": 119,
|
764
|
-
"character": 3
|
765
|
-
},
|
766
|
-
"signature": "(property) GitMain.runtime: RuntimeDefinition",
|
767
|
-
"name": "runtime",
|
768
|
-
"type": {
|
769
|
-
"__schema": "InferenceTypeSchema",
|
770
|
-
"location": {
|
771
|
-
"filePath": "git.main.runtime.ts",
|
772
|
-
"line": 119,
|
773
|
-
"character": 3
|
774
|
-
},
|
775
|
-
"type": "RuntimeDefinition"
|
776
|
-
},
|
777
|
-
"isOptional": true,
|
778
|
-
"defaultValue": "MainRuntime"
|
779
|
-
},
|
780
|
-
{
|
781
|
-
"__schema": "FunctionLikeSchema",
|
782
|
-
"location": {
|
783
|
-
"filePath": "git.main.runtime.ts",
|
784
|
-
"line": 121,
|
785
|
-
"character": 3
|
786
|
-
},
|
787
|
-
"signature": "(method) GitMain.provider([cli, workspace]: [CLIMain, Workspace], config: GitExtWorkspaceConfig): Promise<GitMain>",
|
788
|
-
"name": "provider",
|
789
|
-
"params": [
|
790
|
-
{
|
791
|
-
"__schema": "ParameterSchema",
|
792
|
-
"location": {
|
793
|
-
"filePath": "git.main.runtime.ts",
|
794
|
-
"line": 121,
|
795
|
-
"character": 25
|
796
|
-
},
|
797
|
-
"name": "[ cli, workspace ]",
|
798
|
-
"type": {
|
799
|
-
"__schema": "TupleTypeSchema",
|
800
|
-
"location": {
|
801
|
-
"filePath": "git.main.runtime.ts",
|
802
|
-
"line": 121,
|
803
|
-
"character": 43
|
804
|
-
},
|
805
|
-
"elements": [
|
806
|
-
{
|
807
|
-
"__schema": "TypeRefSchema",
|
808
|
-
"location": {
|
809
|
-
"filePath": "git.main.runtime.ts",
|
810
|
-
"line": 121,
|
811
|
-
"character": 44
|
812
|
-
},
|
813
|
-
"name": "CLIMain",
|
814
|
-
"componentId": {
|
815
|
-
"scope": "teambit.harmony",
|
816
|
-
"name": "cli"
|
817
|
-
}
|
818
|
-
},
|
819
|
-
{
|
820
|
-
"__schema": "TypeRefSchema",
|
821
|
-
"location": {
|
822
|
-
"filePath": "git.main.runtime.ts",
|
823
|
-
"line": 121,
|
824
|
-
"character": 53
|
825
|
-
},
|
826
|
-
"name": "Workspace",
|
827
|
-
"componentId": {
|
828
|
-
"scope": "teambit.workspace",
|
829
|
-
"name": "workspace"
|
830
|
-
}
|
831
|
-
}
|
832
|
-
]
|
833
|
-
},
|
834
|
-
"isOptional": false,
|
835
|
-
"isSpread": false
|
836
|
-
},
|
837
|
-
{
|
838
|
-
"__schema": "ParameterSchema",
|
839
|
-
"location": {
|
840
|
-
"filePath": "git.main.runtime.ts",
|
841
|
-
"line": 121,
|
842
|
-
"character": 65
|
843
|
-
},
|
844
|
-
"name": "config",
|
845
|
-
"type": {
|
846
|
-
"__schema": "TypeRefSchema",
|
847
|
-
"location": {
|
848
|
-
"filePath": "git.main.runtime.ts",
|
849
|
-
"line": 121,
|
850
|
-
"character": 73
|
851
|
-
},
|
852
|
-
"name": "GitExtWorkspaceConfig",
|
853
|
-
"internalFilePath": "git.main.runtime.ts"
|
854
|
-
},
|
855
|
-
"isOptional": false,
|
856
|
-
"isSpread": false
|
857
|
-
}
|
858
|
-
],
|
859
|
-
"returnType": {
|
860
|
-
"__schema": "InferenceTypeSchema",
|
861
|
-
"location": {
|
862
|
-
"filePath": "git.main.runtime.ts",
|
863
|
-
"line": 121,
|
864
|
-
"character": 3
|
865
|
-
},
|
866
|
-
"type": "Promise<GitMain>"
|
867
|
-
},
|
868
|
-
"modifiers": [
|
869
|
-
"static",
|
870
|
-
"async"
|
871
|
-
]
|
872
|
-
}
|
873
|
-
],
|
874
|
-
"extendsNodes": [],
|
875
|
-
"implementNodes": []
|
876
|
-
},
|
877
|
-
{
|
878
|
-
"__schema": "UnImplementedSchema",
|
879
|
-
"location": {
|
880
|
-
"filePath": "git.main.runtime.ts",
|
881
|
-
"line": 133,
|
882
|
-
"character": 16
|
883
|
-
},
|
884
|
-
"name": "GitMain",
|
885
|
-
"type": "Identifier"
|
886
|
-
}
|
887
|
-
],
|
888
|
-
"internals": [
|
889
|
-
{
|
890
|
-
"__schema": "TypeSchema",
|
891
|
-
"location": {
|
892
|
-
"filePath": "git.main.runtime.ts",
|
893
|
-
"line": 13,
|
894
|
-
"character": 1
|
895
|
-
},
|
896
|
-
"signature": "type SetGitMergeDriverOpts = {\n global?: boolean;\n}",
|
897
|
-
"name": "SetGitMergeDriverOpts",
|
898
|
-
"type": {
|
899
|
-
"__schema": "TypeLiteralSchema",
|
900
|
-
"location": {
|
901
|
-
"filePath": "git.main.runtime.ts",
|
902
|
-
"line": 13,
|
903
|
-
"character": 30
|
904
|
-
},
|
905
|
-
"members": [
|
906
|
-
{
|
907
|
-
"__schema": "VariableLikeSchema",
|
908
|
-
"location": {
|
909
|
-
"filePath": "git.main.runtime.ts",
|
910
|
-
"line": 14,
|
911
|
-
"character": 3
|
912
|
-
},
|
913
|
-
"signature": "(property) global?: boolean | undefined",
|
914
|
-
"name": "global",
|
915
|
-
"type": {
|
916
|
-
"__schema": "KeywordTypeSchema",
|
917
|
-
"location": {
|
918
|
-
"filePath": "git.main.runtime.ts",
|
919
|
-
"line": 14,
|
920
|
-
"character": 12
|
921
|
-
},
|
922
|
-
"name": "boolean"
|
923
|
-
},
|
924
|
-
"isOptional": true
|
925
|
-
}
|
926
|
-
]
|
927
|
-
}
|
928
|
-
},
|
929
|
-
{
|
930
|
-
"__schema": "ModuleSchema",
|
931
|
-
"location": {
|
932
|
-
"filePath": "git.main.runtime.ts",
|
933
|
-
"line": 17,
|
934
|
-
"character": 1
|
935
|
-
},
|
936
|
-
"exports": [
|
937
|
-
{
|
938
|
-
"__schema": "VariableLikeSchema",
|
939
|
-
"location": {
|
940
|
-
"filePath": "git.main.runtime.ts",
|
941
|
-
"line": 17,
|
942
|
-
"character": 7
|
943
|
-
},
|
944
|
-
"signature": "const GIT_BASE_KEY: \"merge.bitmap-driver\"",
|
945
|
-
"name": "GIT_BASE_KEY",
|
946
|
-
"type": {
|
947
|
-
"__schema": "InferenceTypeSchema",
|
948
|
-
"location": {
|
949
|
-
"filePath": "git.main.runtime.ts",
|
950
|
-
"line": 17,
|
951
|
-
"character": 7
|
952
|
-
},
|
953
|
-
"type": "\"merge.bitmap-driver\""
|
954
|
-
},
|
955
|
-
"isOptional": false,
|
956
|
-
"defaultValue": "'merge.bitmap-driver'"
|
957
|
-
}
|
958
|
-
],
|
959
|
-
"internals": []
|
960
|
-
},
|
961
|
-
{
|
962
|
-
"__schema": "ModuleSchema",
|
963
|
-
"location": {
|
964
|
-
"filePath": "git.main.runtime.ts",
|
965
|
-
"line": 18,
|
966
|
-
"character": 1
|
967
|
-
},
|
968
|
-
"exports": [
|
969
|
-
{
|
970
|
-
"__schema": "VariableLikeSchema",
|
971
|
-
"location": {
|
972
|
-
"filePath": "git.main.runtime.ts",
|
973
|
-
"line": 18,
|
974
|
-
"character": 7
|
975
|
-
},
|
976
|
-
"signature": "const GIT_NAME_KEY: \"merge.bitmap-driver.name\"",
|
977
|
-
"name": "GIT_NAME_KEY",
|
978
|
-
"type": {
|
979
|
-
"__schema": "InferenceTypeSchema",
|
980
|
-
"location": {
|
981
|
-
"filePath": "git.main.runtime.ts",
|
982
|
-
"line": 18,
|
983
|
-
"character": 7
|
984
|
-
},
|
985
|
-
"type": "\"merge.bitmap-driver.name\""
|
986
|
-
},
|
987
|
-
"isOptional": false,
|
988
|
-
"defaultValue": "`${GIT_BASE_KEY}.name`"
|
989
|
-
}
|
990
|
-
],
|
991
|
-
"internals": []
|
992
|
-
},
|
993
|
-
{
|
994
|
-
"__schema": "ModuleSchema",
|
995
|
-
"location": {
|
996
|
-
"filePath": "git.main.runtime.ts",
|
997
|
-
"line": 19,
|
998
|
-
"character": 1
|
999
|
-
},
|
1000
|
-
"exports": [
|
1001
|
-
{
|
1002
|
-
"__schema": "VariableLikeSchema",
|
1003
|
-
"location": {
|
1004
|
-
"filePath": "git.main.runtime.ts",
|
1005
|
-
"line": 19,
|
1006
|
-
"character": 7
|
1007
|
-
},
|
1008
|
-
"signature": "const GIT_DRIVER_KEY: \"merge.bitmap-driver.driver\"",
|
1009
|
-
"name": "GIT_DRIVER_KEY",
|
1010
|
-
"type": {
|
1011
|
-
"__schema": "InferenceTypeSchema",
|
1012
|
-
"location": {
|
1013
|
-
"filePath": "git.main.runtime.ts",
|
1014
|
-
"line": 19,
|
1015
|
-
"character": 7
|
1016
|
-
},
|
1017
|
-
"type": "\"merge.bitmap-driver.driver\""
|
1018
|
-
},
|
1019
|
-
"isOptional": false,
|
1020
|
-
"defaultValue": "`${GIT_BASE_KEY}.driver`"
|
1021
|
-
}
|
1022
|
-
],
|
1023
|
-
"internals": []
|
1024
|
-
},
|
1025
|
-
{
|
1026
|
-
"__schema": "ModuleSchema",
|
1027
|
-
"location": {
|
1028
|
-
"filePath": "git.main.runtime.ts",
|
1029
|
-
"line": 21,
|
1030
|
-
"character": 1
|
1031
|
-
},
|
1032
|
-
"exports": [
|
1033
|
-
{
|
1034
|
-
"__schema": "VariableLikeSchema",
|
1035
|
-
"location": {
|
1036
|
-
"filePath": "git.main.runtime.ts",
|
1037
|
-
"line": 21,
|
1038
|
-
"character": 7
|
1039
|
-
},
|
1040
|
-
"signature": "const GIT_NAME_VALUE: \"A custom merge driver used to resolve conflicts in .bitmap files\"",
|
1041
|
-
"name": "GIT_NAME_VALUE",
|
1042
|
-
"type": {
|
1043
|
-
"__schema": "InferenceTypeSchema",
|
1044
|
-
"location": {
|
1045
|
-
"filePath": "git.main.runtime.ts",
|
1046
|
-
"line": 21,
|
1047
|
-
"character": 7
|
1048
|
-
},
|
1049
|
-
"type": "\"A custom merge driver used to resolve conflicts in .bitmap files\""
|
1050
|
-
},
|
1051
|
-
"isOptional": false,
|
1052
|
-
"defaultValue": "'A custom merge driver used to resolve conflicts in .bitmap files'"
|
1053
|
-
}
|
1054
|
-
],
|
1055
|
-
"internals": []
|
1056
|
-
},
|
1057
|
-
{
|
1058
|
-
"__schema": "ModuleSchema",
|
1059
|
-
"location": {
|
1060
|
-
"filePath": "git.main.runtime.ts",
|
1061
|
-
"line": 23,
|
1062
|
-
"character": 1
|
1063
|
-
},
|
1064
|
-
"exports": [
|
1065
|
-
{
|
1066
|
-
"__schema": "VariableLikeSchema",
|
1067
|
-
"location": {
|
1068
|
-
"filePath": "git.main.runtime.ts",
|
1069
|
-
"line": 23,
|
1070
|
-
"character": 7
|
1071
|
-
},
|
1072
|
-
"signature": "const GIT_DRIVER_VALUE: \"bd git merge-bitmaps %O %A %B\"",
|
1073
|
-
"name": "GIT_DRIVER_VALUE",
|
1074
|
-
"type": {
|
1075
|
-
"__schema": "InferenceTypeSchema",
|
1076
|
-
"location": {
|
1077
|
-
"filePath": "git.main.runtime.ts",
|
1078
|
-
"line": 23,
|
1079
|
-
"character": 7
|
1080
|
-
},
|
1081
|
-
"type": "\"bd git merge-bitmaps %O %A %B\""
|
1082
|
-
},
|
1083
|
-
"isOptional": false,
|
1084
|
-
"defaultValue": "'bd git merge-bitmaps %O %A %B'"
|
1085
|
-
}
|
1086
|
-
],
|
1087
|
-
"internals": []
|
1088
|
-
},
|
1089
|
-
{
|
1090
|
-
"__schema": "ModuleSchema",
|
1091
|
-
"location": {
|
1092
|
-
"filePath": "git.main.runtime.ts",
|
1093
|
-
"line": 25,
|
1094
|
-
"character": 1
|
1095
|
-
},
|
1096
|
-
"exports": [
|
1097
|
-
{
|
1098
|
-
"__schema": "VariableLikeSchema",
|
1099
|
-
"location": {
|
1100
|
-
"filePath": "git.main.runtime.ts",
|
1101
|
-
"line": 25,
|
1102
|
-
"character": 7
|
1103
|
-
},
|
1104
|
-
"signature": "const GIT_ATTRIBUTES: \".bitmap merge=bitmap-driver\"",
|
1105
|
-
"name": "GIT_ATTRIBUTES",
|
1106
|
-
"type": {
|
1107
|
-
"__schema": "InferenceTypeSchema",
|
1108
|
-
"location": {
|
1109
|
-
"filePath": "git.main.runtime.ts",
|
1110
|
-
"line": 25,
|
1111
|
-
"character": 7
|
1112
|
-
},
|
1113
|
-
"type": "\".bitmap merge=bitmap-driver\""
|
1114
|
-
},
|
1115
|
-
"isOptional": false,
|
1116
|
-
"defaultValue": "'.bitmap merge=bitmap-driver'"
|
1117
|
-
}
|
1118
|
-
],
|
1119
|
-
"internals": []
|
1120
|
-
},
|
1121
|
-
{
|
1122
|
-
"__schema": "UnImplementedSchema",
|
1123
|
-
"location": {
|
1124
|
-
"filePath": "git.main.runtime.ts",
|
1125
|
-
"line": 131,
|
1126
|
-
"character": 1
|
1127
|
-
},
|
1128
|
-
"name": "GitAspect.addRuntime(GitMain);",
|
1129
|
-
"type": "ExpressionStatement"
|
1130
|
-
}
|
1131
|
-
]
|
1132
|
-
},
|
1133
|
-
{
|
1134
|
-
"__schema": "ModuleSchema",
|
1135
|
-
"location": {
|
1136
|
-
"filePath": "git.aspect.ts",
|
1137
|
-
"line": 1,
|
1138
|
-
"character": 1
|
1139
|
-
},
|
1140
|
-
"exports": [
|
1141
|
-
{
|
1142
|
-
"__schema": "VariableLikeSchema",
|
1143
|
-
"location": {
|
1144
|
-
"filePath": "git.aspect.ts",
|
1145
|
-
"line": 3,
|
1146
|
-
"character": 14
|
1147
|
-
},
|
1148
|
-
"signature": "const GitAspect: Aspect",
|
1149
|
-
"name": "GitAspect",
|
1150
|
-
"type": {
|
1151
|
-
"__schema": "TypeRefSchema",
|
1152
|
-
"location": {
|
1153
|
-
"filePath": "git.aspect.ts",
|
1154
|
-
"line": 3,
|
1155
|
-
"character": 14
|
1156
|
-
},
|
1157
|
-
"name": "Aspect",
|
1158
|
-
"componentId": {
|
1159
|
-
"scope": "teambit.harmony",
|
1160
|
-
"name": "harmony",
|
1161
|
-
"version": "0.4.6"
|
1162
|
-
}
|
1163
|
-
},
|
1164
|
-
"isOptional": false,
|
1165
|
-
"defaultValue": "Aspect.create({\n id: 'teambit.git/git',\n})"
|
1166
|
-
}
|
1167
|
-
],
|
1168
|
-
"internals": []
|
1169
|
-
}
|
1170
|
-
],
|
1171
|
-
"componentId": {
|
1172
|
-
"scope": "teambit.git",
|
1173
|
-
"name": "git",
|
1174
|
-
"version": "1.0.515"
|
1175
|
-
},
|
1176
|
-
"taggedModuleExports": []
|
1177
|
-
}
|
File without changes
|