@sleekcms/json-zen 1.1.1 → 1.2.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 (2) hide show
  1. package/lib/esm/index.js +2 -0
  2. package/package.json +2 -2
package/lib/esm/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ var module={exports:{}};
2
+
1
3
  // src/lib.ts
2
4
  function isArray(value) {
3
5
  return Array.isArray(value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleekcms/json-zen",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Easify verify and shape JSON objects using a simplified alternative JSON schema",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -20,7 +20,7 @@
20
20
  "cover": "nyc npm run test:only",
21
21
  "lint": "eslint src test --ext .ts",
22
22
  "build:cjs": "tsc",
23
- "build:esm": "esbuild src/index.ts --bundle --format=esm --platform=browser --outfile=lib/esm/index.js",
23
+ "build:esm": "esbuild src/index.ts --bundle --format=esm --platform=browser --banner:js=\"var module={exports:{}};\" --outfile=lib/esm/index.js",
24
24
  "build": "npm run build:cjs && npm run build:esm",
25
25
  "prepublish": "npm run clean && npm run test && npm run build"
26
26
  },