proskomma-core 0.9.19 → 0.9.20

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,7 @@
1
+ import {
2
+ Proskomma, lexingRegexes, blocksSpecUtils, resolvers, typeDefs,
3
+ } from '../index.cjs';
4
+
5
+ export {
6
+ Proskomma, lexingRegexes, blocksSpecUtils, resolvers, typeDefs,
7
+ };
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "proskomma-core",
3
- "version": "0.9.19",
3
+ "version": "0.9.20",
4
4
  "description": "A Scripture Runtime Engine",
5
5
  "main": "dist/index.cjs",
6
6
  "browser": "dist/bundle.js",
7
7
  "module": "dist/module.mjs",
8
- "source": "index.cjs",
8
+ "source": "esm/wrapper.mjs",
9
9
  "scripts": {
10
10
  "build": "rm -fr dist && parcel build --no-source-maps",
11
11
  "test": "export PKSRC=dist && bash -c \"tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
12
12
  "rawTest": "export PKSRC=dist && bash -c \"tape -r @babel/register test/code/*.cjs\"",
13
13
  "oneTest": "bash -c \"tape -r @babel/register test/code/$TESTSCRIPT.cjs\"",
14
- "prepublishOnly": "rm -fr dist && npm run build"
14
+ "prepublishOnly": "npm run build"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -68,6 +68,9 @@
68
68
  },
69
69
  "browser": {
70
70
  "optimize": true
71
+ },
72
+ "module": {
73
+ "optimize": true
71
74
  }
72
75
  }
73
76
  }