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! */
  ])
})

@@ -1,12 +1,13 @@
-cons
+impor
 t create
@@ -13,26 +13,21 @@
 eSchema 
-= require(
+from 
 'part:@s
@@ -56,14 +56,14 @@
 tor'
-)%0Acons
+%0Aimpor
 t sc
@@ -76,18 +76,13 @@
 pes 
-= require(
+from 
 'all
@@ -116,27 +116,24 @@
 ype'
-)
 %0A%0A
-module.exports =
+export default
  cre

Use ESM for clean template schema (#904)