z-schema 7.0.0-beta.3 → 7.0.0-beta.5

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.
@@ -13782,4 +13782,4 @@ class ZSchema {
13782
13782
  static jsonSymbol = jsonSymbol;
13783
13783
  }
13784
13784
 
13785
- exports.ZSchema = ZSchema;
13785
+ module.exports = ZSchema;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "z-schema",
3
- "version": "7.0.0-beta.3",
3
+ "version": "7.0.0-beta.5",
4
4
  "engines": {
5
5
  "node": ">=22.0.0"
6
6
  },
@@ -22,12 +22,17 @@
22
22
  "bugs": {
23
23
  "url": "https://github.com/zaggino/z-schema/issues"
24
24
  },
25
- "type": "module",
26
25
  "exports": {
27
26
  ".": {
28
- "import": "./dist/index.js",
29
- "types": "./dist/types/index.d.ts",
30
- "require": "./cjs/ZSchema.cjs"
27
+ "import": {
28
+ "types": "./dist/types/index.d.ts",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "require": {
32
+ "types": "./cjs/index.d.ts",
33
+ "default": "./cjs/index.js"
34
+ },
35
+ "default": "./dist/index.js"
31
36
  }
32
37
  },
33
38
  "bin": {
@@ -51,9 +56,10 @@
51
56
  "lint": "eslint --fix",
52
57
  "lint:check": "eslint",
53
58
  "clean": "rimraf ./cjs && rimraf ./dist && rimraf ./umd && rimraf --glob \"./src/schemas/*.json\"",
54
- "build": "npm run copy:schemas && tsc && rollup -c",
59
+ "build": "npm run copy:schemas && tsc && npm run copy:module-json && rollup -c",
55
60
  "build:browser": "rollup -c --environment BROWSER",
56
61
  "build:watch": "rollup -c -w",
62
+ "copy:module-json": "node -e \"fs.copyFileSync('./src/package.json', './dist/package.json')\"",
57
63
  "copy:schemas": "npm run copy:schema && npm run copy:hyper-schema",
58
64
  "copy:schema": "node -e \"fs.copyFileSync('./json-schema/draft-04/schema', './src/schemas/schema.json')\"",
59
65
  "copy:hyper-schema": "node -e \"fs.copyFileSync('./json-schema/draft-04/hyper-schema', './src/schemas/hyper-schema.json')\"",
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
File without changes