Package Exports
- keystone-custom-fieldtypes
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (keystone-custom-fieldtypes) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
keystone-custom-fieldtypes
A minimal module copying custom keystone field types from any directory into keystone.
Installation
From your keystone project's root:
npm install keystone-custom-fieldtypes --saveUsage
var kcf = require('keystone-custom-fieldtypes');
kcf.loadFromDir();Note If no dir was specified, will try to load from '/fieldTypes'
Warning:
Pay Attention : using this module assumes that all the custom fields inside your custom fields dir are on current keystone's format. Use the same pattern as in keystone's fields\types dir. Give each of your types its own dir, {field}Type.js file and {filed}Field.js file