@muspellheim/shared 0.4.0 → 0.5.0

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.
Files changed (3) hide show
  1. package/README.md +1 -4
  2. package/package.json +9 -5
  3. package/dist/index.cjs +0 -4455
package/README.md CHANGED
@@ -1,6 +1,4 @@
1
- [![Build](https://github.com/falkoschumann/muspellheim-utils-javascript/actions/workflows/pipeline.yml/badge.svg)](https://github.com/falkoschumann/muspellheim-utils-javascript/actions/workflows/pipeline.yml)
2
-
3
- # Shared
1
+ # Shared [![Build](https://github.com/falkoschumann/muspellheim-utils-javascript/actions/workflows/pipeline.yml/badge.svg)](https://github.com/falkoschumann/muspellheim-utils-javascript/actions/workflows/pipeline.yml)
4
2
 
5
3
  Some shared modules for the browser and Node from my projects.
6
4
 
@@ -28,5 +26,4 @@ The `Makefile` runs the build as default task. Other tasks are
28
26
  ## Open issues
29
27
 
30
28
  - [ ] Add missing docs.
31
- - [ ] Check using `exports` in `package.json`.
32
29
  - [ ] Use asserts for parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muspellheim/shared",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "author": "Falko Schumann",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -8,10 +8,15 @@
8
8
  "node": ">=18.7.0"
9
9
  },
10
10
  "type": "module",
11
- "main": "dist/index.cjs",
12
- "browser": "lib/browser/index.js",
11
+ "exports": {
12
+ ".": "./lib/index.js",
13
+ "./*.js": "./lib/*.js",
14
+ "./browser": "./lib/browser/index.js",
15
+ "./browser/*.js": "./lib/browser/*.js",
16
+ "./node": "./lib/node/index.js",
17
+ "./node/*.js": "./lib/node/*.js"
18
+ },
13
19
  "scripts": {
14
- "build": "rollup -c",
15
20
  "test": "vitest"
16
21
  },
17
22
  "dependencies": {
@@ -22,7 +27,6 @@
22
27
  "@vitest/coverage-v8": "2.1.4",
23
28
  "jsdoc": "4.0.4",
24
29
  "jsdom": "25.0.1",
25
- "rollup": "4.24.3",
26
30
  "vitest": "2.1.4"
27
31
  }
28
32
  }