Registry / web-framework / aurelia-deps-finder

aurelia-deps-finder

JSON →
library2.1.7jsnpmunverified

`aurelia-deps-finder` is a utility package specifically designed to assist the `dumber` bundler in identifying and resolving dependencies within Aurelia v1 projects. It provides a specialized `depsFinder` function that `dumber` integrates into its bundling process to correctly map modules and their interdependencies within an Aurelia v1 application's structure. The current stable version is 2.1.7. This package is explicitly *not* required for Aurelia 2 (vNext) projects, as Aurelia 2 utilizes different dependency resolution mechanisms or leverages modern bundler capabilities directly, making this tool obsolete for newer versions of the framework. Its release cadence is tightly coupled to the maintenance of the Aurelia v1 ecosystem. Its key differentiator is its specialized, deep understanding of Aurelia v1's unique module loading patterns, making it an essential component for legacy build setups using `dumber` for Aurelia v1 applications.

npm install aurelia-deps-finder
INSTALL
IMPORT
SIG · AURELIA-DEPS-FINDE
A
aurelia-deps-finder
web-frameworkjavascriptv2.1.7
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

auDepsFinder
const auDepsFinder = require('aurelia-deps-finder');
import auDepsFinder from 'aurelia-deps-finder';
This package is exclusively CommonJS and intended for Node.js build environments, not browser or ESM contexts.

This quickstart demonstrates how to integrate `aurelia-deps-finder` into a `gulp-dumber` build process for an Aurelia v1 application.

const gulp = require('gulp'); const dumber = require('gulp-dumber'); const auDepsFinder = require('aurelia-deps-finder'); function build() { const dr = dumber({ // Use aurelia-deps-finder to resolve Aurelia v1 dependencies depsFinder: auDepsFinder }); return gulp.src('src/**/*.@(js|ts|html|css)', { sourcemaps: true }) .pipe(dr()) .pipe(gulp.dest('dist', { sourcemaps: true })); } gulp.task('default', build);
Debug
Known issues
gotchaThis package is specifically designed for Aurelia v1 projects. Do NOT use it with Aurelia 2 (vNext) or any future versions of Aurelia, as it's not compatible and will likely cause build failures.
fix
For Aurelia 2, remove `aurelia-deps-finder` from your build configuration. Aurelia 2 handles dependency resolution natively or through standard bundler plugins.
affects: >=1.0.0
breakingThis package is CommonJS-only. Attempting to import it using ES module syntax (e.g., `import auDepsFinder from 'aurelia-deps-finder';`) in a pure ESM environment or a misconfigured TypeScript project will result in errors.
fix
Ensure you are using CommonJS `require` syntax: `const auDepsFinder = require('aurelia-deps-finder');`. Configure your bundler or TypeScript `tsconfig.json` to properly handle CommonJS modules if mixing with ESM.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: (0 , _aureliaDepsFinder.default) is not a function
This error typically occurs when trying to use an ES module default import (`import auDepsFinder from 'aurelia-deps-finder';`) for a CommonJS module that exports directly, rather than through `module.exports.default`.
fix
Use the CommonJS `require` syntax: `const auDepsFinder = require('aurelia-deps-finder');`. This package exports a single function directly.
Upgrade
Version history
2.1.7latest on npm
Audit
Dependencies
dumberrequiredRuntime dependency; this package provides a dependency finder function that is passed directly to the `dumber` bundler.
Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
aurelia-deps-finder — npm install aurelia-deps-finder · libregistry