Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions .azure-pipelines/common-templates/install-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,14 @@ steps:
Write-Host "Copied npm config to $dst"

- task: Npm@1
displayName: Install AutoRest
displayName: Install Node build tools
retryCountOnTaskFailure: 2
inputs:
command: custom
workingDir: $(Build.SourcesDirectory)
customCommand: install --no-package-lock autorest@3.7.2

- task: Npm@1
displayName: Install AutorestCore
retryCountOnTaskFailure: 2
inputs:
command: custom
workingDir: $(Build.SourcesDirectory)
customCommand: install --no-package-lock @autorest/core@3.10.4
# Use the root manifest's Rush pin and transitive override. Matching rush.json
# avoids a second, unconstrained installation in Rush's global cache.
customCommand: install --no-package-lock

- task: PowerShell@2
displayName: Pre-populate autorest extension cache
Expand All @@ -87,14 +81,6 @@ steps:
pwsh: true
filePath: $(Build.SourcesDirectory)/tools/utilities/PrePopulateAutorestCache.ps1

- task: Npm@1
displayName: Install Rush
retryCountOnTaskFailure: 2
inputs:
command: custom
workingDir: $(Build.SourcesDirectory)
customCommand: install --no-package-lock @microsoft/rush

- task: PowerShell@2
displayName: Rush Build
inputs:
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ FakesAssemblies/
.ntvs_analysis.dat
node_modules/

# Generated by the GenerateModules.ps1 Node build-tools bootstrap (rush/autorest) at the repo root.
/package.json
# Local npm lockfile; build-tool versions and overrides are maintained in package.json.
/package-lock.json

# Visual Studio 6 build log
Expand Down
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ When it comes to modifying existing cmdlets, we recommend you use [AutoREST dire

See our [SDK generation steps wiki](https://github.com/microsoftgraph/msgraph-sdk-powershell/wiki/Generation-Process) for more information.

Build tooling is installed with `npm install --no-package-lock` at the repository root.
Keep the root `@microsoft/rush` version aligned with `autorest.powershell/rush.json` so Rush
uses the local installation rather than bootstrapping an unconstrained dependency tree.
The root manifest temporarily overrides Rush's `@typespec/ts-http-runtime` to `0.3.9`
to avoid the ESM-only proxy dependency introduced in `0.3.10` while CI remains on Node 18.
This is a compatibility workaround, not a change to the supported Node requirements of those dependencies.

The npm postinstall step patches AutoREST core 3.10.4 to share a queue of at most
32 concurrent temporary document/source-map writes per process. Cache prepopulation
applies the same patch to cached core installations. The patch fails explicitly if
the version or expected write sites change; review it when upgrading core.
Run its focused tests with `node --test tools/Tests/AutorestWriteQueue.test.cjs`.

## Debugging the Auth module

* In a terminal run `.\tools\GenerateAuthenticationModule.ps1 -Build -Pack`
Expand Down
6 changes: 3 additions & 3 deletions config/ModuleMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"versions": {
"authentication": {
"prerelease": "",
"version": "2.41.2"
"version": "2.42.0"
},
"beta": {
"prerelease": "",
"version": "2.41.2"
"version": "2.42.0"
},
"v1.0": {
"prerelease": "",
"version": "2.41.2"
"version": "2.42.0"
}
}
}
Loading
Loading