diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ade38a..8b6a4c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Version 1.0.1 +# Version 1.0.2 - Fixed usage in CommonJS projects # Version 1.0.0 diff --git a/locator_factory.cjs b/locator_factory.cjs index def2b56..664f5b5 100644 --- a/locator_factory.cjs +++ b/locator_factory.cjs @@ -12,7 +12,7 @@ module.exports = function(relativePathModifierToRoot, locatorConfigPath) { locatorConfigPath = locatorConfigPath || 'config/locator/'; const config = require('config'); - const Locator = require('./locator.esm.js'); + const Locator = require('./locator.cjs'); const locatableDirectory = relativePathModifierToRoot + locatorConfigPath; const locatableDefault = require(locatableDirectory + 'default'); diff --git a/package.json b/package.json index d94393e..5450642 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "node-locator", - "version": "1.0.1", + "version": "1.0.2", "description": "A simple dependency injection container/locator for nodejs based on config files", - "main": "index.cjs.js", + "main": "index.cjs", "module": "index.esm.js", "type": "module", "exports": {