Skip to content

Commit

Permalink
[base] Expose schema creator as CommonJS (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored and bjoerge committed Sep 19, 2017
1 parent d8afee3 commit c1c8cfc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/@sanity/base/src/schema/createSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import geopoint from './types/geopoint'
import imageAsset from './types/imageAsset'
import fileAsset from './types/fileAsset'
import Schema from '@sanity/schema'
export default schemaDef => {
return Schema.compile({
name: schemaDef.name,
types: [...schemaDef.types, geopoint, imageAsset, fileAsset]
})
}

module.exports = schemaDef => Schema.compile({
name: schemaDef.name,
types: [...schemaDef.types, geopoint, imageAsset, fileAsset]
})

0 comments on commit c1c8cfc

Please sign in to comment.