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
2 changes: 1 addition & 1 deletion packages/core/packages/PackageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/update/Update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
},
{
Expand All @@ -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)
Expand Down Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/packageManager-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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"
}
Expand Down
20 changes: 10 additions & 10 deletions spec/unit/update-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
`},
Expand All @@ -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
`},
Expand All @@ -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)
Expand Down Expand Up @@ -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
`},
Expand All @@ -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
`},
Expand All @@ -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)
Expand Down Expand Up @@ -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
`},
Expand All @@ -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
`},
Expand All @@ -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)
Expand Down
Loading