@@ -26,16 +26,16 @@ export function typeNameFromSchemaName(schemaName: string) {
2626 return capitalize ( toCapitalizationCase ( schemaName . replaceAll ( "/" , "-" ) ) ) ;
2727}
2828
29- function fmtSource ( source : string ) {
29+ export function fmtSource ( source : string ) {
3030 return new Deno . Command ( Deno . execPath ( ) , {
3131 args : [ "fmt" , source ] ,
3232 } ) . output ( ) ;
3333}
3434
3535export const generatedSrcMessage =
36- `// This file is automatically generated by \`quarto build-js \`! Do not edit.",
36+ `// This file is automatically generated by \`quarto dev-call build-artifacts \`! Do not edit.",
3737//
38- // If you find yourself trying to rebuild types and \`quarto build-js \` won't run because
38+ // If you find yourself trying to rebuild types and \`quarto dev-call build-artifacts \` won't run because
3939// of bad type definitions, run the following:
4040// $ cd $QUARTO_ROOT
4141// $ ./package/dist/bin/tools/deno run --importmap=./src/import_map.json --allow-all ./package/src/common/create-schema-types.ts ./src/resources
@@ -104,7 +104,7 @@ export async function generateTypesFromSchemas(resourcePath: string) {
104104 await fmtSource ( join ( resourcePath , "/types/schema-types.ts" ) ) ;
105105}
106106
107- function yamlToTypeScriptKey ( key : string ) {
107+ export function yamlToTypeScriptKey ( key : string ) {
108108 // if the key isn't a valid typescript identifier, quote it
109109 if ( ! / ^ [ a - z A - Z _ $ ] [ 0 - 9 a - z A - Z _ $ ] * $ / . test ( key ) ) {
110110 return JSON . stringify ( key ) ;
0 commit comments