Настройка aurelia.json для загрузки пакетов npm googleapis

Я пытаюсь настроить aurelia.json в приложении aurelia typescript, чтобы включить пакет npm googleapis, который он загружает загрузчиком, но во время сборки/связки с aurelia-cli я всегда получаю ошибки.

именно так я добавил его в aurelia.json

 {
        "name": "googleapis",
        "main": "build/src/index",
        "path": "../node_modules/googleapis",
        "resources": []
      },
      {
        "name": "googleapis-common",
        "main": "build/src/index",
        "path": "../node_modules/googleapis-common",
        "resources": []
      },
      {
        "name": "google-auth-library",
        "main": "build/src/index",
        "path": "../node_modules/google-auth-library",
        "resources": []
      }

ошибки, которые я получаю,

    ------- File not found or not accessible ------
| Location: c:/projects/xyz/src/google-auth-library.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
 -----------------------------------------------
 ------- File not found or not accessible ------
| Location: c:/projects/xyz/src/googleapis-common.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
 -----------------------------------------------
 ------- File not found or not accessible ------
| Location: c:/projects/xyz/node_modules/googleapis/build/src/apis.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
 -----------------------------------------------
 ------- File not found or not accessible ------
| Location: c:/projects/xyz/src/google-auth-library.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
 -----------------------------------------------
 ------- File not found or not accessible ------
| Location: c:/projects/xyz/src/googleapis-common.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package
 -----------------------------------------------
 ------- File not found or not accessible ------
| Location: c:/projects/xyz/node_modules/googleapis/build/src/apis.js
| Requested by: c:/projects/xyz/src/resources/elements/html-elements/google-auth-button.js
| Is this a package? Make sure that it is configured in aurelia.json and that it is not a Node.js package

что я должен сделать, чтобы заставить его работать? как правильно использовать эти библиотеки с aurelia?


2
58