@contentstorage/core 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,6 @@ function loadConfig() {
17
17
  try {
18
18
  // Use require for JS config file
19
19
  const loadedModule = require(configPath);
20
- // Handle different export styles (module.exports = ... or export default ...)
21
20
  userConfig = loadedModule.default || loadedModule;
22
21
  console.log(`Loaded configuration from ${configPath}`);
23
22
  }
package/package.json CHANGED
@@ -3,14 +3,19 @@
3
3
  "author": "Kaido Hussar <kaidohus@gmail.com>",
4
4
  "homepage": "https://contentstorage.app",
5
5
  "type": "module",
6
- "version": "0.3.1",
6
+ "version": "0.3.2",
7
7
  "description": "Fetch content from contentstorage and generate TypeScript types",
8
- "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
10
  "bin": {
11
11
  "pull-content": "dist/scripts/pull-content.js",
12
12
  "generate-types": "dist/scripts/generate-types.js"
13
13
  },
14
+ "exports": {
15
+ ".": {
16
+ "import": "./index.js"
17
+ }
18
+ },
14
19
  "repository": {
15
20
  "type": "git",
16
21
  "url": "git+https://github.com/kaidohussar/contentstorage-core.git"