diff --git a/dist/bundle.umd.min.js b/dist/bundle.umd.min.js new file mode 100644 index 0000000000000000000000000000000000000000..8edf24214dda672355aa5599e6013c0dacbc3780 Binary files /dev/null and b/dist/bundle.umd.min.js differ diff --git a/dist/index.esm.js b/dist/index.esm.js index eb8e4b9a7029fe7c87a6f7ede5e13f35dfa518b3..aecfc3c697fbe49440bcb89b6224edd05e857629 100644 Binary files a/dist/index.esm.js and b/dist/index.esm.js differ diff --git a/dist/index.js b/dist/index.js index d5422e377cd05e7c417cfbfdeff2d6c05a9beb99..007ed4c1ed8b934c108cc7a6d5ee91368e6e07f6 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.mjs b/dist/index.mjs deleted file mode 100644 index eb8e4b9a7029fe7c87a6f7ede5e13f35dfa518b3..0000000000000000000000000000000000000000 Binary files a/dist/index.mjs and /dev/null differ diff --git a/dist/index.umd.js b/dist/index.umd.js index e5259095020b32f60b25c67ec0eb2b539352ba1e..f44b1a56f3af616b1b1bde84e3fc79a031501c59 100644 Binary files a/dist/index.umd.js and b/dist/index.umd.js differ diff --git a/dist/index.umd.min.js b/dist/index.umd.min.js index ea0925bf44fe0fbe630f6d7c38015836b85a220f..b5af72105a62b77e65aa2c9cf7376640e38f67d3 100644 Binary files a/dist/index.umd.min.js and b/dist/index.umd.min.js differ diff --git a/dist/index.umd.min.js.map b/dist/index.umd.min.js.map index c8d65b9d1fa1d694915e6b80af45b32c71a85cd9..9a7c1d4201bb69b4a17749ee38ab4fab18aec01a 100644 Binary files a/dist/index.umd.min.js.map and b/dist/index.umd.min.js.map differ diff --git a/package-lock.json b/package-lock.json index 7de1c76998382cf020ee2e2d3638fee23087bffe..26e356a6c4f41052556c5816d560afd07fbd95fe 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index ced7e7d162a829d74f7e41b595c8a5a30e15b45a..1d33082dddccde2add2360803547ca8b955cf804 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,12 @@ "description": "JSON-Schema + fake data generators", "homepage": "http://json-schema-faker.js.org", "main": "dist/index.js", - "module": "dist/index.mjs", + "module": "dist/index.esm.js", "unpkg": "dist/index.umd.min.js", "browser": "dist/index.umd.min.js", "scripts": { - "build:browser": "bili --banner --format umd --format umd-min --module-name JSONSchemaFaker --minimal", + "build:concat:dist": "concat -o dist/bundle.umd.min.js node_modules/json-schema-ref-parser/dist/ref-parser.min.js node_modules/jsonpath-plus/dist/index-umd.min.js dist/index.umd.min.js", + "build:browser": "bili --banner --format umd --format umd-min --module-name JSONSchemaFaker --minimal && npm run build:concat:dist", "build:node": "bili src/index.js --minimal --format es --format cjs", "build": "npm run build:browser && npm run build:node", "dev": "npm test -- -w", @@ -48,6 +49,12 @@ "files": [ "dist/*.*" ], + "bili": { + "externals": [ + "json-schema-ref-parser", + "jsonpath-plus" + ] + }, "devDependencies": { "ajv": "^6.5.3", "bili": "^4.8.1", @@ -55,6 +62,7 @@ "chance": "^1.0.9", "clone": "^2.1.2", "codecov": "^3.0.0", + "concat": "^1.0.3", "cryptiles": "^4.1.3", "eslint": "^6.0.1", "eslint-config-airbnb-base": "^14.0.0", @@ -80,7 +88,7 @@ "z-schema": "^4.1.0" }, "dependencies": { - "json-schema-ref-parser": "^7.1.1", + "json-schema-ref-parser": "^6.1.0", "jsonpath-plus": "^1.0.0", "randexp": "^0.5.3" } diff --git a/src/index.js b/src/index.js index ed70aba8175f5bb7d7e1d154ab0ff1c05fbe52b5..382064a31a83ee98d0ef39c759bf57ad40d70ad5 100644 --- a/src/index.js +++ b/src/index.js @@ -149,6 +149,6 @@ jsf.locate = name => { return container.get(name); }; -jsf.version = '0.5.0-rc16'; +jsf.version = '0.5.0-rc18'; export default jsf;