I'm not sure how much action 1.x will see in the future, but we wanted to import the v1.3 schemas to include some validation in a module-based wepback project:
import schemas from 'cmapi/cmapi.schema'`
It'd be nice for module-based builds to import the schema source directly. Maybe this could be a minor enhancement for a 1.4 or 1.3.1.
Temporary workaround
My fork committed a built dist directory, and added an export default cmapi to the bottom of the built dist/cmapi.schemas.js file. This is obviously just a workaround.
I'm not sure how much action 1.x will see in the future, but we wanted to import the v1.3 schemas to include some validation in a module-based wepback project:
It'd be nice for module-based builds to import the schema source directly. Maybe this could be a minor enhancement for a 1.4 or 1.3.1.
Temporary workaround
My fork committed a built
distdirectory, and added anexport default cmapito the bottom of the builtdist/cmapi.schemas.jsfile. This is obviously just a workaround.