Skip to content

Commit

Permalink
Fixed incorrect references to index file of the CommonJS implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
roed committed Sep 15, 2024
1 parent 11da487 commit 607cb3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Version 1.0.1
# Version 1.0.2
- Fixed usage in CommonJS projects

# Version 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion locator_factory.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 607cb3c

Please sign in to comment.