Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflect tsconfig composite and incremental to ts_project() #780

Closed
wants to merge 2 commits into from

Conversation

walkerburgin
Copy link
Contributor

I noticed that bazel configure is creating BUILD.bazel files that would result in the following error:

ERROR: ts_project rule @@//pkgs/foo-lib:typescript was configured with attributes that don't match the tsconfig
 - attribute composite=false does not match compilerOptions.composite=true
 - attribute incremental=false does not match compilerOptions.incremental=true
You can automatically fix this by running:
    npx @bazel/buildozer 'set composite True' 'set incremental True' @@//pkgs/foo-lib:typescript
Or to suppress this error, either:
 - pass --norun_validations to Bazel to turn off the feature completely, or
 - disable validation for this target by running:
    npx @bazel/buildozer 'set validate False' @@//pkgs/foo-lib:typescript

It would be nice for these compilerOptions to be automatically mirrored into the ts_project().


Changes are visible to end-users: yes

  • Searched for relevant documentation and updated as needed: yes
  • Breaking change (forces users to change their own code or config): no
  • Suggested release notes appear below: no

Test plan

  • New test cases added

@CLAassistant
Copy link

CLAassistant commented Nov 29, 2024

CLA assistant check
All committers have signed the CLA.

@jbedard jbedard closed this Dec 3, 2024
@jbedard jbedard closed this Dec 3, 2024
jbedard added a commit that referenced this pull request Dec 13, 2024
…into ts_project() rules (#7460)

Synced from #780 by
walkerburgin:
Reflect tsconfig `composite` and `incremental` to `ts_project()`

---

I noticed that `bazel configure` is creating `BUILD.bazel` files that
would result in the following error:

```
ERROR: ts_project rule @@//pkgs/foo-lib:typescript was configured with attributes that don't match the tsconfig
 - attribute composite=false does not match compilerOptions.composite=true
 - attribute incremental=false does not match compilerOptions.incremental=true
You can automatically fix this by running:
    npx @bazel/buildozer 'set composite True' 'set incremental True' @@//pkgs/foo-lib:typescript
Or to suppress this error, either:
 - pass --norun_validations to Bazel to turn off the feature completely, or
 - disable validation for this target by running:
    npx @bazel/buildozer 'set validate False' @@//pkgs/foo-lib:typescript
```

It would be nice for these `compilerOptions` to be automatically
mirrored into the `ts_project()`.

---

### Changes are visible to end-users: no

### Test plan

- New test cases added

Closes #780

Co-authored-by: Walker Burgin <walkerburgin@gmail.com>
GitOrigin-RevId: 7897b6f963be24baa3833bf9c39c6287ac8fd383
jbedard added a commit that referenced this pull request Dec 14, 2024
…into ts_project() rules (#7460)

Synced from #780 by
walkerburgin:
Reflect tsconfig `composite` and `incremental` to `ts_project()`

---

I noticed that `bazel configure` is creating `BUILD.bazel` files that
would result in the following error:

```
ERROR: ts_project rule @@//pkgs/foo-lib:typescript was configured with attributes that don't match the tsconfig
 - attribute composite=false does not match compilerOptions.composite=true
 - attribute incremental=false does not match compilerOptions.incremental=true
You can automatically fix this by running:
    npx @bazel/buildozer 'set composite True' 'set incremental True' @@//pkgs/foo-lib:typescript
Or to suppress this error, either:
 - pass --norun_validations to Bazel to turn off the feature completely, or
 - disable validation for this target by running:
    npx @bazel/buildozer 'set validate False' @@//pkgs/foo-lib:typescript
```

It would be nice for these `compilerOptions` to be automatically
mirrored into the `ts_project()`.

---

### Changes are visible to end-users: no

### Test plan

- New test cases added

Closes #780

Co-authored-by: Walker Burgin <walkerburgin@gmail.com>
GitOrigin-RevId: 7897b6f963be24baa3833bf9c39c6287ac8fd383
gregmagolan pushed a commit that referenced this pull request Dec 15, 2024
…into ts_project() rules (#7460)

Synced from #780 by
walkerburgin:
Reflect tsconfig `composite` and `incremental` to `ts_project()`

---

I noticed that `bazel configure` is creating `BUILD.bazel` files that
would result in the following error:

```
ERROR: ts_project rule @@//pkgs/foo-lib:typescript was configured with attributes that don't match the tsconfig
 - attribute composite=false does not match compilerOptions.composite=true
 - attribute incremental=false does not match compilerOptions.incremental=true
You can automatically fix this by running:
    npx @bazel/buildozer 'set composite True' 'set incremental True' @@//pkgs/foo-lib:typescript
Or to suppress this error, either:
 - pass --norun_validations to Bazel to turn off the feature completely, or
 - disable validation for this target by running:
    npx @bazel/buildozer 'set validate False' @@//pkgs/foo-lib:typescript
```

It would be nice for these `compilerOptions` to be automatically
mirrored into the `ts_project()`.

---

### Changes are visible to end-users: no

### Test plan

- New test cases added

Closes #780

Co-authored-by: Walker Burgin <walkerburgin@gmail.com>
GitOrigin-RevId: 7897b6f963be24baa3833bf9c39c6287ac8fd383
gregmagolan pushed a commit that referenced this pull request Dec 15, 2024
…into ts_project() rules (#7460)

Synced from #780 by
walkerburgin:
Reflect tsconfig `composite` and `incremental` to `ts_project()`

---

I noticed that `bazel configure` is creating `BUILD.bazel` files that
would result in the following error:

```
ERROR: ts_project rule @@//pkgs/foo-lib:typescript was configured with attributes that don't match the tsconfig
 - attribute composite=false does not match compilerOptions.composite=true
 - attribute incremental=false does not match compilerOptions.incremental=true
You can automatically fix this by running:
    npx @bazel/buildozer 'set composite True' 'set incremental True' @@//pkgs/foo-lib:typescript
Or to suppress this error, either:
 - pass --norun_validations to Bazel to turn off the feature completely, or
 - disable validation for this target by running:
    npx @bazel/buildozer 'set validate False' @@//pkgs/foo-lib:typescript
```

It would be nice for these `compilerOptions` to be automatically
mirrored into the `ts_project()`.

---

### Changes are visible to end-users: no

### Test plan

- New test cases added

Closes #780

Co-authored-by: Walker Burgin <walkerburgin@gmail.com>
GitOrigin-RevId: 7897b6f963be24baa3833bf9c39c6287ac8fd383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants