Skip to content

Commit

Permalink
Bump core from 43827aa to 74cd815 (#2154)
Browse files Browse the repository at this point in the history
Bumps [core](https://github.com/microsoft/typespec) from `43827aa` to
`74cd815`.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/typespec/commit/74cd815808b935dd6174bdb40919b7f328456a0d"><code>74cd815</code></a>
Use exported <code>filterModelPropertiesInPlace</code> from
<code>utils</code> (<a
href="https://redirect.github.com/microsoft/typespec/issues/5756">#5756</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/6d4e89c5a5d2ec8f03cecc62a27126fda7aec2b2"><code>6d4e89c</code></a>
Fix JS doc not generated since typedoc 0.27.0 upgrade (<a
href="https://redirect.github.com/microsoft/typespec/issues/5812">#5812</a>)</li>
<li><a
href="https://github.com/microsoft/typespec/commit/f81fa4558987991a525a8e4787839f805a7a7721"><code>f81fa45</code></a>
Setup formatter for shellscript (<a
href="https://redirect.github.com/microsoft/typespec/issues/5809">#5809</a>)</li>
<li>See full diff in <a
href="https://github.com/microsoft/typespec/compare/43827aafef236d8ff9a454f790350609683458b4...74cd815808b935dd6174bdb40919b7f328456a0d">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Timothee Guerin <[email protected]>
  • Loading branch information
dependabot[bot] and timotheeguerin authored Jan 30, 2025
1 parent f27b7c3 commit a4879f4
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:20

RUN corepack enable pnpm && \
echo 'alias pnpm="corepack pnpm"' >> /home/node/.bash_aliases
RUN corepack enable pnpm \
&& echo 'alias pnpm="corepack pnpm"' >> /home/node/.bash_aliases

RUN git config --global submodule.recurse true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,5 @@ packages/samples/test/output/azure/templates-contoso/setup.*
# Playwright temp file
.last_run.json


# Astro
.astro/
6 changes: 4 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ core/packages/compiler/test/formatter/**/*.tsp
# That is an example with error and can't be formatted
core/packages/samples/specs/local-typespec/test.tsp

# Don't check format website generated files.
# Don't check format website generated files.
core/packages/website/.docusaurus/
core/packages/website/build/
core/packages/website/versioned_sidebars/
Expand All @@ -41,7 +41,6 @@ packages/website/build/
packages/website/versioned_sidebars/
packages/website/versions.json


# Auto generated reference docs.
**/docs/**/reference/
packages/website/versioned_docs/**/reference/
Expand Down Expand Up @@ -77,3 +76,6 @@ packages/samples/common-types/**/*.json
core/packages/http-client-csharp/
core/packages/http-client-java/
core/packages/http-client-python/

.gitattributes
CODEOWNERS
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"plugins": [
"./core/packages/prettier-plugin-typespec/dist/index.js",
"./node_modules/prettier-plugin-organize-imports/index.js",
"prettier-plugin-astro"
"prettier-plugin-astro",
"prettier-plugin-sh"
],
"overrides": [
{
Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ each individual repo as you would any other.

```bash
pnpm e2e-tests

```

### Test with local cadl-ranch repo
Expand Down
3 changes: 1 addition & 2 deletions packages/samples/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Typespec Azure Samples

```bash
npm run test # Check Samples match snapshots
npm run test # Check Samples match snapshots
npm run test:ci # run test same as CI


npm run test:regen -- -g "<sample-name>" # Regen of this name

npm run test:regen # Regen all samples.
Expand Down
28 changes: 28 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install -g @azure-tools/typespec-client-generator-cli
3. Switch to the language repository clone you want to generate a client library in. Example:

```bash
cd <path to>/azure-sdk-for-python
cd < path to > /azure-sdk-for-python
```

4. From the root of the repository run the following command:
Expand All @@ -34,7 +34,7 @@ azure-sdk-for-python> tsp-client init -c <path to local typespec project at tspc
Example:

```bash
azure-sdk-for-python> tsp-client init -c ../azure-rest-api-specs/specification/contosowidgetmanager/Contoso.WidgetManager/
azure-sdk-for-python > tsp-client init -c ../azure-rest-api-specs/specification/contosowidgetmanager/Contoso.WidgetManager/
```

:::info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install -g @azure-tools/typespec-client-generator-cli
## Usage

```bash
tsp-client <command> [options]
tsp-client < command > [options]
```

## Commands
Expand All @@ -40,7 +40,7 @@ This command should be run from the root of the repository. Example repository r
Example:

```bash
azure-sdk-for-python> tsp-client init -c https://github.com/Azure/azure-rest-api-specs/blob/431eb865a581da2cd7b9e953ae52cb146f31c2a6/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml
azure-sdk-for-python > tsp-client init -c https://github.com/Azure/azure-rest-api-specs/blob/431eb865a581da2cd7b9e953ae52cb146f31c2a6/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml
```

### update
Expand All @@ -50,7 +50,7 @@ The `update` command will look for a [tsp-location.yaml](#tsp-locationyaml) file
Example:

```bash
azure-sdk-for-python/sdk/contosowidgetmanager/azure-contoso-widgetmanager> tsp-client update
azure-sdk-for-python/sdk/contosowidgetmanager/azure-contoso-widgetmanager > tsp-client update
```

### sync
Expand All @@ -62,7 +62,7 @@ By default the `sync` command will look for a tsp-location.yaml to get the proje
Example:

```bash
azure-sdk-for-python/sdk/contosowidgetmanager/azure-contoso-widgetmanager> tsp-client sync
azure-sdk-for-python/sdk/contosowidgetmanager/azure-contoso-widgetmanager > tsp-client sync
```

### generate
Expand All @@ -72,7 +72,7 @@ Generate a client library from a TypeSpec project. The `generate` command should
Example:

```bash
azure-sdk-for-python/sdk/contosowidgetmanager/azure-contoso-widgetmanager> tsp-client generate
azure-sdk-for-python/sdk/contosowidgetmanager/azure-contoso-widgetmanager > tsp-client generate
```

### convert
Expand All @@ -82,7 +82,7 @@ Convert an existing swagger specification to a TypeSpec project. This command sh
Example:

```bash
azure-rest-api-specs/specification/contosowidgetmanager> tsp-client convert --swagger-readme ./data-plane/readme.md -o ./Contoso.WidgetManager
azure-rest-api-specs/specification/contosowidgetmanager > tsp-client convert --swagger-readme ./data-plane/readme.md -o ./Contoso.WidgetManager
```

### sort-swagger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ We understand that change can be challenging, and we appreciate your patience an
An experimental migration tool has been introduced to take care of many of the manual migration steps. Just execute following command in your TypeSpec folder.

```bash
npx @typespec/migrate
npx @typespec/migrate
```

If you would like execute from a different folder or don't have a `package.json` that indicates compiler package versions, please see command line options:

```bash
npx @typespec/migrate --help
npx @typespec/migrate --help
```

The migration tool will perform following steps:
Expand Down

0 comments on commit a4879f4

Please sign in to comment.