@teambit/bit 2.2.19 → 2.2.20
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/bin/bit +14 -0
- package/dist/bin/bit +14 -0
- package/dist/{preview-1787931140858.js → preview-1787935242870.js} +2 -2
- package/package.json +14 -14
package/bin/bit
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Enable node's built-in compile cache before requiring the app: bit compiles ~1,200 modules on
|
|
4
|
+
// every invocation, and reusing their V8 bytecode cuts startup measurably (0.87s -> 0.71s on a
|
|
5
|
+
// one-component workspace). Location follows NODE_COMPILE_CACHE, else a dir under os.tmpdir().
|
|
6
|
+
// This is node's own mechanism (>= 22.1), not the `v8-compile-cache` package dropped in 2024
|
|
7
|
+
// (7a159b374) which patched Module._compile and broke on ESM. BIT_NO_COMPILE_CACHE=1 opts out.
|
|
8
|
+
if (!process.env.BIT_NO_COMPILE_CACHE) {
|
|
9
|
+
try {
|
|
10
|
+
require('module').enableCompileCache();
|
|
11
|
+
} catch {
|
|
12
|
+
// unsupported node, or an unwritable cache dir: startup simply stays uncached.
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
2
16
|
require('../dist/app');
|
package/dist/bin/bit
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// Enable node's built-in compile cache before requiring the app: bit compiles ~1,200 modules on
|
|
4
|
+
// every invocation, and reusing their V8 bytecode cuts startup measurably (0.87s -> 0.71s on a
|
|
5
|
+
// one-component workspace). Location follows NODE_COMPILE_CACHE, else a dir under os.tmpdir().
|
|
6
|
+
// This is node's own mechanism (>= 22.1), not the `v8-compile-cache` package dropped in 2024
|
|
7
|
+
// (7a159b374) which patched Module._compile and broke on ESM. BIT_NO_COMPILE_CACHE=1 opts out.
|
|
8
|
+
if (!process.env.BIT_NO_COMPILE_CACHE) {
|
|
9
|
+
try {
|
|
10
|
+
require('module').enableCompileCache();
|
|
11
|
+
} catch {
|
|
12
|
+
// unsupported node, or an unwritable cache dir: startup simply stays uncached.
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
2
16
|
require('../dist/app');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@2.2.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@2.2.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@2.2.20/dist/bit.compositions.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_bit@2.2.20/dist/bit.docs.js';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/bit",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.20",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/bit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "bit",
|
|
9
|
-
"version": "2.2.
|
|
9
|
+
"version": "2.2.20"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"comment-json": "4.2.5",
|
|
@@ -44,14 +44,22 @@
|
|
|
44
44
|
"@apollo/client": "3.6.9",
|
|
45
45
|
"@teambit/harmony": "0.4.12",
|
|
46
46
|
"@teambit/design.ui.brand.logo": "1.96.19",
|
|
47
|
+
"@teambit/cli": "0.0.1379",
|
|
47
48
|
"@teambit/legacy.extension-data": "0.0.153",
|
|
48
49
|
"@teambit/bit.get-bit-version": "0.0.27",
|
|
50
|
+
"@teambit/dependency-resolver": "1.0.1140",
|
|
49
51
|
"@teambit/legacy.analytics": "0.0.106",
|
|
50
52
|
"@teambit/legacy.constants": "0.0.42",
|
|
51
53
|
"@teambit/legacy.loader": "0.0.30",
|
|
52
54
|
"@teambit/legacy.logger": "0.0.57",
|
|
55
|
+
"@teambit/aspect-loader": "1.0.1140",
|
|
53
56
|
"@teambit/bit-error": "0.0.404",
|
|
57
|
+
"@teambit/clear-cache": "0.0.588",
|
|
54
58
|
"@teambit/component-id": "1.2.4",
|
|
59
|
+
"@teambit/config": "0.0.1554",
|
|
60
|
+
"@teambit/envs": "1.0.1140",
|
|
61
|
+
"@teambit/generator": "1.0.1141",
|
|
62
|
+
"@teambit/host-initializer": "0.0.853",
|
|
55
63
|
"@teambit/legacy-bit-id": "1.1.3",
|
|
56
64
|
"@teambit/legacy.bit-map": "0.0.208",
|
|
57
65
|
"@teambit/legacy.consumer-component": "0.0.152",
|
|
@@ -61,17 +69,6 @@
|
|
|
61
69
|
"@teambit/scope.modules.find-scope-path": "0.0.44",
|
|
62
70
|
"@teambit/workspace.modules.node-modules-linker": "0.0.382",
|
|
63
71
|
"@teambit/workspace.modules.workspace-locator": "0.0.43",
|
|
64
|
-
"@teambit/ui-foundation.ui.navigation.react-router-adapter": "6.1.3",
|
|
65
|
-
"@teambit/base-react.navigation.link": "2.0.31",
|
|
66
|
-
"@teambit/harmony.content.cli-reference": "2.0.1228",
|
|
67
|
-
"@teambit/cli": "0.0.1379",
|
|
68
|
-
"@teambit/dependency-resolver": "1.0.1140",
|
|
69
|
-
"@teambit/aspect-loader": "1.0.1140",
|
|
70
|
-
"@teambit/clear-cache": "0.0.588",
|
|
71
|
-
"@teambit/config": "0.0.1554",
|
|
72
|
-
"@teambit/envs": "1.0.1140",
|
|
73
|
-
"@teambit/generator": "1.0.1141",
|
|
74
|
-
"@teambit/host-initializer": "0.0.853",
|
|
75
72
|
"@teambit/api-reference": "1.0.1141",
|
|
76
73
|
"@teambit/api-server": "1.0.1173",
|
|
77
74
|
"@teambit/application": "1.0.1140",
|
|
@@ -174,7 +171,10 @@
|
|
|
174
171
|
"@teambit/worker": "0.0.1683",
|
|
175
172
|
"@teambit/workspace-config-files": "1.0.1140",
|
|
176
173
|
"@teambit/workspace": "1.0.1140",
|
|
177
|
-
"@teambit/yarn": "1.0.1141"
|
|
174
|
+
"@teambit/yarn": "1.0.1141",
|
|
175
|
+
"@teambit/ui-foundation.ui.navigation.react-router-adapter": "6.1.3",
|
|
176
|
+
"@teambit/base-react.navigation.link": "2.0.31",
|
|
177
|
+
"@teambit/harmony.content.cli-reference": "2.0.1229"
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|
|
180
180
|
"@types/fs-extra": "9.0.7",
|