Skip to content

Commit

Permalink
Add browser entry point
Browse files Browse the repository at this point in the history
Closes: #427
PR-URL: #462
  • Loading branch information
tshemsedinov committed Nov 17, 2023
1 parent 2f27c05 commit 646642b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist.js
Original file line number Diff line number Diff line change
@@ -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 };
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 646642b

Please sign in to comment.