Serverless package dont include node_modules when private library is on package.json

Hello, can someone help me, I’m trying to do a serverless deploy with serverless 4 and the deploy is correct but when running my lambda it throws an error due to error module not found from the http-errors library but this is part of a private library that I have in azure devops which is the following: “@com-share/lib_architech”: “^1.0.8” then I decided to see what was happening with the sls package command to see if it was generating my package correctly and I realized that it is not putting the node_modules folder and in the root directory of my repo I have the . npmrc to be able to do the npm i of the private library, the truth is I don’t know what I’m doing wrong since if I remove the private library from my package. json there it does generate the build with my node_modules folder but serverless still doesn’t throw me any error when I want to generate it with the library, does anyone know what could be happening?

Serverless.yml:

# "org" ensures this Service is used with the correct Serverless Framework Access Key.
org: cuateshare
# "app" enables Serverless Framework Dashboard features and sharing them with other Services.
app: cuateshare
# "service" is the name of this project. This will also be added to your AWS resource names.
service: users-v1

provider:
  name: aws
  runtime: nodejs20.x
  tracing:
    lambda: true
    apiGateway: true
  httpApi:
    cors: true
    authorizers: 
      userAuthoriser:
        identitySource: $request.header.Authorization
        issuerUrl: {"Fn::Join": ["", ["https://cognito-idp.us-east-1.amazonaws.com/*****"]]}
        audience: *****
  iam:
    role:
      statements:
        - Effect: Allow
          Action:
          - logs:CreateLogStream
          - logs:CreateLogGroup
          - logs:PutLogEvents
          - secretsmanager:GetSecretValue
          Resource: "*"

functions:
  users-all:
    handler: src/handler.httpHandler
    timeout: 29
    events:
      - httpApi:
          path: /users/v1/all
          method: get
          authorizer: 
            name: userAuthoriser

  users-user-info-http:
    handler: src/handler.userInfoHandler
    timeout: 29
    events:
      - httpApi:
          path: /users/v1/user-info
          method: get
          authorizer: 
            name: userAuthoriser
  
  users-delete-http:
    handler: src/handler.deleteUserHandler
    timeout: 29
    events:
      - httpApi:
          path: /users/v1/user/{userId}
          method: delete
          authorizer: 
            name: userAuthoriser
  
  users-update-http:
    handler: src/handler.updateUserHandler
    timeout: 29
    events:
      - httpApi:
          path: /users/v1/user/{userId}
          method: patch
          authorizer: 
            name: userAuthoriser

Package.json:

{
  "dependencies": {
    "@com-share/lib_architech": "^1.0.8",
    "pg-hstore": "^2.3.4"
  },
  "devDependencies": {
    "@aws-sdk/types": "^3.609.0",
    "@types/aws-lambda": "^8.10.141",
    "@types/lodash": "^4.17.5",
    "aws-lambda": "^1.0.7",
    "aws-sdk": "^2.1659.0",
    "typescript": "^5.5.3"
  }
}

Please help me i cant deploy when the private library is on because it doesnt add the node_modules in package build