@teambit/install 1.0.1168 → 1.0.1170
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _chai() {
|
|
4
|
+
const data = require("chai");
|
|
5
|
+
_chai = function () {
|
|
6
|
+
return data;
|
|
7
|
+
};
|
|
8
|
+
return data;
|
|
9
|
+
}
|
|
10
|
+
function _harmonyTesting() {
|
|
11
|
+
const data = require("@teambit/harmony.testing.load-aspect");
|
|
12
|
+
_harmonyTesting = function () {
|
|
13
|
+
return data;
|
|
14
|
+
};
|
|
15
|
+
return data;
|
|
16
|
+
}
|
|
17
|
+
function _workspaceTesting() {
|
|
18
|
+
const data = require("@teambit/workspace.testing.mock-workspace");
|
|
19
|
+
_workspaceTesting = function () {
|
|
20
|
+
return data;
|
|
21
|
+
};
|
|
22
|
+
return data;
|
|
23
|
+
}
|
|
24
|
+
function _componentId() {
|
|
25
|
+
const data = require("@teambit/component-id");
|
|
26
|
+
_componentId = function () {
|
|
27
|
+
return data;
|
|
28
|
+
};
|
|
29
|
+
return data;
|
|
30
|
+
}
|
|
31
|
+
function _install() {
|
|
32
|
+
const data = require("./install.aspect");
|
|
33
|
+
_install = function () {
|
|
34
|
+
return data;
|
|
35
|
+
};
|
|
36
|
+
return data;
|
|
37
|
+
}
|
|
38
|
+
describe('InstallMain', function () {
|
|
39
|
+
this.timeout(0);
|
|
40
|
+
let workspaceData;
|
|
41
|
+
let install;
|
|
42
|
+
before(async () => {
|
|
43
|
+
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
|
44
|
+
install = await (0, _harmonyTesting().loadAspect)(_install().InstallAspect, workspaceData.workspacePath);
|
|
45
|
+
});
|
|
46
|
+
after(async () => {
|
|
47
|
+
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
|
48
|
+
});
|
|
49
|
+
describe('env root manifest of an env shipped with bit', () => {
|
|
50
|
+
// envs shipped with bit are loaded from the bit installation itself. adding their npm package
|
|
51
|
+
// to the env root makes the package manager fetch the whole bit core into the workspace.
|
|
52
|
+
// only empty-env is asserted here: it stays a core env after the other core envs become
|
|
53
|
+
// regular envs, so this spec must not assume anything about them.
|
|
54
|
+
it('should not add the empty-env package to its env root', async () => {
|
|
55
|
+
// reaching the private method directly to avoid running a real package installation
|
|
56
|
+
const installWithEnvPackage = install;
|
|
57
|
+
const envId = _componentId().ComponentID.fromString('teambit.harmony/empty-env');
|
|
58
|
+
const envPackage = await installWithEnvPackage._getEnvPackage(envId);
|
|
59
|
+
(0, _chai().expect)(envPackage).to.be.undefined;
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=install.main.runtime.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_chai","data","require","_harmonyTesting","_workspaceTesting","_componentId","_install","describe","timeout","workspaceData","install","before","mockWorkspace","loadAspect","InstallAspect","workspacePath","after","destroyWorkspace","it","installWithEnvPackage","envId","ComponentID","fromString","envPackage","_getEnvPackage","expect","to","be","undefined"],"sources":["install.main.runtime.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { loadAspect } from '@teambit/harmony.testing.load-aspect';\nimport type { WorkspaceData } from '@teambit/workspace.testing.mock-workspace';\nimport { mockWorkspace, destroyWorkspace } from '@teambit/workspace.testing.mock-workspace';\nimport { ComponentID } from '@teambit/component-id';\nimport type { InstallMain } from './install.main.runtime';\nimport { InstallAspect } from './install.aspect';\n\ntype InstallWithEnvPackage = {\n _getEnvPackage(envId: ComponentID): Promise<Record<string, string> | undefined>;\n};\n\ndescribe('InstallMain', function () {\n this.timeout(0);\n let workspaceData: WorkspaceData;\n let install: InstallMain;\n before(async () => {\n workspaceData = mockWorkspace();\n install = await loadAspect(InstallAspect, workspaceData.workspacePath);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n\n describe('env root manifest of an env shipped with bit', () => {\n // envs shipped with bit are loaded from the bit installation itself. adding their npm package\n // to the env root makes the package manager fetch the whole bit core into the workspace.\n // only empty-env is asserted here: it stays a core env after the other core envs become\n // regular envs, so this spec must not assume anything about them.\n it('should not add the empty-env package to its env root', async () => {\n // reaching the private method directly to avoid running a real package installation\n const installWithEnvPackage = install as unknown as InstallWithEnvPackage;\n const envId = ComponentID.fromString('teambit.harmony/empty-env');\n const envPackage = await installWithEnvPackage._getEnvPackage(envId);\n expect(envPackage).to.be.undefined;\n });\n });\n});\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,gBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAG,kBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,iBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,aAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,YAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAMAM,QAAQ,CAAC,aAAa,EAAE,YAAY;EAClC,IAAI,CAACC,OAAO,CAAC,CAAC,CAAC;EACf,IAAIC,aAA4B;EAChC,IAAIC,OAAoB;EACxBC,MAAM,CAAC,YAAY;IACjBF,aAAa,GAAG,IAAAG,iCAAa,EAAC,CAAC;IAC/BF,OAAO,GAAG,MAAM,IAAAG,4BAAU,EAACC,wBAAa,EAAEL,aAAa,CAACM,aAAa,CAAC;EACxE,CAAC,CAAC;EACFC,KAAK,CAAC,YAAY;IAChB,MAAM,IAAAC,oCAAgB,EAACR,aAAa,CAAC;EACvC,CAAC,CAAC;EAEFF,QAAQ,CAAC,8CAA8C,EAAE,MAAM;IAC7D;IACA;IACA;IACA;IACAW,EAAE,CAAC,sDAAsD,EAAE,YAAY;MACrE;MACA,MAAMC,qBAAqB,GAAGT,OAA2C;MACzE,MAAMU,KAAK,GAAGC,0BAAW,CAACC,UAAU,CAAC,2BAA2B,CAAC;MACjE,MAAMC,UAAU,GAAG,MAAMJ,qBAAqB,CAACK,cAAc,CAACJ,KAAK,CAAC;MACpE,IAAAK,cAAM,EAACF,UAAU,CAAC,CAACG,EAAE,CAACC,EAAE,CAACC,SAAS;IACpC,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/install",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1170",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/workspace/install",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "install",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.1170"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "4.1.2",
|
|
@@ -24,35 +24,35 @@
|
|
|
24
24
|
"enquirer": "2.4.1",
|
|
25
25
|
"table": "6.7.3",
|
|
26
26
|
"@teambit/harmony": "0.4.12",
|
|
27
|
-
"@teambit/cli": "0.0.1392",
|
|
28
|
-
"@teambit/logger": "0.0.1485",
|
|
29
27
|
"@teambit/component-issues": "0.0.188",
|
|
30
28
|
"@teambit/component-package-version": "0.0.464",
|
|
31
29
|
"@teambit/component-version": "1.0.4",
|
|
32
|
-
"@teambit/component.sources": "0.0.215",
|
|
33
30
|
"@teambit/dependencies.fs.linked-dependencies": "0.0.77",
|
|
34
|
-
"@teambit/pkg.modules.component-package-name": "0.0.170",
|
|
35
31
|
"@teambit/toolbox.json.jsonc-utils": "0.0.15",
|
|
36
|
-
"@teambit/variants": "0.0.1660",
|
|
37
|
-
"@teambit/workspace.modules.node-modules-linker": "0.0.395",
|
|
38
32
|
"@teambit/workspace.root-components": "1.0.1",
|
|
39
33
|
"@teambit/bit-error": "0.0.404",
|
|
40
34
|
"@teambit/toolbox.time.time-format": "0.0.502",
|
|
41
|
-
"@teambit/
|
|
42
|
-
"@teambit/
|
|
43
|
-
"@teambit/
|
|
44
|
-
"@teambit/
|
|
45
|
-
"@teambit/
|
|
46
|
-
"@teambit/
|
|
47
|
-
"@teambit/
|
|
48
|
-
"@teambit/
|
|
49
|
-
"@teambit/
|
|
50
|
-
"@teambit/
|
|
51
|
-
"@teambit/
|
|
52
|
-
"@teambit/
|
|
53
|
-
"@teambit/
|
|
54
|
-
"@teambit/
|
|
55
|
-
"@teambit/
|
|
35
|
+
"@teambit/cli": "0.0.1393",
|
|
36
|
+
"@teambit/dependency-resolver": "1.0.1170",
|
|
37
|
+
"@teambit/logger": "0.0.1486",
|
|
38
|
+
"@teambit/workspace": "1.0.1170",
|
|
39
|
+
"@teambit/application": "1.0.1170",
|
|
40
|
+
"@teambit/aspect-loader": "1.0.1170",
|
|
41
|
+
"@teambit/bundler": "1.0.1170",
|
|
42
|
+
"@teambit/compiler": "1.0.1170",
|
|
43
|
+
"@teambit/component.sources": "0.0.216",
|
|
44
|
+
"@teambit/component": "1.0.1170",
|
|
45
|
+
"@teambit/envs": "1.0.1170",
|
|
46
|
+
"@teambit/generator": "1.0.1171",
|
|
47
|
+
"@teambit/host-initializer": "0.0.883",
|
|
48
|
+
"@teambit/ipc-events": "1.0.1170",
|
|
49
|
+
"@teambit/issues": "1.0.1170",
|
|
50
|
+
"@teambit/objects": "0.0.677",
|
|
51
|
+
"@teambit/pkg.modules.component-package-name": "0.0.171",
|
|
52
|
+
"@teambit/ui": "1.0.1170",
|
|
53
|
+
"@teambit/variants": "0.0.1661",
|
|
54
|
+
"@teambit/workspace-config-files": "1.0.1170",
|
|
55
|
+
"@teambit/workspace.modules.node-modules-linker": "0.0.396"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/fs-extra": "9.0.7",
|
|
@@ -61,7 +61,10 @@
|
|
|
61
61
|
"@types/semver": "7.5.8",
|
|
62
62
|
"strip-ansi": "6.0.0",
|
|
63
63
|
"@types/mocha": "9.1.0",
|
|
64
|
-
"@teambit/
|
|
64
|
+
"@teambit/component-id": "1.2.4",
|
|
65
|
+
"@teambit/harmony.envs.core-aspect-env": "2.1.1",
|
|
66
|
+
"@teambit/harmony.testing.load-aspect": "0.0.432",
|
|
67
|
+
"@teambit/workspace.testing.mock-workspace": "0.0.246"
|
|
65
68
|
},
|
|
66
69
|
"peerDependencies": {
|
|
67
70
|
"chai": "5.2.1"
|
|
File without changes
|