diff --git a/package-lock.json b/package-lock.json index 0b3bc2600b8c08a4ad1b33cd583702ce2cc4f638..1b3522e7ab1b552277da25e30f179d351b64455c 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index ab120be33c330fafd1b8bbbd0b17c518d373f773..55f11b93d64f64e88983e2c734ce8489113a6ced 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,11 @@ "bin": { "jsf": "./bin/gen.js" }, - "main": "dist/index.js", - "module": "dist/index.mjs", - "unpkg": "dist/bundle.umd.min.js", - "browser": "dist/index.umd.min.js", + "main": "dist/main.js", + "module": "dist/main.js", + "unpkg": "dist/bundle.js", + "browser": "dist/main.umd.js", "scripts": { - "_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", "dev": "npm run test:schema -- -w", "_test": "npm run lint && npm run test:unit -- && npm run test:schema", "_test:ci": "npm run coverage:all && npm run report -- -r lcov", @@ -32,7 +29,8 @@ "_graphviz": "madge src --dot > structure.gv", "watch": "tarima watch", "pretest": "eslint src", - "build": "tarima -fqe production" + "build": "tarima -mfqe production", + "postbuild": "concat -o dist/bundle.js node_modules/json-schema-ref-parser/dist/ref-parser.min.js node_modules/jsonpath-plus/dist/index-umd.min.js dist/main.umd.js" }, "author": "Alvaro Cabrera <pateketrueke@gmail.com> (https://soypache.co)", "contributors": [ @@ -111,6 +109,7 @@ "chance": "^1.0.9", "codecov": "^3.0.0", "concat": "^1.0.3", + "csso": "^4.0.1", "eslint": "^6.0.1", "eslint-config-airbnb-base": "^14.0.0", "eslint-plugin-import": "^2.18.0", @@ -132,6 +131,7 @@ "semver": "^6.1.1", "tarima": "^4.6.0", "tarima-bower": "^0.4.3", + "terser": "^4.3.9", "tv4": "^1.3.0", "vue-template-compiler": "^2.6.10", "z-schema": "^4.1.0"