You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Nodejs/Product/Nodejs/NodejsConstants.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
1
+
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
2
2
3
3
usingSystem;
4
4
usingSystem.IO;
@@ -25,6 +25,7 @@ internal static class NodejsConstants
Copy file name to clipboardExpand all lines: Nodejs/Product/Nodejs/NpmUI/NpmWorker.cs
+88-6Lines changed: 88 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
1
+
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
2
2
3
3
usingSystem;
4
4
usingSystem.Collections.Concurrent;
@@ -106,11 +106,23 @@ public async Task<IEnumerable<IPackage>> GetCatalogPackagesAsync(string filterTe
Copy file name to clipboardExpand all lines: Nodejs/Product/Npm/SPI/RootPackage.cs
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
-
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
1
+
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
2
2
3
+
usingSystem;
3
4
usingSystem.Collections.Generic;
5
+
usingSystem.Diagnostics;
4
6
usingSystem.Globalization;
5
7
usingSystem.IO;
6
8
usingSystem.Linq;
@@ -47,6 +49,23 @@ public RootPackage(
47
49
{
48
50
// otherwise we fail to create it completely...
49
51
}
52
+
53
+
if(this.PackageJson!=null)
54
+
{
55
+
this.Name=this.PackageJson.Name;
56
+
}
57
+
else
58
+
{
59
+
// this is the root package so the full folder name after node_nodules is the name
0 commit comments