feat!: switch to native ESM with NodeNext module resolution and .js import paths

BREAKING CHANGE: Consumers must use ESM-compatible environments.
All import paths now include .js extensions.
CommonJS (require) is no longer supported.
This commit is contained in:
2025-04-02 21:05:56 +02:00
committed by 20Max01
parent 9bd899581f
commit c6e9fbd2a3
16 changed files with 62 additions and 59 deletions

View File

@@ -1,12 +1,12 @@
import { TSinjex } from '../classes/TSinjex.js';
import {
DependencyResolutionError,
InitializationError,
InjectorError,
NoInstantiationMethodError,
} from 'src/interfaces/Exceptions';
import { TSinjex } from '../classes/TSinjex';
import { Identifier } from '../types/Identifier';
import { InitDelegate } from '../types/InitDelegate';
} from '../interfaces/Exceptions.js';
import { Identifier } from '../types/Identifier.js';
import { InitDelegate } from '../types/InitDelegate.js';
/**
* A decorator to inject a dependency from a DI (Dependency Injection) container into a class property.