const createSchema = require('part:@sanity/base/schema-creator')
const schemaTypes = require('all:part:@sanity/base/schema-type')

module.exports = createSchema({
  name: 'default',
  types: schemaTypes.concat([
    /* Your types here! */
  ])
})

import createSchema from 'part:@sanity/base/schema-creator'
import schemaTypes from 'all:part:@sanity/base/schema-type'

export default createSchema({
  name: 'default',
  types: schemaTypes.concat([
    /* Your types here! */
  ])
})

Use ESM for clean template schema (#904)