
Research
TeamPCP-Linked Supply Chain Attack Hits SAP CAP and Cloud MTA npm Packages
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.
@nxazure/func
Advanced tools
Nx plugin for Azure Functions to initialize, create, build, run and publish Azure Functions inside your NX workspace.
This plugin allows you to initialize, create, build, run and publish Azure Functions inside your NX workspace.
For NX <= 19, use @nxazure/func version 1.2.0 and lower For NX >= 20, use @nxazure/func version 1.2.1 and higher
func --version command.npx create-nx-workspace@latest my-org
npm install -D @nxazure/func
nx g @nxazure/func:init my-new-app --directory=apps/my-new-app
nx g @nxazure/func:new myNewFunc --project=my-new-app --template="HTTP trigger"
nx start my-new-app
import { tool } from '@my-org/my-lib')node_modules folder in the root dir (just like in other monorepo solutions)func CLI tool are supported.nx run-many --target=start --allThe build executor supports the standard Nx-style assets option on the app's build target.
If you use this feature, install the optional peer dependency first:
npm install -D @nx/js
Example direct copy:
{
"targets": {
"build": {
"executor": "@nxazure/func:build",
"options": {
"assets": ["apps/my-func/README.md"]
}
}
}
}
Example wildcard copy:
{
"targets": {
"build": {
"executor": "@nxazure/func:build",
"options": {
"assets": ["apps/my-func/prompts/**/*.md"]
}
}
}
}
Example object-form asset pattern:
{
"targets": {
"build": {
"executor": "@nxazure/func:build",
"options": {
"assets": [
{
"input": "apps/my-func/static",
"glob": "**/*.json",
"output": "static"
}
]
}
}
}
}
The recommended way to migrate is to let Nx run the migrations automatically:
nx migrate @nxazure/func@latest
nx migrate --run-migrations
This will apply all the necessary changes to your workspace. If you prefer to migrate manually (or if the automatic migration didn't run), follow the steps below for each function app project in your workspace.
tsconfig.build.json into tsconfig.jsonThe build executor no longer reads tsconfig.build.json. All TypeScript configuration must live in tsconfig.json.
tsconfig.build.json in your function app.compilerOptions entry into tsconfig.json. If the same key exists in both files, use the value from tsconfig.build.json (it was what the build was actually using). Skip noEmitOnError, rootDir, and tsBuildInfoFile — the build executor manages those automatically.include, exclude, or files into tsconfig.json. Again, if a conflict exists, prefer the tsconfig.build.json value.compilerOptions.outDir is set (e.g., "dist").tsconfig.build.json._registerPaths.ts and tsconfig-pathsRuntime path registration has been replaced by a compile-time transformer. The plugin now rewrites import paths during the build, so _registerPaths.ts is no longer needed.
_registerPaths.ts from your function app root..eslintrc.json references _registerPaths.ts in ignorePatterns, remove that entry.tsconfig-paths from your workspace root package.json dependencies (if present).package.jsonThe publish executor now automatically discovers runtime dependencies from your source code and injects them at publish time. You no longer need to list them in the app's package.json.
package.json in your function app.@azure/functions). The publish executor will handle these automatically."type": "module" to the package.json.Before:
{
"name": "my-func-app",
"dependencies": {
"@azure/functions": "^4.0.0",
"some-manual-peer-dep": "^1.0.0"
}
}
After (assuming @azure/functions is imported in your code and some-manual-peer-dep is not):
{
"name": "my-func-app",
"type": "module",
"dependencies": {
"some-manual-peer-dep": "^1.0.0"
}
}
@types/node and/or typescript versions. {
ignores: ['apps/**/dist'],
}
az login
az account set --subscription "<subscription ID or name>"
You can learn more about it on Microsoft Learn.
nx publish <local-app-name> -n <function-app-on-azure>
Currently, the plugin supports only TypeScript functions.
FAQs
Nx plugin for Azure Functions to initialize, create, build, run and publish Azure Functions inside your NX workspace.
We found that @nxazure/func demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.