Skip to content

Commit 07919e9

Browse files
authored
Merge branch 'master' into enhance-tar-corruption-debugging
2 parents 9d551fa + 7783122 commit 07919e9

File tree

37 files changed

+7918
-27568
lines changed

37 files changed

+7918
-27568
lines changed

.bitmap

Lines changed: 247 additions & 247 deletions
Large diffs are not rendered by default.

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ commands:
368368
- restore_cache:
369369
key: bitsrc-registry10
370370
- restore_cache:
371-
key: core-aspect-env-v0.0.80-v1
371+
key: core-aspect-env-v0.1.0-v1
372372
- run: npm view @teambit/bit version > ./version.txt
373373
- restore_cache:
374374
key: v3-linux-bvm-folder-{{ checksum "version.txt" }}
@@ -451,7 +451,7 @@ commands:
451451
- restore_cache:
452452
key: bitsrc-registry10
453453
- restore_cache:
454-
key: core-aspect-env-v0.0.80-v1
454+
key: core-aspect-env-v0.1.0-v1
455455
- run: npm view @teambit/bit version > ./version.txt
456456
- restore_cache:
457457
key: v3-linux-bvm-folder-{{ checksum "version.txt" }}
@@ -557,7 +557,7 @@ jobs:
557557
name: bbit install
558558
command: cd bit && bbit install
559559
- save_cache:
560-
key: core-aspect-env-v0.0.80-v1
560+
key: core-aspect-env-v0.1.0-v1
561561
paths:
562562
- /home/circleci/Library/Caches/Bit/capsules/caec9a107
563563
# - run: cd bit && bbit compile
@@ -612,7 +612,7 @@ jobs:
612612
- restore_cache:
613613
key: bitsrc-registry10
614614
- restore_cache:
615-
key: core-aspect-env-v0.0.80-v1
615+
key: core-aspect-env-v0.1.0-v1
616616
- run:
617617
name: 'check circular dependencies'
618618
command: 'cd bit && ./scripts/circular-deps-check/ci-check.sh'

components/legacy/e2e-helper/excluded-fixtures/workspace-with-tsconfig-issue/workspace.jsonc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
"packageManager": "teambit.dependencies/pnpm",
4040
"policy": {
4141
"dependencies": {
42-
"@teambit/mdx.ui.mdx-scope-context": "1.0.0",
43-
"@teambit/react.react-env": "1.0.77",
44-
"@teambit/typescript.typescript-compiler": "2.0.38"
42+
"@teambit/mdx.ui.mdx-scope-context": "1.0.7",
43+
"@teambit/react.react-env": "1.2.0",
44+
"@teambit/typescript.typescript-compiler": "2.0.64"
4545
},
4646
"peerDependencies": {}
4747
},

pnpm-lock.yaml

Lines changed: 6955 additions & 27181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scopes/component/checkout/checkout-cmd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class CheckoutCmd implements Command {
2222
{
2323
name: 'to',
2424
description:
25-
"permitted values: [head, latest, reset, {specific-version}, {head~x}]. 'head' - last snap/tag. 'latest' - semver latest tag. 'reset' - removes local changes",
25+
"permitted values: `[head, latest, reset, {specific-version}, {head~x}]`. 'head' - last snap/tag. 'latest' - semver latest tag. 'reset' - removes local changes",
2626
},
2727
{
2828
name: 'component-pattern',

scopes/compositions/model/composition-id/humanize.docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ labels: ['string', 'utility']
55

66
import { humanizeCompositionId } from './humanize'
77

8-
```jsx live=true
8+
```jsx live
99
() => {
1010
return (
1111
<>

scopes/dependencies/dependency-resolver/dependency-resolver.main.runtime.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,14 @@ export class DependencyResolverMain {
572572
}
573573
) {
574574
const envId = this.envs.getEnvId(component);
575+
const envIdWithoutVersion = ComponentID.fromString(envId).toStringWithoutVersion();
575576
const rootComponentsRelativePath = relative(options.workspacePath, options.rootComponentsPath);
576-
return getRootComponentDir(rootComponentsRelativePath ?? '', envId);
577+
const rootComponentDirWithVersion = getRootComponentDir(rootComponentsRelativePath ?? '', envId);
578+
const rootComponentDirWithoutVersion = getRootComponentDir(rootComponentsRelativePath ?? '', envIdWithoutVersion);
579+
if (fs.pathExistsSync(rootComponentDirWithoutVersion)) {
580+
return rootComponentDirWithoutVersion;
581+
}
582+
return rootComponentDirWithVersion;
577583
}
578584

579585
/**

scopes/harmony/aspect-docs/node/node.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Now that you have a basic customized extension to start from, you can go ahead a
101101
Node implements a set of APIs you can use to merge your preferred configuration with its defaults. These APIs are called **transformers** and they all start with the `override` pre-fix. Find [Available transformers here](#transformers-api-docs).
102102
In case of a conflict, your config will override the default.
103103

104-
```typescript {4,14} title="Customized TypeScript configuration"
104+
```typescript title="Customized TypeScript configuration"
105105
import { EnvsMain, EnvsAspect } from '@teambit/envs';
106106
import { NodeAspect, NodeMain } from '@teambit/node';
107107

@@ -135,7 +135,7 @@ The below example uses the `overrideCompiler` transformer to override the `getCo
135135
1. Create a new Babel compiler using the Babel aspect, and initialize it with the above babelConfig
136136
1. Use the `compose` Env API to apply the compiler override transformer and add Babel as a transpiler in the environment
137137

138-
```typescript {3,5,10-12,15,17-18,22-23}
138+
```typescript
139139
import { EnvsMain, EnvsAspect } from '@teambit/envs';
140140
import { NodeAspect, NodeMain } from '@teambit/node';
141141
import { BabelAspect, BabelMain } from '@teambit/babel';

scopes/harmony/aspect/aspect.cmd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ export class SetAspectCmd implements Command {
7373
},
7474
{
7575
name: 'aspect-id',
76-
description: "the aspect's component id",
76+
description: `the aspect's component id`,
7777
},
7878
{
7979
name: 'config',
80-
description: `the aspect config. enter the config as a stringified JSON (e.g. '{"foo":"bar"}' ). when no config is provided, an aspect is set with an empty config ({}).`,
80+
description: `the aspect config. enter the config as a stringified JSON (e.g. \`{"foo":"bar"}\` ). when no config is provided, an aspect is set with an empty config ({}).`,
8181
},
8282
];
8383
options = [

scopes/harmony/bit/run-bit.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ function consoleFileReadUsages() {
5757
return;
5858
}
5959
let numR = 0;
60-
const print = (filename: string) => {
60+
const print = (filename: string | URL) => {
61+
const path = filename instanceof URL ? filename.pathname : String(filename);
6162
// eslint-disable-next-line no-console
62-
console.log(`#${numR}`, filename);
63+
console.log(`#${numR}`, path);
6364
};
6465
const originalReadFile = fs.readFile;
6566
const originalReadFileSync = fs.readFileSync;

0 commit comments

Comments
 (0)