Excluding PackageAnalyzer and bundling of external lib

Hi I have some aurelia code which is defined in another package and I have some custom typescript code to generate some types.
Example example.d.ts

declare module 'services/example-a' { export class ExampleA {
    navigate(url: string): Promise<void>;
    static navigate(url: string): Promise<void>;
    static relocate(url: string): Promise<void>;
}
declare module 'services/example-b' { export class ExampleB {
    navigate(url: string): Promise<void>;
    static navigate(url: string): Promise<void>;
    static relocate(url: string): Promise<void>;
}

This code is set globally with requireJS modules on the page seperately so I don’t need to include it in my app bundle.

How can I exclude these errors from occuring when bundling? “services” is not an npm package rather a custom ts module. TS works ok.

ERROR [PackageAnalyzer] Unable to load package metadata (package.json) of services:
INFO [PackageAnalyzer] Error: cannot resolve npm package folder for "services"
ERROR [Bundler] Unable to analyze services
INFO [Bundler] Error: Unable to find package metadata (package.json) of services
ERROR [Bundler] Failed to add Nodejs module services/example-a
INFO [Bundler] Error: Unable to find package metadata (package.json) of services
ERROR [PackageAnalyzer] Unable to load package metadata (package.json) of services:
INFO [PackageAnalyzer] Error: cannot resolve npm package folder for "services"
ERROR [Bundler] Unable to analyze services
INFO [Bundler] Error: Unable to find package metadata (package.json) of services
ERROR [Bundler] Failed to add Nodejs module services/example-b
INFO [Bundler] Error: Unable to find package metadata (package.json) of services

I am using the latest cli 3.0.1.