Fix the path for printer from graphql

This commit is contained in:
Zaiste 2022-05-26 22:50:51 +02:00
parent bbe8021be6
commit 3303d56e46
No known key found for this signature in database
GPG key ID: 15DF7EBC7F2FFE35

View file

@ -1,6 +1,7 @@
import path from 'path'; import path from 'path';
import fg from 'fast-glob'; import fg from 'fast-glob';
import { print } from "graphql/language/printer";
import { print } from "graphql/language/printer.js";
export const capitalize = (value: string) => value.charAt(0).toUpperCase() + value.slice(1); export const capitalize = (value: string) => value.charAt(0).toUpperCase() + value.slice(1);
export const dropFileExtension = (filename: string) => path.parse(filename).name; export const dropFileExtension = (filename: string) => path.parse(filename).name;