Add an Azure NPM registry (#71393)
authorAndy Gocke <angocke@microsoft.com>
Sat, 9 Jul 2022 00:03:03 +0000 (17:03 -0700)
committerGitHub <noreply@github.com>
Sat, 9 Jul 2022 00:03:03 +0000 (19:03 -0500)
* Add an Azure NPM registry

* Get verbose output for 'npm audit'

* Audit against a registry that supports auditing

Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
src/libraries/System.Net.Http/tests/FunctionalTests/.npmrc [new file with mode: 0644]
src/libraries/System.Net.WebSockets.Client/tests/.npmrc [new file with mode: 0644]
src/mono/sample/wasm/browser-nextjs/.npmrc [new file with mode: 0644]
src/mono/sample/wasm/browser-webpack/.npmrc [new file with mode: 0644]
src/mono/sample/wasm/console-node-es6/.npmrc [new file with mode: 0644]
src/mono/sample/wasm/console-node-ts/.npmrc [new file with mode: 0644]
src/mono/wasm/runtime/.npmrc [new file with mode: 0644]
src/mono/wasm/wasm.proj

diff --git a/src/libraries/System.Net.Http/tests/FunctionalTests/.npmrc b/src/libraries/System.Net.Http/tests/FunctionalTests/.npmrc
new file mode 100644 (file)
index 0000000..3331247
--- /dev/null
@@ -0,0 +1 @@
+registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
\ No newline at end of file
diff --git a/src/libraries/System.Net.WebSockets.Client/tests/.npmrc b/src/libraries/System.Net.WebSockets.Client/tests/.npmrc
new file mode 100644 (file)
index 0000000..3331247
--- /dev/null
@@ -0,0 +1 @@
+registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
\ No newline at end of file
diff --git a/src/mono/sample/wasm/browser-nextjs/.npmrc b/src/mono/sample/wasm/browser-nextjs/.npmrc
new file mode 100644 (file)
index 0000000..3331247
--- /dev/null
@@ -0,0 +1 @@
+registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
\ No newline at end of file
diff --git a/src/mono/sample/wasm/browser-webpack/.npmrc b/src/mono/sample/wasm/browser-webpack/.npmrc
new file mode 100644 (file)
index 0000000..3331247
--- /dev/null
@@ -0,0 +1 @@
+registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
\ No newline at end of file
diff --git a/src/mono/sample/wasm/console-node-es6/.npmrc b/src/mono/sample/wasm/console-node-es6/.npmrc
new file mode 100644 (file)
index 0000000..3331247
--- /dev/null
@@ -0,0 +1 @@
+registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
\ No newline at end of file
diff --git a/src/mono/sample/wasm/console-node-ts/.npmrc b/src/mono/sample/wasm/console-node-ts/.npmrc
new file mode 100644 (file)
index 0000000..3331247
--- /dev/null
@@ -0,0 +1 @@
+registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
\ No newline at end of file
diff --git a/src/mono/wasm/runtime/.npmrc b/src/mono/wasm/runtime/.npmrc
new file mode 100644 (file)
index 0000000..3331247
--- /dev/null
@@ -0,0 +1 @@
+registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
\ No newline at end of file
index 605d36b..7d0284f 100644 (file)
           >
     <!-- install typescript and rollup -->
     <RunWithEmSdkEnv Condition="'$(ContinuousIntegrationBuild)' == 'true'" Command="npm ci" EmSdkPath="$(EMSDK_PATH)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoProjectRoot)wasm/runtime/"/>
-    <RunWithEmSdkEnv Condition="'$(ContinuousIntegrationBuild)' == 'true'" Command="npm audit" EmSdkPath="$(EMSDK_PATH)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoProjectRoot)wasm/runtime/"/>
+    <RunWithEmSdkEnv Condition="'$(ContinuousIntegrationBuild)' == 'true'" Command="npm audit --verbose --registry=https://registry.npmjs.org/" EmSdkPath="$(EMSDK_PATH)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoProjectRoot)wasm/runtime/"/>
     <!-- npm install is faster on dev machine as it doesn't wipe node_modules folder -->
     <RunWithEmSdkEnv Condition="'$(ContinuousIntegrationBuild)' != 'true'" Command="npm install" EmSdkPath="$(EMSDK_PATH)" IgnoreStandardErrorWarningFormat="true" WorkingDirectory="$(MonoProjectRoot)wasm/runtime/"/>