From 78a355dd3d2a2f99f7d96ed19e75a04207c3257e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 26 Nov 2025 12:37:13 +0000 Subject: [PATCH 1/2] Initial plan From a200c349d2dc491e5bf1703d23e615cca02df50a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 26 Nov 2025 12:45:28 +0000 Subject: [PATCH 2/2] chore: replace always-auth=true with auth-type=legacy Co-authored-by: Lipata <2621802+Lipata@users.noreply.github.com> --- packages/core/packages/PackageManager.ts | 2 +- packages/core/update/Update.ts | 6 +++--- spec/unit/packageManager-spec.ts | 4 ++-- spec/unit/update-spec.ts | 20 ++++++++++---------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/core/packages/PackageManager.ts b/packages/core/packages/PackageManager.ts index 64e795988..795bf2bfe 100644 --- a/packages/core/packages/PackageManager.ts +++ b/packages/core/packages/PackageManager.ts @@ -259,7 +259,7 @@ export class PackageManager { } const cmd = /^win/.test(process.platform) ? "npm.cmd" : "npm"; //https://github.com/nodejs/node/issues/3675 const login = Util.spawnSync(cmd, - ["adduser", `--registry=${fullPackageRegistry}`, `--scope=@infragistics`, `--always-auth`], + ["adduser", `--registry=${fullPackageRegistry}`, `--scope=@infragistics`, `--auth-type=legacy`], { stdio: "inherit" } ); if (login?.status === 0) { diff --git a/packages/core/update/Update.ts b/packages/core/update/Update.ts index ee5e6e90d..cdac1564b 100644 --- a/packages/core/update/Update.ts +++ b/packages/core/update/Update.ts @@ -266,7 +266,7 @@ function updateWorkflows(fs: IFileSystem): void { oldCmd: "- run: npm i # replace with 'npm ci' after committing lock file from first install", newCmd: `- run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc - run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=\${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc - - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + - run: echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc - run: npm i # replace with 'npm ci' after committing lock file from first install` }, { @@ -276,7 +276,7 @@ function updateWorkflows(fs: IFileSystem): void { newCmd: `- script: | echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc echo "//packages.infragistics.com/npm/js-licensed/:_auth=$NPM_AUTH_TOKEN" >> ~/.npmrc - echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc displayName: 'Authenticate' env: NPM_AUTH_TOKEN: $(NPM_AUTH_TOKEN) @@ -306,7 +306,7 @@ function createNpmrc( if (!fs.fileExists(npmrcPath)) { const fileContent = `@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/ -//packages.infragistics.com/npm/js-licensed/:always-auth=true +//packages.infragistics.com/npm/js-licensed/:auth-type=legacy `; fs.writeFile(npmrcPath, fileContent); } diff --git a/spec/unit/packageManager-spec.ts b/spec/unit/packageManager-spec.ts index 49c7287ea..f650e4fcd 100644 --- a/spec/unit/packageManager-spec.ts +++ b/spec/unit/packageManager-spec.ts @@ -79,7 +79,7 @@ describe("Unit - Package Manager", () => { expect(path.join).toHaveBeenCalled(); expect(Util.spawnSync).toHaveBeenCalledWith( /^win/.test(process.platform) ? "npm.cmd" : "npm", - ["adduser", `--registry=trial`, `--scope=@infragistics`, `--always-auth`], + ["adduser", `--registry=trial`, `--scope=@infragistics`, `--auth-type=legacy`], { stdio: "inherit" } @@ -176,7 +176,7 @@ describe("Unit - Package Manager", () => { ); // x1 expect(Util.spawnSync).toHaveBeenCalledWith( /^win/.test(process.platform) ? "npm.cmd" : "npm", - ["adduser", `--registry=trial`, `--scope=@infragistics`, `--always-auth`], + ["adduser", `--registry=trial`, `--scope=@infragistics`, `--auth-type=legacy`], { stdio: "inherit" } diff --git a/spec/unit/update-spec.ts b/spec/unit/update-spec.ts index 6bf381f95..51fff89a8 100644 --- a/spec/unit/update-spec.ts +++ b/spec/unit/update-spec.ts @@ -111,7 +111,7 @@ describe("updateWorkspace", () => { content: "", expected: `@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/ -//packages.infragistics.com/npm/js-licensed/:always-auth=true +//packages.infragistics.com/npm/js-licensed/:auth-type=legacy `}; (fsSpy.glob as jasmine.Spy).and.returnValues(// per workspace ["package.json"], // root package.json @@ -290,7 +290,7 @@ title = 'igniteui-angular example'; `# start content - run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc - run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=\${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc - - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + - run: echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc - run: npm i # replace with \'npm ci\' after committing lock file from first install # end content `}, @@ -305,7 +305,7 @@ title = 'igniteui-angular example'; `# start content - run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc - run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=\${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc - - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + - run: echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc - run: npm i # replace with 'npm ci' after committing lock file from first install # end content `}, @@ -321,7 +321,7 @@ title = 'igniteui-angular example'; - script: | echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc echo "//packages.infragistics.com/npm/js-licensed/:_auth=$NPM_AUTH_TOKEN" >> ~/.npmrc - echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc displayName: 'Authenticate' env: NPM_AUTH_TOKEN: $(NPM_AUTH_TOKEN) @@ -613,7 +613,7 @@ export default function Home() { `# start content - run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc - run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=\${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc - - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + - run: echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc - run: npm i # replace with \'npm ci\' after committing lock file from first install # end content `}, @@ -628,7 +628,7 @@ export default function Home() { `# start content - run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc - run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=\${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc - - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + - run: echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc - run: npm i # replace with 'npm ci' after committing lock file from first install # end content `}, @@ -644,7 +644,7 @@ export default function Home() { - script: | echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc echo "//packages.infragistics.com/npm/js-licensed/:_auth=$NPM_AUTH_TOKEN" >> ~/.npmrc - echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc displayName: 'Authenticate' env: NPM_AUTH_TOKEN: $(NPM_AUTH_TOKEN) @@ -1191,7 +1191,7 @@ export default class App extends LitElement { `# start content - run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc - run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=\${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc - - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + - run: echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc - run: npm i # replace with \'npm ci\' after committing lock file from first install # end content `}, @@ -1206,7 +1206,7 @@ export default class App extends LitElement { `# start content - run: echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc - run: echo "//packages.infragistics.com/npm/js-licensed/:_auth=\${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc - - run: echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + - run: echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc - run: npm i # replace with 'npm ci' after committing lock file from first install # end content `}, @@ -1222,7 +1222,7 @@ export default class App extends LitElement { - script: | echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> ~/.npmrc echo "//packages.infragistics.com/npm/js-licensed/:_auth=$NPM_AUTH_TOKEN" >> ~/.npmrc - echo "//packages.infragistics.com/npm/js-licensed/:always-auth=true" >> ~/.npmrc + echo "//packages.infragistics.com/npm/js-licensed/:auth-type=legacy" >> ~/.npmrc displayName: 'Authenticate' env: NPM_AUTH_TOKEN: $(NPM_AUTH_TOKEN)