From 98267916d005e630ddff48fbed24f01c2215877c Mon Sep 17 00:00:00 2001 From: Timur Shemsedinov Date: Sat, 18 Nov 2023 00:00:29 +0200 Subject: [PATCH] Add browser entry point --- dist.js | 7 +++++++ package.json | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 dist.js diff --git a/dist.js b/dist.js new file mode 100644 index 0000000..11bf679 --- /dev/null +++ b/dist.js @@ -0,0 +1,7 @@ +'use strict'; + +const schema = require('../lib/schema.js'); +const model = require('../lib/model.js'); +const { constants } = require('../lib/kinds.js'); + +module.exports = { ...schema, ...model, ...constants }; diff --git a/package.json b/package.json index c06f960..1de478d 100644 --- a/package.json +++ b/package.json @@ -27,9 +27,13 @@ "url": "https://www.patreon.com/tshemsedinov" }, "main": "metaschema.js", + "browser": { + "./metaschema.js": "./dist.js" + }, "types": "metaschema.d.ts", "files": [ "lib/", + "dist.js", "metaschema.d.ts" ], "readmeFilename": "README.md",