Directus-hook-ts-builder https://docs.directus.io/guides/api-hooks/ 1, Install library yarn 2, Update ts under src folder 3, set webpack.externals.js if need 4, build index.js yarn build 5, copy dist/index.js to directus hooks/${hook name}/ folders