floppy-disk 2.0.0-alpha.4 → 2.0.0-alpha.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floppy-disk",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.6",
4
4
  "description": "FloppyDisk - lightweight, simple, and powerful state management library",
5
5
  "keywords": [
6
6
  "state",
@@ -21,20 +21,33 @@
21
21
  "url": "https://github.com/afiiif/floppy-disk/issues"
22
22
  },
23
23
  "homepage": "https://github.com/afiiif/floppy-disk#readme",
24
- "main": "lib/index.js",
25
- "module": "esm/index.js",
26
24
  "sideEffects": false,
27
25
  "files": [
28
26
  "lib/",
29
27
  "esm/"
30
28
  ],
29
+ "main": "lib/index.js",
30
+ "module": "esm/index.js",
31
31
  "types": "lib/index.d.ts",
32
32
  "typings": "lib/index.d.ts",
33
+ "exports": {
34
+ "./package.json": "./package.json",
35
+ ".": {
36
+ "default": "./lib/index.js",
37
+ "types": "./lib/index.d.ts",
38
+ "module": "./esm/index.js",
39
+ "import": {
40
+ "default": "./esm/index.js",
41
+ "types": "./esm/index.d.ts"
42
+ }
43
+ }
44
+ },
33
45
  "scripts": {
34
46
  "prepare": "husky install",
35
47
  "build:cjs": "tsc -p tsconfig.prod.json",
36
48
  "build:es": "tsc -p tsconfig.prod.json -m esNext --outDir esm",
37
49
  "build": "yarn clean && yarn build:cjs && yarn build:es",
50
+ "prebuild": "ts-node ./scripts/preact.ts",
38
51
  "clean": "rimraf lib esm",
39
52
  "format": "prettier --check .",
40
53
  "format:fix": "prettier --write .",
@@ -44,10 +57,6 @@
44
57
  "test": "jest",
45
58
  "semantic-release": "semantic-release"
46
59
  },
47
- "peerDependencies": {
48
- "react": "^17.0.0 || ^18.0.0",
49
- "react-dom": "^17.0.0 || ^18.0.0"
50
- },
51
60
  "release": {
52
61
  "branches": [
53
62
  "main",